-
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
Define where the data will be loaded for views like Dashboard #162
Comments
I thought the application do something like:
I thought (could be wrong, sorry) that there would be an initial "heavy/expensive" GraphQL query to fetch the workflows (2.2). But subsequent queries would receive only incremental updates. With that in mind, I thought for this scenario, of the user viewing the dashboard, the query would bring the status too (as we gray out stopped workflows), and possibly the events (I think so? The latest message or something similar). So that data would be used by |
Similarly, when the user visits |
Said all that, we can go with the current approach, as this discussion could drag over time, and I think we have a good momentum on Cylc UI, and would prefer to continue the development of new components/views/etc instead of focusing too much on lengthy discussions around this (not too hard to change it later). And as I could very well be wrong too hehe :) |
Isn't this what we already have? The WorkflowService is a singleton which handles the REST interface (websocket in the future). |
Well, yeah. In a certain way. It will be called every time we navigate to I was thinking in a way to load the data common for the view and its components, but let's start with the current approach. If we don't have any issues we won't have to change it, and then we can just close this issue. |
ps: just had a quick meeting with Hilary, and after some discussion I think it cleared up a few things for me! Next week I'll write unit tests for the |
Next on my list. We have the workflow component in a PR, and the GScan component is already working. Time to get the dashboard to show some real numbers. I have a better understanding of the code, so hopefully will be able to plug in the data for the dashboard with no issues 👍 |
Follow up from #149
When browsing
/#/dashboard
, the user will initiate a Route to a view. The view is handled by a component, in this casesrc/views/Dashboard.vue
.At the moment,
Dashboard.vue
is initiating a polling to retrieve data from GraphQL for the query. The design sketch document has what is inGScan.vue
in the place of what we have in theDrawer.vue
at the moment.Once we move
GScan.vue
there, both components (Dashboard.vue
andGScan.vue
) will be displayed at the same time. This issue is for discussion around choosing when and how to fetch the data for components in Cylc UI.The text was updated successfully, but these errors were encountered: