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

Harmony 1764 add support for specifying data operation using a file #42

Merged
merged 3 commits into from
May 20, 2024

Conversation

indiejames
Copy link
Contributor

Jira Issue ID

HARMONY-1764

Description

This change adds a new CLI parameter, --harmony-input-file, with which the data operation can be passed on the file system rather than as a command line parameter using --harmony-input. This is needed to support large data operations that were exceeding stack limits when passed using --harmony-input.

Local Test Steps

  1. Check out this branch
  2. Rebuild the trajectory-subsetter image using this branch of harmony-service-lib-py (need to chance requirements.txt)
  3. Push the service to the harmony sandbox
  4. Do a sandbox deployment including the service in LOCALLY_DEPLOYED_SERVICES
  5. Run a query with a large number of variables

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)

harmony/cli.py Outdated
@@ -65,6 +65,8 @@ def setup_cli(parser):
parser.add_argument('--harmony-input',
help=('the input data for the action provided by Harmony, required for '
'--harmony-action=invoke'))
parser.add_argument('--harmony-input-file',
help=('the optional path to the input data for the action provided by Harmony, required for '))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing '--harmony-action=invoke'. May also want to change the required for wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I meant to delete that part altogether, as it it not required

@indiejames indiejames merged commit 7dc166c into main May 20, 2024
2 of 8 checks passed
@indiejames indiejames deleted the harmony-1764-2 branch May 20, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants