-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Workloads status component for resource list components #3637
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ajatprabha If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Have you rebased to master recently? There are some files/changes in there I know have been removed as of the Angular migration in this PR. Totally get it's a WIP, just looking to help out. 😄 Thanks! |
Yes, I rebased with master before creating the PR. The changes are working fine locally. Can you point out the files that need attention, I'll make the necessary changes after I add the statuses for workloads. |
Pointed a few places, please review all of your changes or cherry pick your commits into the new branch created from current master. |
9478fc2
to
d585611
Compare
Codecov Report
@@ Coverage Diff @@
## master #3637 +/- ##
==========================================
- Coverage 46.81% 46.78% -0.03%
==========================================
Files 165 165
Lines 7763 7763
Branches 24 24
==========================================
- Hits 3634 3632 -2
- Misses 3907 3910 +3
+ Partials 222 221 -1
Continue to review full report at Codecov.
|
As discussed on Slack, I have added the status bar on each list component. This allowed using existing data in the component as suggested by @maciaszczykm. cc: @jeefy |
I tested this and things look good. @ajatprabha Is this still considered a WIP? Or is this PR ready for review? |
I was thinking to also add |
IMHO adding a status bar on top of every list makes everything a bit overwhelming. Lists should be clean and contain only key information about the objects. Adding such bars might distract the user. I'd stick to the original charts at the top of the page to show statuses. List itself already contains status for every object. We should not need any more indicators to keep it as simple and clean as possible. |
I generally like the idea of having additional information next to the lists but I think we could use other design here. At the moment it doesn't match the styling of the rest of the component, is a bit too bold and colors are a bit overwhelming. We could use the help of someone who knows more than us about design, @danielromlein do you have some time for it? I think we will still need a component to display statuses of all workloads in one place. This (in each card) might be some feature enabled in the settings once we will style it. Both have their advantages, one is easier to reach, the second gives a better overview. Additionally like @floreks noticed we have a lot of things in the card components, we have to be careful here. |
I had the same thought as @floreks while implementing this. How do I pull data for a central component from backend then? Suggestions would be helpful. A new endpoint in the backend or maybe get it from state? |
Is calling all workload endpoints an option? Then we can send multiple calls asynchronously and display graphs when the responses come. |
We'll be replicating calls that way. Maybe we can use Is there a Service which manages this data from backend? I think component calls the endpoint itself right now. |
I know, output was the thing that I was mentioning before on Slack. The problem with this is coupling components. With separate calls it is independent. @floreks WDYT? |
How about adding emitter to the list and emit data on list update? This way we could avoid hard coupling and other components that require similar data could easily subscribe to it. I don't remember exactly how backend looked like before. I'd have to check it. |
@floreks We had group resources, i.e. workloads, overview, config etc. |
Closing in favour of #3667 |
This PR adds workloads status section charts to the resource list components.
Works towards #3440