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

Log view mutation #1162

Closed
wants to merge 25 commits into from
Closed

Conversation

oliver-sanders
Copy link
Member

There are a couple of things the log view will need which we hadn't implemented interfaces for yet:

  1. The log view will need to change its subscription on the fly.
    • E.G. if the user opens the log view on one job, then switches to viewing another, then we need the subscription to be closed and re-opened.
    • The view "query" is already a computed property, we just needed to get the WorkflowService to respect that.
  2. The log view will need to be open-able from the mutation menu.
    • E.G. the user should be able to click on a task, then select "log" to open the log view for that task.
    • This means views require some for of "initialData" to carry arguments related to how they were opened.

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).
  • Already covered by existing tests.
  • Does not need tests (why?).
  • Appropriate change log entry included.
  • No change log entry required (why? e.g. invisible to users).
  • I have opened a documentation PR at cylc/cylc-doc/pull/XXXX.
  • No documentation update required.

MetRonnie and others added 25 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.
* If a view's query changes (e.g. if its variables change) whilst it is
  running. The view will now be un-subscribed, then re-subscribed with
  the new query.
* Adds an interface for opening views via the eventBus.
* Adds an `initialData` prop for views to recieve arguments.
@oliver-sanders oliver-sanders self-assigned this Dec 9, 2022
@wxtim
Copy link
Member

wxtim commented Jan 11, 2023

@oliver-sanders - did you intend not to milestone this?

@oliver-sanders
Copy link
Member Author

Yes, some of the commits from here are cherry-picked onto Mel's log branch, I'll take whatever remains and put this up for review if needed.

@oliver-sanders
Copy link
Member Author

This will hopefully be superseeded shortly as part of a fix, will leave this open for a bit as a placeholder.

@MetRonnie
Copy link
Member

Superseded by #1158?

@oliver-sanders
Copy link
Member Author

Yes, this also had the subscription update code which is now superseeded by #1249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants