Jai Bhagat
3a9057a89c
ui: prettify js files
2022-01-20 09:54:56 -05:00
Jai Bhagat
c4bc5ab352
ui: fix auto-fixable linting errors
2022-01-20 09:46:45 -05:00
Luiz Aoqui
a45ef5d47f
ui: minor fixes
2021-11-05 18:09:16 -04:00
Buck Doyle
4e4a83039f
ui: Fix bug where switching topo viz allocation highlights doesn’t update charts ( #10490 )
...
This closes #10489 . It adds `dependentKeyCompat` to the allocation getter so it works
as expected as a dependent key for the `tracker` computed property, as described here:
https://guides.emberjs.com/release/upgrading/current-edition/tracked-properties/#toc_backwards-compatibility
2021-05-03 10:36:18 -05:00
Michael Lange
a0e59f81ab
Use common helpers and utils for formatting hertz
2021-03-31 09:29:14 -07:00
Michael Lange
bf6fb48ca6
Format all bytes using helpers, even the ones that are already MiBs
2021-03-31 09:29:02 -07:00
Michael Lange
dc41e731ce
format-scheduled-bytes helper
2021-03-31 09:29:02 -07:00
Michael Lange
d787dda298
Use more explicit branching of reserved amounts based on metric type
2021-03-24 13:55:18 -07:00
Michael Lange
7ea7a1699d
Updated old tests
2021-03-24 13:52:52 -07:00
Michael Lange
ae22c09398
Tests for PrimaryMetric::Allocation
2021-03-24 13:52:52 -07:00
Michael Lange
ac4f173389
Tests for PrimaryMetric::Node
2021-03-24 13:52:52 -07:00
Michael Lange
3f46f77f92
New PrimaryMetric::Task component
2021-03-24 13:52:51 -07:00
Michael Lange
0016290871
Memoize the tracker and the series properties to avoid repeat computation
...
In addition to this computation being wasteful, it introduces a bug
where the allocation on a stats tracker can update twice in one render,
which isn't allowed in Glimmer (ironically, Glimmmer's lack of
auto-memoization introduced the issue).
2021-03-24 13:52:51 -07:00
Michael Lange
6a8d3340b0
Refactored multi-series allocation variant of the primary metric component
2021-03-24 13:52:51 -07:00
Michael Lange
c01f3c60fc
Refactor PrimaryMetric into parts/purposes
...
Currently, PrimaryMetric is already overloaded on multiple dimensions:
metric and resource type.
This refactor will use multiple components as a form of control flow
instead spidering conditionals, which are only getting worse as the
charts for each resource type diverge.
2021-03-24 13:52:51 -07:00