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

aotf: toolbar mutate button #598

Merged
merged 2 commits into from
Feb 25, 2021
Merged

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Feb 22, 2021

addresses: #339
built on: #544
related sibling pr: cylc/cylc-uiserver#175

Add a button in the workflow toolbar that lists workflow mutations.

kap

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.

@codecov-io
Copy link

codecov-io commented Feb 22, 2021

Codecov Report

Merging #598 (ff5ae3e) into master (b7dfc4a) will decrease coverage by 0.58%.
The diff coverage is 39.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #598      +/-   ##
==========================================
- Coverage   82.80%   82.21%   -0.59%     
==========================================
  Files          66       68       +2     
  Lines        1320     1372      +52     
  Branches       81       94      +13     
==========================================
+ Hits         1093     1128      +35     
- Misses        208      222      +14     
- Partials       19       22       +3     
Flag Coverage Δ
e2e 61.00% <39.39%> (+12.29%) ⬆️
unittests 78.11% <11.29%> (-2.86%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/cylc/tree/TreeItem.vue 96.15% <ø> (ø)
.../components/graphqlFormGenerator/FormGenerator.vue 86.95% <ø> (+4.34%) ⬆️
src/components/graphqlFormGenerator/FormInput.vue 75.00% <ø> (+5.43%) ⬆️
...aphqlFormGenerator/components/BroadcastSetting.vue 0.00% <0.00%> (ø)
...omponents/graphqlFormGenerator/components/Enum.vue 0.00% <0.00%> (ø)
...omponents/graphqlFormGenerator/components/List.vue 33.33% <ø> (ø)
...ponents/graphqlFormGenerator/components/Object.vue 100.00% <ø> (ø)
src/graphql/queries.js 100.00% <ø> (ø)
src/services/workflow.service.js 0.00% <0.00%> (ø)
src/components/cylc/cylcObject/Menu.vue 81.81% <63.63%> (+60.38%) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7dfc4a...ff5ae3e. Read the comment docs.

Comment on lines +52 to 63
broadcast: mdiBullhorn,
hold: mdiPause,
release: mdiPlay,
kill: mdiCloseCircle,
message: mdiEmail,
play: mdiPlay,
poll: mdiRefreshCircle,
release: mdiPlay,
reload: mdiReload,
remove: mdiDelete,
setOutputs: mdiGraph,
stop: mdiStop,
trigger: mdiCursorPointer
Copy link
Member Author

Choose a reason for hiding this comment

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

Add icons for the workflow-level mutations that didn't show up before.

@kinow
Copy link
Member

kinow commented Feb 23, 2021

@oliver-sanders is it also closing #135 ? Or maybe related?

I guess #135 goes further, with ideas for auto-completion and validating inputs. IMO we should close that issue with this PR, and post another issue for possible enhancements like those...

@oliver-sanders oliver-sanders mentioned this pull request Feb 24, 2021
2 tasks
@oliver-sanders
Copy link
Member Author

oliver-sanders commented Feb 24, 2021

Closes the first point of #544, the second point is about tracking mutations until they have completed which is something we can't yet do at the backend.

Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Working like a charm! Code looks excellent.

@oliver-sanders CHANGES.md has conflicts now. Also, for a follow-up:

image

I have not submitted this form yet. But apparently the state is kept somewhere I think. So after you submit a mutation once, the form will forever say "submitted", which is a little confusing.

@hjoliver
Copy link
Member

(Change log deconflicted via GH UI).

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

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

What @kinow said 🎉 Merging, can fix the "submitted" indicator in a follow-up.

@hjoliver hjoliver merged commit c481332 into cylc:master Feb 25, 2021
@oliver-sanders oliver-sanders deleted the aotf.toolbar branch February 25, 2021 08:15
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.

4 participants