-
Notifications
You must be signed in to change notification settings - Fork 28
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
subscription interface #862
Comments
[Update 2023] We've had a while to play around with queries now. The data requirements of views are generally quite simple, but the subscriptions are quite lengthy as a result of boilerplate. The boiler plate results from the requirements of the store itself which imposes a set of rules:
Which is quite a lot of rules which makes view writing harder than it has to be and easier to mess up. Here's the query for the SimpleTree which serves as developer documentation, most of which is boilerplate: cylc-ui/src/views/SimpleTree.vue Lines 118 to 175 in 2d81ad2
As a result of the complexity of these rules as well as other factors incl maintainability and duplicate-fragment warnings, I think that templating requested fields into the query rather than attempting to merge the pre-formed queries is looking like the way to go (i.e. what this issue is about). Note, filtering at the query level (as referenced in the OP) is a more advanced feature which cylc-ui is yet to develop. |
The current subscription interface:
Possible simplification:
For example a simple tree view might provide the following subscription:
Which the workflow service could construct into:
If a second subscription came along with a blank task-filter we could handle that intelligently in the UI code:
The text was updated successfully, but these errors were encountered: