Skip to content

feat: add --name support for gui-submit and improve parametrized job …#990

Draft
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
rickrams:feat/gui-submit-name-and-parametrized-names
Draft

feat: add --name support for gui-submit and improve parametrized job …#990
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
rickrams:feat/gui-submit-name-and-parametrized-names

Conversation

@rickrams
Copy link
Contributor

@rickrams rickrams commented Feb 4, 2026

This commit addresses two GitHub issues:

Issue #859: Add --name support for gui-submit

  • Added --name option to 'deadline bundle gui-submit' command
  • Matches existing functionality in 'deadline bundle submit'

Issue #460: Improved handling of parametrized job names

  • When template name is parametrized (e.g., name: '{{Param.JobName}}'):
    • The Name field on Shared job settings uses the parameter's default value
    • The JobName parameter is hidden from Job-specific settings tab
    • The name is passed as a parameter value instead of replacing the template
  • This preserves template portability and reusability

Fixes: #859 and #460

See DEVELOPMENT.md for information on running tests.

  • Have you run the unit tests? Yes
  • Have you run the integration tests? Yes
  • Have you made changes to the download or asset_sync modules? No

Was this change documented?

  • Are relevant docstrings in the code base updated? No
  • Has the README.md been updated? No

Does this PR introduce new dependencies?

This library is designed to be integrated into third-party applications that have bespoke and customized deployment environments. Adding dependencies will increase the chance of library version conflicts and incompatabilities. Please evaluate the addition of new dependencies. See the Dependencies section of DEVELOPMENT.md for more details.

  • This PR adds one or more new dependency Python packages. I acknowledge I have reviewed the considerations for adding dependencies in DEVELOPMENT.md.
  • This PR does not add any new dependencies.

Is this a breaking change? No

Does this change impact security? No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions github-actions bot added the waiting-on-maintainers Waiting on the maintainers to review. label Feb 4, 2026
@rickrams rickrams force-pushed the feat/gui-submit-name-and-parametrized-names branch from 35d19b4 to 19e7950 Compare February 4, 2026 22:42
submitter_name: str = field(default="JobBundle")

# Shared settings
name: str = field(default="Job bundle")
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to check the code here, I see the JobBundleSettings class already has name as an attribute - and now we have a name_parameter so it maybe colliding in purpose / confusing to use in the near future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Need to pull it locally to double check how these work and / or conflict.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, so the fork in code now takes the template name over the settings name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that was the original feature request. it's a less interesting feature request now that we have resubmit with edit. previously it was modifying a parameterized value with a fixed one which still seems 'wrong' if not that essential anymore.

@rickrams rickrams force-pushed the feat/gui-submit-name-and-parametrized-names branch 2 times, most recently from 1cf2ac1 to 8ee391e Compare February 4, 2026 23:10
…name handling

This commit addresses two GitHub issues:

Issue aws-deadline#859: Add --name support for gui-submit
- Added --name option to 'deadline bundle gui-submit' command
- Matches existing functionality in 'deadline bundle submit'

Issue aws-deadline#460: Improved handling of parametrized job names
- When template name is parametrized (e.g., name: '{{Param.JobName}}'):
  - The Name field on Shared job settings uses the parameter's default value
  - The JobName parameter is hidden from Job-specific settings tab
  - The name is passed as a parameter value instead of replacing the template
- This preserves template portability and reusability

Signed-off-by: rickrams <rickrams@users.noreply.github.com>
@rickrams rickrams force-pushed the feat/gui-submit-name-and-parametrized-names branch from 8ee391e to 2dcaa3f Compare February 4, 2026 23:15
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

@rickrams
Copy link
Contributor Author

rickrams commented Feb 4, 2026

The API change detection is flagging expected additions for this feature:

JobBundleSettings.name_parameter - new attribute to track parametrized name source
show_job_bundle_submitter(name=...) - new optional parameter for CLI --name support

These are intentional additions, not breaking changes. The griffe breaking change check passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-maintainers Waiting on the maintainers to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: --name support for gui-submit

2 participants

Comments