Skip to content

fix: show resource ID in dropdown when user lacks list permission#993

Open
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
rickrams:fix/show-id-when-no-list-permission
Open

fix: show resource ID in dropdown when user lacks list permission#993
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
rickrams:fix/show-id-when-no-list-permission

Conversation

@rickrams
Copy link
Contributor

@rickrams rickrams commented Feb 5, 2026

When a user has a farm/queue ID configured but lacks permission to list farms/queues, the settings dropdown would show ''. Now it displays the configured ID instead, allowing users with limited permissions to still see their configured resources.

Fixes:

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

Trying to improve the experience of queue only users.

What was the solution? (How)

Showing the farm ID instead of 'none selected' when the user has no permissions to farms.

What is the impact of this change?

Improved UX

How was this change tested?

Tests were run and local tests with the houdini submitter

See DEVELOPMENT.md for information on running tests.

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

Was this change documented?

  • Are relevant docstrings in the code base updated? N/A
  • Has the README.md been updated? N/A

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.

When a user has a farm/queue ID configured but lacks permission to list
farms/queues, the settings dropdown would show '<none selected>'. Now it
displays the configured ID instead, allowing users with limited
permissions to still see their configured resources.

Signed-off-by: rickrams <rickrams@users.noreply.github.com>
@github-actions github-actions bot added the waiting-on-maintainers Waiting on the maintainers to review. label Feb 5, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

@rickrams rickrams marked this pull request as ready for review February 5, 2026 21:14
@rickrams rickrams requested a review from a team as a code owner February 5, 2026 21:14
index = self.box.findData(selected_id)
if index >= 0:
self.box.setCurrentIndex(index)
elif selected_id:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a unit test please, this case is interesting and we need the test to keep re-inforcing why it is needed.

And add a comment when this happens, EG: user has queue permission but no farm permissions. It'll be forgotten soon.

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.

2 participants