Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into fix-857-bte
  • Loading branch information
tokebe committed Sep 27, 2024
2 parents 7be22d4 + eae8ca9 commit 5b826f3
Show file tree
Hide file tree
Showing 7 changed files with 12,953 additions and 10,055 deletions.
8 changes: 4 additions & 4 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ affinity:
topologyKey: "kubernetes.io/hostname"
resources:
requests:
memory: 50Gi
cpu: 10000m
memory: 25Gi
cpu: 8000m
limits:
memory: 58Gi
cpu: 14000m
memory: 35Gi
cpu: 10000m
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
"@sentry/node": "^7.74.1",
"@sentry/profiling-node": "^1.2.1",
"axios": "^0.28.0",
"body-parser": "^1.20.2",
"body-parser": "^1.20.3",
"bull": "^4.11.4",
"compression": "^1.7.4",
"connect-history-api-fallback": "^2.0.0",
"cors": "^2.8.5",
"debug": "^4.3.4",
"dotenv": "^8.6.0",
"express": "^4.18.2",
"express": "^4.20.0",
"express-rate-limit": "^5.5.1",
"express-winston": "^4.2.0",
"helmet": "^4.6.0",
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type APIDefinition = {
name: string; // Must match name on SmartAPI registry
infores?: string; // infores of API
primarySource?: boolean;
includeFlipped?: boolean; // Automatically generate flipped MetaEdges (TRAPI only)
} & ({ id: string } | { infores: string });

export interface APIList {
Expand Down
6 changes: 4 additions & 2 deletions packages/types/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
TrapiSchema,
TrapiWorkflow,
} from "./trapi";
import {
import MetaKG, {
SmartAPIKGOperationObject,
SmartAPIQueryResult,
} from "@biothings-explorer/smartapi-kg";
Expand All @@ -17,6 +17,7 @@ export interface QueryOptions {
submitter?: string;
smartAPIID?: string;
teamName?: string;
dryrun_pathfinder?: boolean;
dryrun?: boolean;
caching?: boolean; // from request url query values
}
Expand All @@ -31,11 +32,12 @@ export interface QueryHandlerOptions extends QueryOptions {
resolveOutputIDs?: boolean;
EDGE_ATTRIBUTES_USED_IN_RECORD_HASH?: string[];
smartapi?: SmartAPIQueryResult;
skipPfocr?: boolean;
}

export interface QueueData {
queryGraph: TrapiQueryGraph;
options: QueryOptions;
options: QueryHandlerOptions;
workflow?: TrapiWorkflow[];
callback_url?: string;
smartAPIID?: string;
Expand Down
10 changes: 5 additions & 5 deletions packages/types/src/trapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export interface TrapiAttribute {
value_type_id?: string;
attribute_source?: string | null;
value_url?: string | null;
attributes?: TrapiAttribute;
attributes?: TrapiAttribute[];
[additionalProperties: string]:
| string
| string[]
| null
| TrapiAttribute
| TrapiAttribute[]
| number
| number[];
}
Expand All @@ -97,12 +97,12 @@ export interface TrapiAttributeConstraint {
export interface TrapiNodeBinding {
id: string;
query_id?: string;
attributes?: TrapiAttribute[];
attributes: TrapiAttribute[];
}

export interface TrapiEdgeBinding {
id: string;
attributes?: TrapiAttribute[];
attributes: TrapiAttribute[];
}

export interface TrapiAnalysis {
Expand All @@ -118,7 +118,7 @@ export interface TrapiAnalysis {

export interface TrapiAuxiliaryGraph {
edges: string[];
attributes?: TrapiAttribute[];
attributes: TrapiAttribute[];
}

export interface TrapiPfocrFigure {
Expand Down
Loading

0 comments on commit 5b826f3

Please sign in to comment.