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

UI: Use stats trackers for resource rows #4726

Conversation

DingoEatingFuzz
Copy link
Contributor

  • Update the stat polling on alloc rows to use the new stat tracker
  • Add resource tracking to task rows on the alloc detail page
  • Remove dead code from the old stat polling method.

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

I could see the stats tracker bars but they didn't seem to be showing any results? Plus the tooltip was showing '/ 2000' (missing the left side of the /). I think I'm checking the right place? Should I be seeing these filled with color/with numbers?

screen shot 2018-09-28 at 10 48 46

I think apart from that I also noticed that when you are hovered over the stats tracker, and you can see the tooltip, the tooltip seems to 'jump' every 2 seconds or so? The DOM seems to be changing every couple of seconds even though there are no changes to the displayed data?

Anyway, hopefully I'm looking in the right place, let me know and I can try again if you are seeing different to me.

{{x-icon "warning" class="is-warning"}}
</span>
{{else}}
<div class="inline-chart is-small tooltip" aria-label="{{cpu.used}} / {{taskStats.reservedCPU}} MHz">
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a role="tooltip" that might come in here?

@DingoEatingFuzz
Copy link
Contributor Author

I suspect that the visual issues you are seeing here and in the other PR are related to fixture data. Which I should fix, but in the meantime if you proxy to the demo site, I think things will work fine for you.

@johncowen
Copy link
Contributor

@DingoEatingFuzz ah cool, will see if I can give it a shot with that, will see if I can catch up with you later also.

@johncowen
Copy link
Contributor

Quick note, I pointed it to the demo site and set ENV['ember-cli-mirage'].enabled to false and I'm seeing things now for this PR (and I would assume the other one also). I'll see if I can spend a bit of time with it a bit later. The graphs looks sweet!

@johncowen
Copy link
Contributor

Hey, these are looking cool!

The 'jumping'' thing I mentioned above has gone also, so that must have been the fixtures.

Semi-related thing I noticed is that when you click away from the Allocation page (the one that has the graphs and the 'Task' table) using the second to last breadcrumb, you hit the following:

screen shot 2018-10-01 at 14 12 02

It's pretty consistent for me, I've tried in a few other places and it doesn't error (but I did find another one which seems unrelated), it seems to only be clicking the second to last breadcrumb.

Cheers,

John

@DingoEatingFuzz
Copy link
Contributor Author

I was able to reproduce the bug you observed and tracked it down to a bad namespace lookup for that particular route.

I'd prefer to fix that bug in a different PR though since this work isn't what introduced the issue.

// Internal state
statsError: false,

enablePolling: computed(() => !Ember.testing),
Copy link
Contributor

Choose a reason for hiding this comment

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

Couple of question on this for my own benefit really:

  1. Could you use alias for this?
  2. Does Ember.testing ever change once things are running?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alias only works for paths on the object already (e.g., this.Ember.testing), so no.

I just tried it and yes, Ember.testing can be changed at runtime, but it never happens from framework code.

@johncowen
Copy link
Contributor

I'd prefer to fix that bug in a different PR though since this work isn't what introduced the issue

Cool yeah, sounds good, ping me when you do it and I can take a look again.

I gave it another code once over and a couple of q's arose from that just for my own benefit.

Other than that LGTM!

@DingoEatingFuzz
Copy link
Contributor Author

Thanks for the review @johncowen, I added role="tooltip" throughout the app.

@DingoEatingFuzz DingoEatingFuzz merged commit fd415fe into f-ui-improved-stats-charts Oct 17, 2018
@DingoEatingFuzz DingoEatingFuzz deleted the f-ui-use-stats-trackers-for-resource-rows branch October 17, 2018 14:33
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants