Skip to content

[UI] Edit Cluster #1400

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

Merged
merged 30 commits into from
Sep 6, 2022
Merged

[UI] Edit Cluster #1400

merged 30 commits into from
Sep 6, 2022

Conversation

AlinaGoaga
Copy link
Contributor

@AlinaGoaga AlinaGoaga commented Aug 30, 2022

Closes #1393
Closes #1450


  • Update local form representation from UpdatedProfile[] to a map of { [name: string}: UpdatedProfile } for easier updates of state when editing profiles
  • Moves parameter_values into formData.parameter_values to avoid accidentally loading head_branch etc back into the form state from the annotation.
  • Fixes ProfilesContext isLoading and profiles being out of sync (rm the onSuccess handler and wrap the post-request transformations in a useMemo instead)
  • Remove activeCluster / activeTemplate, just read from URL
  • Remove local setSelected state from Profiles component, handle all state in ClusterForm
  • Pull out a few helper functions like
    • toPayload
    • getInitialData

@AlinaGoaga AlinaGoaga added the enhancement New feature or request label Aug 30, 2022
AlinaGoaga and others added 24 commits August 31, 2022 11:50
- Update local form representation from UpdatedProfile[] to a map of { [name: string}: UpdatedProfile } for easier updates of state.
- Moves parameter_values into formData.parameter_values to avoid accidentally loading head_branch etc back into the form state from the annotation.
- Fixes ProfilesContext `isLoading` and `profiles` being out of sync (rm onSuccess handler)
- Remove activeCluster / activeTemplate, just read from URL
- Remove local setSelected state from Profiles component, handle all state in ClusterForm
- Pull out a few helper functions like
  - toPayload
  - getInitialData
@AlinaGoaga AlinaGoaga marked this pull request as ready for review September 6, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Filter/Search fields should not be present on Profiles table on add-app/create-cluster [UI] Add "Edit cluster" button to cluster table rows
2 participants