Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Remove step dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed Jul 4, 2024
1 parent b6e50c4 commit c42c08c
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 123 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"postversion": "cp package.json ./dist/package.json"
},
"peerDependencies": {
"@jupiterone/integration-sdk-core": "^10.0.0"
"@jupiterone/integration-sdk-core": "^13.1.1"
},
"devDependencies": {
"@jupiterone/integration-sdk-core": "^10.0.0",
"@jupiterone/integration-sdk-dev-tools": "^10.0.0",
"@jupiterone/integration-sdk-testing": "^10.0.0",
"@jupiterone/integration-sdk-core": "^13.1.1",
"@jupiterone/integration-sdk-dev-tools": "^13.1.1",
"@jupiterone/integration-sdk-testing": "^13.1.1",
"@types/mssql": "^8.1.2",
"auto": "^10.36.5"
},
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const invocationConfig: IntegrationInvocationConfig<IntegrationConfig> =
instanceConfigFields,
validateInvocation,
integrationSteps,
stepConcurrency: 1,
async afterExecution(context) {
try {
await close(context.logger);
Expand Down
7 changes: 1 addition & 6 deletions src/steps/collections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ export const fetchCollectionsSteps: IntegrationStep<IntegrationConfig>[] = [
name: 'Build Collection Relationships',
entities: [],
relationships: [Relationships.COLLECTION_HAS_DEVICE],
dependsOn: [
Steps.FETCH_COLLECTIONS,
Steps.FETCH_DEVICES,
// INT-11156: this kind of hacky, but we need to await until this steps finishes to avoid overloading the server
Steps.BUILD_APPLICATION_RELATIONSHIPS,
],
dependsOn: [Steps.FETCH_COLLECTIONS, Steps.FETCH_DEVICES],
executionHandler: buildCollectionsRelationships,
},
];
Expand Down
Loading

0 comments on commit c42c08c

Please sign in to comment.