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

Edit runtime (deconflicted) #1160

Merged
merged 24 commits into from
Dec 12, 2022

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Dec 9, 2022

Superseedes #1144

This is Ronnie's edit-runtime-deconflict branch which he prepared in anticipation of the graph-view/central-data-store PR being merged.

  • Implement an "Edit Runtime" command that presents you with a form to see and edit the existing [runtime] settings for a task/family. Any edits made will be transmitted to the workflow via broadcast.
  • The form for editing a command now closes automatically on successful submission

I've pushed an extra commit which removes some of the workarounds that were needed before the central data store was implemented. Address these review comments:

Please review the last commit and perform some functional testing.

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Appropriate tests are included (unit and/or functional).
  • Appropriate change log entry included.
  • No documentation update required.

MetRonnie and others added 23 commits November 18, 2022 12:12
- Allow a mutation argument type to be associated with a cylc object type (cycle, task etc.) without auto filling that object into the form input
- Add icon for Edit Runtime
Uses introspection to expand fields of the query if none specified
Update introspection query response in mock service
Avoids need to manually reset state of form
Because that's the order they appear in the broadcast
Move properties that do not need to be reactive out of `data`
Simplify help icon logic - it now shows help on hover instead of click
Adapt AOTF's handling of 'INPUT_OBJECT' for 'OBJECT' seeing as the former is not used?
- Remain open with loading spinner in the submit button while awaiting the mutation response
- Show error snackbar and stay open on failed submission
- Show warning snackbar and stay open if the Edit-Runtime form does not have any changes on submission
* Each node in the store is now associated with its UID type
  (user, workflow, cycle, task, job, $edge, $namespace).
* Use this type for mutation listing rather than trying to infer whether
  a task is a family or not by looking at its node contents.
* Simplify some internals.
@oliver-sanders oliver-sanders added this to the 1.4.0 milestone Dec 9, 2022
@oliver-sanders oliver-sanders self-assigned this Dec 9, 2022
@oliver-sanders oliver-sanders mentioned this pull request Dec 9, 2022
6 tasks
* Test passes reliably without the wait.
@wxtim
Copy link
Member

wxtim commented Dec 12, 2022

Functional Tests

  • Changed platform from a defunct to useable platform to turn a submit-fail into succeed.
  • Modified script, pre and post and checked output, including using python -c ''.
  • Broke a perfectly OK script on re-triggering.
  • Modified an environment variable - looks good
  • Changed a Slurm directive - worked as expected.

Possible enhancements for future

  • ctrl + enter submits form?
  • The UI ticket about making the menu behave nicely will be a priority - it's dangerous without it - to easy to click on the wrong thing. Mutations Menu: Jumps on expand #1163

Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

Looks like it works

Copy link
Member Author

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

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

Approved!

@oliver-sanders oliver-sanders linked an issue Dec 12, 2022 that may be closed by this pull request
@oliver-sanders oliver-sanders merged commit 987e4b6 into cylc:master Dec 12, 2022
@oliver-sanders oliver-sanders deleted the edit-runtime-deconflict branch December 12, 2022 13:39
@MetRonnie MetRonnie self-assigned this Dec 15, 2022
@MetRonnie MetRonnie changed the title Edit runtime deconflict Edit runtime (deconflicted) Dec 15, 2022
@MetRonnie MetRonnie linked an issue Dec 15, 2022 that may be closed by this pull request
4 tasks
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.

Trigger edit replacement - "Edit Runtime" Close mutation editor on submission
3 participants