Commit Graph

43 Commits

Author SHA1 Message Date
Jai Bhagat
74bc21e26b ui: prepare rebase for contextual job-page 2022-01-24 10:58:28 -05:00
Jai Bhagat
cae4bec3c9 ui: fix remaining linting errors 2022-01-20 10:39:02 -05:00
Jai Bhagat
8c600acb35 ui: prettify js files 2022-01-20 09:54:56 -05:00
Luiz Aoqui
6b488bdad3 Fix ACL requirements for job details UI (#11672) 2022-01-12 21:26:02 -05:00
Luiz Aoqui
6112620590 ui: fix client details page alloc status filter and replace task group with namespace and job 2021-12-17 18:49:42 -05:00
Buck Doyle
e47ce42548 Update Ember/Ember CLI to 3.20 (#9641)
This doesn’t include Ember Data, as we are still back on 3.12.

Most changes are deprecation updates, linting fixes, and dependencies. It can
be read commit-by-commit, though many of them are mechanical and skimmable.
For the new linting exclusions, I’ve added them to the Tech Debt list.

The decrease in test count is because linting is no longer included in ember test.

There’s a new deprecation warning in the logs that can be fixed by updating Ember
Power Select but when I tried that it caused it to render incorrectly, so I decided to
ignore it for now and address it separately.
2021-02-17 15:01:44 -06:00
Michael Lange
9e87f6a409 Limit the topo viz to only pending and running allocs
Failed allocs immediately vacate their allocated resources which results
in inaccurate distributions of allocations on a client.
2020-10-23 14:17:03 -07:00
Michael Lange
773404a47f Prototype of the topo viz
- Plot all datacenters
- For each datacenter, plot all nodes
- For each node, plot all allocations by memory and cpu
- For empty nodes, highlight the emptiness
- When hovering over allocations, give them visual focus
2020-10-15 02:54:13 -07:00
Buck Doyle
24eadd269c Add massaged results of class codemod
Manual interventions:
• decorators on the same line for service and controller
  injections and most computed property macros
• preserving import order when possible, both per-line
  and intra-line
• moving new imports to the bottom
• removal of classic decorator for trivial cases
• conversion of init to constructor when appropriate
2020-06-10 16:18:42 -05:00
Buck Doyle
06baadd01e UI: add filesystem browsing for allocations (#7951)
This partially addresses #7799.

Task state filesystems are contained within a subdirectory of their
parent allocation, so almost everything that existed for browsing task
state filesystems was applicable to browsing allocations, just without
the task name prepended to the path. I aimed to push this differential
handling into as few contained places as possible.

The tests also have significant overlap, so this includes an extracted
behavior to run the same tests for allocations and task states.
2020-06-01 08:15:59 -05:00
Michael Lange
db8e43949d Don't double load freshly loaded allocations 2020-05-12 21:30:33 -07:00
Michael Lange
59636adace Add embedded task group to allocation to reference when allocation is historical 2020-05-01 14:30:02 -07:00
Michael Lange
b22047e6e2 Add isMigrating property to the allocation model 2020-01-23 16:34:07 -08:00
Buck Doyle
dfb88cc787 UI: add Consul Connect features (#6108) 2019-09-04 09:39:56 -05:00
Michael Lange
69c6c34afa Support task restarting in the allocation adapter 2019-05-21 09:24:17 -07:00
Michael Lange
4038434603 Allocation methods for stopping and restarting 2019-05-21 09:24:16 -07:00
Michael Lange
384a0e5a54 Add wasPreempted bool to allocs 2019-04-22 16:40:02 -07:00
Michael Lange
cf1d4a3a1e Data modeling for preemptions 2019-04-22 16:40:00 -07:00
Michael Lange
f6232f1817 ES5 getters codemod 2019-04-10 14:54:36 -07:00
Michael Lange
cf44c5449c Address test failures 2019-04-10 14:54:35 -07:00
Michael Lange
605d7a245f Model isRunning based on the client status of the allocation 2018-12-13 07:53:17 -08:00
Michael Lange
4d5fa15ea7 Remove no longer used allocation-stats class 2018-09-26 10:59:26 -07:00
Michael Lange
81255bee16 Add createTime to the allocation model 2018-08-06 10:53:13 -07:00
Michael Lange
90ea4f0f21 Update all the awkward browserify imports to plain ol' es6 imports 2018-07-06 13:38:57 -07:00
Michael Lange
8f811d5046 Remove hacky code that worked around an Ember Data bug
The bug is fixed in 2.18, so this can be written in the normal
less surprising way.
2018-06-13 15:05:18 -07:00
Michael Lange
1a55f18085 Spread the driver health love throughout job models 2018-05-25 10:15:23 -07:00
Michael Lange
5952cafccb Reschedule events timeline for the alloc detail page 2018-05-04 19:36:54 -07:00
Michael Lange
52c5806819 Add WaitUntil and followUpEvaluation 2018-05-04 19:36:54 -07:00
Michael Lange
8d18997b1c Add follow up eval relationship to allocation 2018-05-04 19:36:54 -07:00
Michael Lange
0344715ece Modeling alloc reschedule events 2018-05-04 19:36:54 -07:00
Michael Lange
286b3d9671 Refactor the way allocation stats are fetched
No longer treat it as a property for relationship, just ephemeral
data that can be fetched on demand.
2018-03-22 14:34:13 -07:00
Michael Lange
39f9914733 Get client stats through the server agent 2018-02-26 12:23:47 -08:00
Michael Lange
2e19c2d877 Use the new ember modules imports
Generated with a codemode:
https://github.com/ember-cli/ember-modules-codemod
2018-01-17 09:02:04 -08:00
Michael Lange
e982951f98 Use ModifyTime instead of ModifyIndex 2017-12-06 10:17:12 -08:00
Michael Lange
d820c72142 Update allocation detail page to look like job and node 2017-11-14 11:05:29 -08:00
Michael Lange
173a0caa3a Handle the undefined TotalTicks case 2017-10-19 17:35:58 -07:00
Michael Lange
20b8e39842 Don't rely on CpuStats.Percent
Just do the math client-side with TotalTicks and Reserved
2017-10-19 10:44:52 -07:00
Michael Lange
30806f9bc5 Add the acl token as a header to client requests 2017-10-18 19:48:17 -07:00
Michael Lange
76bda0fb37 Add job version to allocation tables 2017-10-18 12:29:33 -07:00
Michael Lange
9839061745 Sort allocation by status type, not simply alphanumeric 2017-10-18 11:45:01 -07:00
Michael Lange
93202b2e1b Fix the memory usage math
1. Use RSS, not Cache (shoulda read the source)
2. Convert bytes to megabytes before doing division
2017-10-17 10:17:42 -07:00
Michael Lange
1ddb2b7889 Fixes issue regarding allocation rows
Sometimes the job name and/or task group name wouldn't show up.
2017-10-05 18:01:19 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00