Skip to content

Commit

Permalink
added --connection-count support to data import (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
devkeydet authored May 6, 2024
1 parent 42e540e commit a3d7d45
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion import-data/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ inputs:
description: 'File name for data zip file, or folder with data-schema.xml & data.xml, to be imported.'
required: true

connection-count:
description: 'Number of parallel connections to use during import. Default: 5'
required: false

verbose:
description: 'Output more diagnostic information.'
required: false

runs:
using: 'node16'
main: '../dist/actions/import-data/index.js'
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.3",
"@microsoft/powerplatform-cli-wrapper": "^0.1.121",
"@microsoft/powerplatform-cli-wrapper": "^0.1.122",
"date-fns": "^3.6.0",
"fs-extra": "^11.2.0",
"js-yaml": "^4.1",
Expand Down
1 change: 1 addition & 0 deletions src/actions/import-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { runnerParameters } from '../../lib/runnerParameters';
credentials: getCredentials(),
environmentUrl: getEnvironmentUrl(),
dataFile: parameterMap['data-file'],
connectionCount: parameterMap['connection-count'],
verbose: {
name: "verbose",
required: false,
Expand Down
1 change: 1 addition & 0 deletions src/test/importData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe("import-data tests", () => {
credentials: credentials,
environmentUrl: mockEnvironmentUrl,
dataFile: { name: 'data-file', required: true, defaultValue: undefined },
connectionCount: { name: 'connection-count', required: false, defaultValue: undefined },
verbose: { name: 'verbose', required: false, defaultValue: false },
logToConsole: false,
}, runnerParameters, new ActionsHost());
Expand Down

0 comments on commit a3d7d45

Please sign in to comment.