Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-3533: Add admin-only distro setting #2241

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

sophstad
Copy link
Contributor

DEVPROD-3533

Description

  • Add field on general distro settings tab to mark distro as admin-only. This has no effect at present, but DEVPROD-3532 will hide these distros from user-facing menus, like distro selection when spawning hosts.

Screenshots

image

Testing

  • Update unit and Cypress tests

Evergreen PR

evergreen-ci/evergreen#7376

Copy link

cypress bot commented Jan 24, 2024

2 flaky tests on run #15406 ↗︎

0 545 10 0 Flakiness 2
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Codegen
Project: Spruce Commit: 1d769e2e76
Status: Passed Duration: 19:09 💡
Started: Jan 25, 2024 2:24 PM Ended: Jan 25, 2024 2:43 PM

Review all test suite changes for PR #2241 ↗︎

@sophstad sophstad requested a review from a team January 25, 2024 14:21
@sophstad sophstad marked this pull request as ready for review January 25, 2024 14:21
@@ -88,6 +93,10 @@ export const getFormSchema = (
},
distroOptions: {
"ui:ObjectFieldTemplate": CardFieldTemplate,
adminOnly: {
"ui:description":
"Admin-only distros are not selectable by general users (e.g. when spawning a host). They do not have their access controlled beyond being hidden.",
Copy link
Contributor

Choose a reason for hiding this comment

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

the example "when spawning a host" is somewhat confusing to me because I think we already hide distros in the spawn host modal through the userSpawnAllowed attribute. Unless maybe adminOnly is going to take precedence over userSpawnAllowed in the next PR? 👀 otherwise LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thomas clarified that there are lots of these temporary distros where userSpawnEnabled is true. The next PR will have admin-only take precedence over that setting, but will still allow these distros to be visible to admins in the dropdown.

@sophstad sophstad merged commit 3881b07 into evergreen-ci:main Jan 30, 2024
5 of 6 checks passed
@sophstad sophstad deleted the DEVPROD-3533 branch January 30, 2024 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants