Michael Lange
3fcd5edd41
Make the Plugin adapter extend Watchable
2020-05-14 14:37:07 -07:00
Michael Lange
278b8499c6
Protect against making watch requests using adapters that don't extend Watchable
2020-05-14 14:36:38 -07:00
Michael Lange
1e7f1871bd
Merge pull request #7942 from hashicorp/b-ui/csi-alloc-relationships
...
UI: CSI Bug, Imperatively load controller/node plugin allocations
2020-05-13 10:20:09 -07:00
Michael Lange
0a258b1a9f
Test coverage for the gauge chart
2020-05-13 08:36:05 -07:00
Michael Lange
b3475add53
Adjust gauge chart stories
2020-05-13 08:36:05 -07:00
Michael Lange
83cd585682
Add gauge charts to the plugin detail page to measure availability
2020-05-13 08:36:05 -07:00
Michael Lange
df3c24f968
Bottom aligned columns variant
2020-05-13 08:36:05 -07:00
Michael Lange
4e7354117a
Add gauge chart stories
2020-05-13 08:36:05 -07:00
Michael Lange
fe26e904bb
Style the gauge chart component
2020-05-13 08:36:05 -07:00
Michael Lange
72a928c5ec
Treat null and undefined equally
2020-05-13 08:36:04 -07:00
Michael Lange
7e93f9033d
Refactor metrics styles to allow for standalone metrics
2020-05-13 08:36:04 -07:00
Michael Lange
dfc45f4dcd
Gauge chart component
2020-05-13 08:36:04 -07:00
Michael Lange
30715b8b37
Test coverage for the plugin-allocation-row
2020-05-12 21:30:33 -07:00
Michael Lange
db8e43949d
Don't double load freshly loaded allocations
2020-05-12 21:30:33 -07:00
Michael Lange
32b4e5e8ab
Properly manage the lifecycle of allocations for storage nodes and controllers
2020-05-12 21:30:33 -07:00
Michael Lange
cb6b9dc1f2
Key allocation rows to prevent unnecessary re-renders
2020-05-12 21:30:32 -07:00
Buck Doyle
8c3a210839
Add ACL-checking to turn off exec button ( #7919 )
...
This closes #7453 . It adds an abstraction to handle the common
needs of ability-determination.
2020-05-11 14:43:17 -05:00
Mahmood Ali
521eed273b
Add tests for running allocation client count ( #7906 )
...
* Add tests for running allocation client count
* remove redundant assertions
2020-05-11 12:28:31 -04:00
Michael Lange
804029c9a2
The active namespace is now shared between jobs and storage
2020-05-08 17:35:27 -07:00
Michael Lange
c5b1fd3aa7
Changing namespaces now situationally redirects to jobs or volumes
...
Changing namespaces can be done anywhere in the app even though many
Nomad resources aren't namespace-sensitive (e.g., clients, plugins).
A user changing namespaces is an intent to reset context, "now I want
to begin a task that relates to Namespace X". Where that task begins
used to always be the Jobs list, since it was the only namespace
sensitive resource. Now with CSI Volumes, "square 1" is Volumes if the
namespace is changed from a storage page.
2020-05-08 17:35:27 -07:00
Michael Lange
dc8c125202
Searchable plugins
2020-05-07 17:25:24 -07:00
Michael Lange
a4ea5b16e5
Searchable volumes
2020-05-07 16:57:51 -07:00
Michael Lange
877cadffc9
Acceptance test for PluginDetail
2020-05-06 17:36:45 -07:00
Michael Lange
6b46b28624
Don't wrap between icons and health text
2020-05-06 17:22:42 -07:00
Michael Lange
75a150f2ef
Use lazyClick to avoid multiple transitionToRoutes being in flight as once
2020-05-06 17:22:42 -07:00
Michael Lange
7c373a2340
Refactor AllocationRow qualifyAllocation
...
There was a missing edge case where a job is pending. I took the moment
to also refactor the code to use async/await which cleaned up the
promise chaining.
2020-05-06 17:22:42 -07:00
Michael Lange
9632aace74
Sort allocations on the plugin detail page
2020-05-06 17:21:49 -07:00
Michael Lange
092b05d5d1
Page object for Plugins List
2020-05-06 17:21:48 -07:00
Michael Lange
4f4bc6a060
Correct the table headers for dates on the volume page
2020-05-06 17:21:48 -07:00
Michael Lange
bcc6562543
Add a nodes table as well
2020-05-06 17:21:48 -07:00
Michael Lange
d0d1c1fdef
Set color in addition to fill for the icon class
...
Structure icons have fill set to currentColor hardcored in their markup.
This mean setting fill to a color in CSS does nothing, but setting color
now does.
2020-05-06 17:21:47 -07:00
Michael Lange
e6e57557d2
Add icons to the plugin alloc row component
2020-05-06 17:21:47 -07:00
Michael Lange
865e285ec3
Use the correct plugin property for the breadcrumb
2020-05-06 17:21:47 -07:00
Michael Lange
16296f1332
New PluginAllocationRow derivative of AllocationRow
2020-05-06 17:21:46 -07:00
Michael Lange
3999d453ff
Emulate belongsTo relationship in storage fragments
2020-05-06 17:21:46 -07:00
Michael Lange
c04b5d29f4
Add short option to date formatters
2020-05-06 17:21:46 -07:00
Michael Lange
6ad5243ae6
Refactor AllocationRow to use AllocationStat
2020-05-06 17:21:45 -07:00
Michael Lange
64fa26b4b9
Separate AllocationStat component for containing the multiple states a stat tracker can be in
2020-05-06 17:21:45 -07:00
Michael Lange
96f86d95be
Setup the plugin detail page
2020-05-06 17:21:45 -07:00
Michael Lange
5d3438193a
Model out the rest of the CSI Plugin properties
2020-05-06 17:21:44 -07:00
Michael Lange
6c262ddeba
Plugins table on the plugins list page
2020-05-06 17:21:44 -07:00
Michael Lange
eaa107ea36
Clean up the csi volume page
2020-05-06 17:21:44 -07:00
Michael Lange
f07a44d844
Set up routes, controllers, and template basics for the plugins page
2020-05-06 17:21:43 -07:00
Michael Lange
70fe2b3484
Add a subnav to the volumes page
2020-05-06 17:21:43 -07:00
Michael Lange
572cf0d467
Update plugin model and serializer to match final API
2020-05-06 17:21:42 -07:00
Michael Lange
83baebc841
Add constraints table to the volume detail page
2020-05-06 17:21:42 -07:00
Buck Doyle
bd8d418705
UI: Remove Ember Freestyle ( #7839 )
...
This completes the migration to Storybook by replacing the colour palette and typeface components that I left out.
2020-05-06 15:11:15 -05:00
Michael Lange
d9aaaa0107
Merge pull request #7855 from hashicorp/b-ui/alloc-wrong-reserved-resources
...
UI: Make allocation reference own task group instead of job's task group when job versions don't match
2020-05-06 10:08:37 -07:00
Mahmood Ali
2ca8758494
ui: only count running allocations in client view
...
In the client view list, only show running allocations count for each
client, rather than include already completed tasks.
This is done for two reasons:
First, consitency with the CLI: `nomad node status --allocs` only
shows running allocs.
Second, and more importantly, the count is useful to estimate how loaded
the clients are. Allocs that have completed (but not GCed yet) have
very little value to operators.
2020-05-05 21:31:58 -04:00
Michael Lange
59636adace
Add embedded task group to allocation to reference when allocation is historical
2020-05-01 14:30:02 -07:00