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

DEVPROD-1661 add distro setting for mountpoints #2157

Merged
merged 10 commits into from
Dec 11, 2023

Conversation

ybrill
Copy link
Contributor

@ybrill ybrill commented Nov 16, 2023

DEVPROD-1661

Description

evergreen-ci/evergreen#7213 added a new setting to the legacy distros page for mountpoints in the distro. This PR will add the setting to the new distro page as well.

Screenshots

Screenshot 2023-11-16 at 6 25 41 PM

Testing

I'm not completely clear how to test this. The field is added to the test data/transformers test, but I'm sure there must be other tests I can add it to.

Evergreen PR

evergreen-ci/evergreen#7213

@ybrill
Copy link
Contributor Author

ybrill commented Nov 16, 2023

evergreen-ci/evergreen#7256 adds the mountpoint to the distro mutation.

Copy link

cypress bot commented Nov 16, 2023

1 flaky test on run #14479 ↗︎

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

Details:

Merge branch 'main' into DEVPROD-1661_add_disto_setting
Project: Spruce Commit: d780c30206
Status: Passed Duration: 24:29 💡
Started: Nov 29, 2023 9:08 PM Ended: Nov 29, 2023 9:33 PM

Review all test suite changes for PR #2157 ↗︎

Copy link
Contributor

@SupaJoon SupaJoon left a comment

Choose a reason for hiding this comment

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

You can write an e2e test by following the examples in this file

Copy link
Contributor

@SupaJoon SupaJoon left a comment

Choose a reason for hiding this comment

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

Please include a test for gqlToForm when mountpoints is null. Pull in main after the code suggestion is committed and the e2e tests may pass

@@ -48,6 +49,7 @@ export const gqlToForm = ((data) => {
isVirtualWorkStation,
icecreamSchedulerHost: iceCreamSettings.schedulerHost,
icecreamConfigPath: iceCreamSettings.configPath,
mountpoints,
Copy link
Contributor

Choose a reason for hiding this comment

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

The form isn't allowing save because it wants mountpoints to be an array but instead it is null when the data initially loads.

Suggested change
mountpoints,
mountpoints: mountpoints ?? [],

Copy link
Contributor

Choose a reason for hiding this comment

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

I found that out by logging here:

case "updateForm":

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ybrill
Copy link
Contributor Author

ybrill commented Nov 29, 2023

@SupaJoon it looks like e2e passed 🕺 !
Idk what cypress/flake is, though.

@ybrill ybrill requested a review from SupaJoon November 29, 2023 21:47
@ybrill ybrill merged commit d19d2bd into main Dec 11, 2023
2 checks passed
@ybrill ybrill deleted the DEVPROD-1661_add_disto_setting branch December 11, 2023 16:15
@ybrill ybrill restored the DEVPROD-1661_add_disto_setting branch December 11, 2023 16:15
@ybrill ybrill deleted the DEVPROD-1661_add_disto_setting branch December 11, 2023 16:15
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