Skip to content

Conversation

@folouiseAWS
Copy link
Contributor

@folouiseAWS folouiseAWS commented Dec 12, 2025

526005377-b611ced2-278c-443e-bf12-6ebafaec9a10

What was the problem/requirement? (What/Why)

As a new user, it is difficult to know I have to go to the settings to select my Farm and queue.

What was the solution? (How)

This change makes the farm and queue selectable on the main GUI.

What is the impact of this change?

Easier for new users to setup a job

How was this change tested?

Manually and with unit tests.
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? If so, then it is highly recommended no
    that you ensure that the docker-based unit tests pass.

Was this change documented?

code was commented but no documentation was changed

  • Are relevant docstrings in the code base updated?
  • Has the README.md been updated? If you modified CLI arguments, for instance.

Does this PR introduce new dependencies?

No
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
A breaking change is one that modifies a public contract in a way that is not backwards compatible. See the
Public Contracts section
of the DEVELOPMENT.md for more information on the public contracts.

If so, then please describe the changes that users of this package must make to update their scripts, or Python applications.

Does this change impact security?

No

  • Does the change need to be threat modeled? For example, does it create or modify files/directories that must only be readable by the process owner?
    • If so, then please label this pull request with the "security" label. We'll work with you to analyze the threats.

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

- Replace read-only DeadlineFarmDisplay and DeadlineQueueDisplay with
  editable DeadlineFarmListComboBox and DeadlineQueueListComboBox
- Add DeadlineStorageProfileNameListComboBox that shows only when
  queue has storage profiles available
- Config updates immediately on selection change
- Remove unused display classes and imports
- Add unit tests for new combo box functionality

Signed-off-by: Louise Fox <[email protected]>
Previously, queue parameters would only refresh when the queue ID changed.
This fix ensures queue environments are also refreshed when the farm ID
changes, since queue environments are specific to a farm+queue combination.

Signed-off-by: Louise Fox <[email protected]>
@folouiseAWS folouiseAWS requested a review from a team as a code owner December 12, 2025 17:34
@github-actions github-actions bot added the waiting-on-maintainers Waiting on the maintainers to review. label Dec 12, 2025
@folouiseAWS folouiseAWS changed the title Editable Farm and Queue fields feat: Add editable Farm and Queue fields Dec 12, 2025
The storage profile selector was not showing in the Submit Dialog even
when profiles were available. Two issues were fixed:

1. _update_storage_profile_visibility() only checked itemData(0), but
   <none selected> sorts alphabetically first and has empty string data,
   so it always returned False. Now iterates through all items to find
   any with real profile data.

2. Model signals (rowsInserted, etc.) weren't firing because the base
   class uses block_signals when populating the combo box. Added a
   connection to the _list_update signal which fires after async refresh.

Signed-off-by: Louise Fox <[email protected]>
@sonarqubecloud
Copy link

@folouiseAWS folouiseAWS changed the title feat: Add editable Farm and Queue fields feat!: Add editable Farm and Queue fields Dec 17, 2025
"""
Refreshes the controls for UI items that depend on the AWS Deadline Cloud API
for their values.
self.storage_profile_box_label = QLabel(tr("Default storage profile"))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: in this case, this is just the storage profile that we're using, so we don't need to specify it as the "Default storage profile", just "Storage profile"

self.deadline_authentication_status.api_availability_changed.connect(
self.refresh_deadline_settings
)
self.deadline_authentication_status.deadline_config_changed.connect(
Copy link
Contributor

Choose a reason for hiding this comment

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

Overall this looks good to me and is working! Just one small comment to address, otherwise it's good to go!

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.

3 participants