Commit Graph

71 Commits

Author SHA1 Message Date
Buck Doyle
882a0210fe UI: Update Ember to 3.12 LTS (#6419)
This is mostly deprecation fixes and blueprint changes. There
are some dependency updates too; the changes to Ember
Basic Dropdown necessitated changing it to angle bracket
component invocation. The conversion of the rest of the
templates will happen separately.
2019-10-15 13:32:58 -05:00
Buck Doyle
e6c66354d0 UI: Update to Ember 3.8 LTS (#5968) 2019-10-08 13:44:19 -05:00
Michael Lange
a321145457 Encode characters in file paths to ensure proper URIs 2019-08-14 12:54:11 -07:00
Buck Doyle
ee07bab099 UI: Add allocation directory rendering (#5873)
This lets users navigate the allocation filesystem. It doesn’t
support viewing actual files yet.
2019-07-02 16:42:38 -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
203b54b246 Move addToPath to its own util 2019-05-20 11:52:47 -07:00
Michael Lange
3c1de2df91 Standardize on Abort over Cancel 2019-05-20 11:08:16 -07:00
Michael Lange
c68962078a Replace the adapter cancellation methods with a cancellation token system 2019-05-20 10:29:22 -07:00
Michael Lange
f6232f1817 ES5 getters codemod 2019-04-10 14:54:36 -07:00
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
d824b70cee Merge pull request #4616 from hashicorp/f-ui-promote-canary
UI: Promote canary
2018-08-30 09:48:31 -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
91f8c1550c fixup-adapter 2018-08-21 16:43:30 -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
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
f2128872ce Run job UI and API workflows 2018-08-14 18:26:26 -07:00
Michael Lange
da1e179704 Parse and Plan API and UI workflows 2018-08-14 17:29:51 -07:00
Michael Lange
c55df8ff4b Specify the request type for token self
Without this, the data (query params) get json stringified
2018-08-09 18:22:39 -07:00
Michael Lange
ae0bf90b79 Only deal with the region param (in the app and in api calls) when necessary 2018-08-09 18:22:39 -07:00
Michael Lange
61bdc3bfe7 Sidestep a transpilation bug.
Default params don't make it into arguments which were being splatted
into the call to super.
2018-08-09 18:22:38 -07:00
Michael Lange
200b3c339b Add the region qp to every api request 2018-08-09 18:22:37 -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
877910208f Don't put namespace logic in the catch-all buildQuery method 2018-07-05 12:29:29 -07:00
Michael Lange
566c5843de Remove unused findAllocations method in both job and node
This was replaced with a relationship at some point.
2018-07-05 11:25:38 -07:00
Michael Lange
38034733f7 Remove unused job adapter method 2018-07-05 11:25:38 -07:00
Michael Lange
e8bbd0fb0b Refactor the job xhrKey to use super 2018-05-25 09:15:45 -07:00
Michael Lange
73aa3aa957 XHR keys need to include the method as well
The URL alone doesn't guarantee uniqueness
2018-05-25 09:13:11 -07:00
Michael Lange
67f2fa1734 Add new model action for stopping a job 2018-04-19 14:22:04 -07:00
Michael Lange
1f08445aec Repeat the relationship unlinking pattern in the serializer
It also culls for findAll requests, so it too needs to be
careful about leaving garbage around.
2018-04-06 18:07:57 -07:00
Michael Lange
b10efef4b8 Unlink record relationships before unloaded them from the store
When simply unloading a record, references to the record are
maintained by the internal relationship state of related models.
This causes refetching and duplicate models local to that relationship
state.
2018-04-06 17:50:40 -07:00
Michael Lange
6626cd8729 Never respond with an empty object from the adapter
In production builds only, this will slip into the local store
as a record with no ID, which makes for all sorts of bad news.
2018-04-05 16:50:37 -07:00
Michael Lange
f9f9fbd62e Merge pull request #4081 from hashicorp/b-ui-service-breadcrumbs
UI: Service job breadcrumbs + errant open connections
2018-03-29 15:08:14 -07:00
Michael Lange
c06e1f80bd Track multiple xhrs per URL rather than overriding
It was possible for a url to be overridden then canceled, leaving the
open connection open and forgotten about.
2018-03-29 14:40:57 -07:00
Michael Lange
18718a508e Check for a case-sensitive or lowercase header value 2018-03-28 16:10:09 -07:00
Michael Lange
d722c6ba33 Never duplicate query params, always include query params
A couple more edge cases related to watching URLs with query params
2018-03-22 20:14:36 -07:00
Michael Lange
68e3a566f5 Allow child adapters specify special xhr keys
This is necessary for the namespace query param
2018-03-22 20:14:36 -07:00
Michael Lange
93471649eb Guard against undefined properties in cancel requests 2018-03-20 16:41:19 -07:00
Michael Lange
a6e2f782b7 Treat job-summary like a typical relationship rather than a custom link
This way ED doesn't eagerly fetch the job summary even when it's already
in the store due to the jobs list endpoint
2018-03-20 16:41:18 -07:00
Michael Lange
e7a26ce8d1 Watch the allocation on the allocation and task pages 2018-03-05 09:32:04 -08:00
Michael Lange
093bd4128b Move jobs polling from jobs to jobs.index
It's only necessary for the list view, not the entire route hierarchy
2018-03-05 09:32:04 -08:00
Michael Lange
9658268192 Cancel a watch request before making an identical one 2018-03-05 09:32:04 -08:00
Michael Lange
594b9916ad Go through the expected normalization paths when watching relationships 2018-03-05 09:32:03 -08:00
Michael Lange
a2976dae85 Watch nodes and allocs on the nodes list page 2018-03-05 09:32:03 -08:00
Michael Lange
421f082a9c Address headers and ID bugs 2018-03-02 16:28:39 -08:00
Michael Lange
504ff2d4b7 Tests for watching and canceling requests 2018-03-02 16:21:37 -08:00
Michael Lange
3c2a1f8a4a Fix existing tests 2018-03-02 16:21:36 -08:00