Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add template to creative debug #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FILTER_FIELDS } from "./config";
import _ from "lodash";
import { FilterCriteria, ObjectWithValueAsSet, CompactQualifiers } from "./types";
import { SmartAPIKGOperationObject } from "./parser/types";
// import Debug from "debug";
// import { Debug } from "@biothings-explorer/utils";
// const debug = Debug("bte:smartapi-kg:Filter");

const getUniqueValsForEachField = (operations: SmartAPIKGOperationObject[]): ObjectWithValueAsSet => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SmartAPIKGOperationObject } from "./parser/types";
import { BuilderOptions, FilterCriteria } from "./types";
import { ft } from "./filter";
import path from "path";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
import QueryOperationObject from "./parser/query_operation";
const debug = Debug("bte:smartapi-kg:MetaKG");

Expand Down
2 changes: 1 addition & 1 deletion src/load/all_specs_sync_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseLoader from "./base_loader";
import { SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import fs from "fs";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:AllSpecsSyncLoader");

export default class AllSpecsSyncLoader extends BaseLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/api_list_specs_sync_loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AllSpecsSyncLoader from "./all_specs_sync_loader";
import { SmartAPIQueryResult, apiListObject } from "../types";
import { SmartAPISpec } from "../parser/types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:APIListSpecsSyncLoader");

export default class APIListSpecsSyncLoader extends AllSpecsSyncLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/base_async_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FailToLoadSpecError from "../exceptions/fail_to_load_spec";
import { SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import BaseLoader from "./base_loader";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:AsyncLoader");

export default abstract class BaseAsyncLoader extends BaseLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/single_spec_sync_loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AllSpecsSyncLoader from "./all_specs_sync_loader";
import { apiListObject, SmartAPIQueryResult } from "../types";
import { SmartAPISpec } from "../parser/types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SingleSpecSyncLoader");

export default class SingleSpecSyncLoader extends AllSpecsSyncLoader {
Expand Down
2 changes: 1 addition & 1 deletion src/load/sync_loader_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ComponentSpecsSyncLoader from "./component_specs_sync_loader";
import APIListSpecsSyncLoader from "./api_list_specs_sync_loader";
import { SmartAPISpec } from "../parser/types";
import { SmartAPIQueryResult, apiListObject } from "../types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SyncLoader");

export const syncLoaderFactory = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SmartAPISpec, ParsedAPIMetadataObject, SmartAPIKGOperationObject } from
import { ReasonerPredicatesResponse } from "../types";
import API from "../parser/index";
import axios from "axios";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:OperationsBuilder");

export default class AsyncOperationsBuilderWithReasoner extends AsyncOperationsBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/operations_builder/base_operations_builder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BuilderOptions } from "../types";
import { SmartAPIKGOperationObject, SmartAPISpec } from "../parser/types";
import API from "../parser/index";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:OperationsBuilder");

export default abstract class BaseOperationsBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BuilderOptions } from "../types";
import fs from "fs";
import { SmartAPIKGOperationObject } from "../parser/types";
import { PredicatesMetadata } from "../types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:SyncOperationsBuilderWithReasoner");
import { SmartAPISpec } from "../parser/types";
import { biolink } from "@biothings-explorer/utils";
Expand Down
2 changes: 1 addition & 1 deletion src/parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Components from "./component";
import Endpoint from "./endpoint";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:smartapi-kg:Parser");
import { SmartAPISpec, ParsedAPIMetadataObject, SmartAPIKGOperationObject, APIClass } from "./types";

Expand Down
Loading