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

fix: clear storage profiles in gui submitter #204

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

ttblanchard
Copy link
Contributor

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

In the Gui Config, when changing the default Queue if the selected Queue does not have the select default Storage Profile in it's list of Allowed Storage Profiles the Storage Profile is not cleared from the config file.

What was the solution? (How)

Always check the value of the Storage Profile control when saving the config to disk.

What is the impact of this change?

When a default Queue is selected that doesn't have the selected default Storage Profile in it's list of Allowed Storage Profiles, the value is cleared from the config when saved.

How was this change tested?

Launched the UI with 2 Queues and 1 Storage Profile configured:

Queue1 - Allowed SP 1
Queue2 - No SP

  • Saved Queue1 + SP1 config
  • Submit Job to Queue1 successfully
  • Save Queue2 - No SP
  • Submit Job to Queue2 successfully

Was this change documented?

No

Is this a breaking change?

No

@ttblanchard ttblanchard requested a review from a team as a code owner March 12, 2024 02:28
Signed-off-by: Trevor Blanchard <blantrev@amazon.com>
Copy link
Contributor

@epmog epmog left a comment

Choose a reason for hiding this comment

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

Chatted offline, Since Storage Profiles are at the farm-level, this fix (allowing a user to easily swap between queues that do or do not have their storage profile) will introduce a slight UX negative, in that if they switch to a queue without their storage profile allowed and apply the settings, then it won't remember their storage profile for the queues that do support it.

In practice, this should be rare, but it's very easy to hit with testing. We'll have to revisit this when we have more time to polish that experience.

Ship it!

@ttblanchard ttblanchard enabled auto-merge (squash) March 12, 2024 19:05
@ttblanchard ttblanchard merged commit 7223195 into mainline Mar 12, 2024
18 checks passed
@ttblanchard ttblanchard deleted the clear-storage-profile-config branch March 12, 2024 19:12
npmacl pushed a commit that referenced this pull request Mar 21, 2024
Signed-off-by: Trevor Blanchard <blantrev@amazon.com>
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