Commit Graph

557 Commits

Author SHA1 Message Date
Michael Lange
130e951a37 Merge pull request #4600 from hashicorp/f-ui-job-writes
UI: Job Writes
2018-08-30 10:41:14 -07:00
Michael Lange
334358ad24 Merge pull request #4615 from hashicorp/f-ui-restart-stopped-job
UI: Restart stopped job
2018-08-30 09:49:14 -07:00
Michael Lange
d824b70cee Merge pull request #4616 from hashicorp/f-ui-promote-canary
UI: Promote canary
2018-08-30 09:48:31 -07:00
Michael Lange
c96c99aa37 Test coverage for the promote canary feature 2018-08-30 09:38:29 -07:00
Michael Lange
f4ceb2264c Fix the flickering issue with start/stop job
When the server doesn't respond immediately, there is a visible window
of time between the action being submitted and the blocking query coming
back with the new job status.
2018-08-28 11:27:00 -07:00
Michael Lange
f79f037096 Add a confirmation loading state to the two-step-button component 2018-08-28 11:27:00 -07:00
Michael Lange
f09e9a41bc Switch stop/run job actions to EC tasks 2018-08-28 11:27:00 -07:00
Michael Lange
619376c3b8 Add Start Job action on the job overview page for when a job is dead 2018-08-28 11:27:00 -07:00
Michael Lange
42a30ab694 Update the info message about token storage 2018-08-28 10:05:36 -07:00
Michael Lange
12bdfbdf47 Switch token storage to localStorage from sessionStorage 2018-08-28 10:05:15 -07:00
Michael Lange
c510060c12 Change the latest deployment component to include a Promote Canary button
Before it would say the deployment required promotion, now it has a
button that triggers the promotion.
2018-08-24 16:41:47 -07:00
Michael Lange
78b9d32eb4 Support the promote deployment api action 2018-08-24 16:41:47 -07:00
Michael Lange
85aaa53fd5 Simplify the data control flow around job.plan() 2018-08-23 15:40:42 -07:00
Michael Lange
e8db71a065 Acceptance tests for the edit behaviors on the job definition page 2018-08-23 10:26:20 -07:00
Michael Lange
6463efe2ce Test coverage for the job-editor component
Most of this was ported over from the existing job run acceptance tests
2018-08-23 09:00:14 -07:00
Michael Lange
684f45c285 Introduce job editing to the job definition page 2018-08-21 16:46:24 -07:00
Michael Lange
b478d71a7b Support cancellation of editing in the job-editor 2018-08-21 16:45:53 -07:00
Michael Lange
b68ba61105 Fix bug where scrolling wasn't using the document
Instead it was using the page-layout is-right div
2018-08-21 16:44:59 -07:00
Michael Lange
69d28de528 Handle update job in the model 2018-08-21 16:44:31 -07:00
Michael Lange
d36270b0dd fixup-job-editor 2018-08-21 16:43:46 -07:00
Michael Lange
91f8c1550c fixup-adapter 2018-08-21 16:43:30 -07:00
Michael Lange
cdc37ec36c Support different contexts for the job editor 2018-08-21 16:41:05 -07:00
Michael Lange
522f6d783b Support job update in the adapter 2018-08-21 16:39:47 -07:00
Michael Lange
1e4ca096b2 Use the same urlForFindRecord logic for urlForUpdateRecord 2018-08-21 16:38:35 -07:00
Michael Lange
8031a0d35d Fix multiple highlight bug in the distribution-bar component
Caused by the re-indexing that occurs to remove zero-value bars.
2018-08-21 16:37:36 -07:00
Michael Lange
e9190f49ba Fix a blocking queries bug
The lowest valid blocking query index is 1, but the API will return 0 if
there has yet to be an index set (no response). This in conjunction with
that 0 being stored as a string made the "fallback to 1" guard not work.
2018-08-21 13:47:01 -07:00
Michael Lange
a2c12b91e3 Move the bulk of the new job page into a new job editor component 2018-08-21 12:07:45 -07:00
Michael Lange
d64491b22f New job edit page 2018-08-21 12:06:43 -07:00
Michael Lange
2d0805c453 Test coverage for scheduler dry-run addition to the plan page 2018-08-20 16:44:37 -07:00
Michael Lange
223dae27a0 Fixed bug that prevented non verbose job diffs from printing changed leaf nodes 2018-08-20 16:44:37 -07:00
Michael Lange
9b7b465a66 Show the scheduler dry-run output on the plan page 2018-08-20 16:44:37 -07:00
Michael Lange
9e584e6486 Specialized No Leader error page 2018-08-20 14:11:50 -07:00
Michael Lange
1c94fdb175 Don't use the verbose diff for job run plan 2018-08-17 18:32:59 -07:00
Michael Lange
da8a6e4f2b Spiff up the form buttons with type and disabled attributes 2018-08-17 18:20:15 -07:00
Michael Lange
a5d6790eba Acceptance tests for job run page 2018-08-16 17:22:58 -07:00
Michael Lange
3b8b894ffd Acceptance test for the jobs list page 2018-08-15 17:12:18 -07:00
Michael Lange
a970741198 Move the Diff property read out of the template 2018-08-15 16:58:54 -07:00
Michael Lange
f29f4351f1 Error messages for job submit 2018-08-15 15:18:38 -07:00
Michael Lange
f2128872ce Run job UI and API workflows 2018-08-14 18:26:26 -07:00
Michael Lange
27f4a59259 Fix no allocations error message layout for the recent allocations component 2018-08-14 17:37:15 -07:00
Michael Lange
da1e179704 Parse and Plan API and UI workflows 2018-08-14 17:29:51 -07:00
Michael Lange
302401d45c Add breadcrumb to the run job page 2018-08-14 13:06:26 -07:00
Michael Lange
33956a69da New job run page and navigation to get there. 2018-08-14 12:54:54 -07:00
Michael Lange
53f2ca3127 New layout helper for associating two elements vertically
By default, blocks have a margin of 1.5em to create a consistent
vertical rhythm. However, sometimes elements need to be associated with
the element above them. In this cases, the gap between elements needs to
be tighter. There are many ways to do this, but this approach asks the
latter content to be marked as associative. The implication is that the
association is with the previous block.
2018-08-14 12:47:28 -07:00
Michael Lange
751b6e2fd6 Enforce a min-height for the code editor component 2018-08-14 12:46:55 -07:00
Michael Lange
dcd8133461 Remove the old json viewer 2018-08-13 17:04:15 -07:00
Michael Lange
ee08e40071 Delete the removed "depth" aspect of json viewer from the styleguide 2018-08-13 17:04:14 -07:00
Michael Lange
8291373d24 Theme CodeMirror
Borrowed heavily from Vault
2018-08-13 17:04:14 -07:00
Michael Lange
19d7202bd1 Use ivy-codemirror in the JSON Viewer component 2018-08-13 17:04:14 -07:00
Michael Lange
3192267039 Use the model hook and setupController hook instead of afterModel
This is a more idiomatic way to handle the QP resetting in the
application controller.
2018-08-13 16:18:06 -07:00