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
Michael Lange
ed809fe27e
Track xhrs in the watchable adapter and expose cancellation methods
2018-03-02 16:21:36 -08:00
Michael Lange
8a119d99ce
Remove stale records from the store for findHasMany requests
2018-03-02 16:21:35 -08:00
Michael Lange
bc2945756e
Blocking query support for findAll requests
2018-03-02 16:21:35 -08:00
Michael Lange
9b2080d41e
Prototype watching resources
...
- Service to manage X-Nomad-Index values
- Adapter method for reloading relationships with additional params
- Pattern for watching models and model relationships using EC
2018-03-02 16:21:34 -08:00
Michael Lange
18782dd07b
Refactor job summary to a relationship
...
Now that blocking queries are going to be in play, We can no longer
pretend the two requests are one, since they have independent nomad
indices.
2018-03-02 16:21:13 -08:00
Michael Lange
52380527b2
Add ability to force a periodic job launch
2018-02-06 10:53:51 -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
84832a6548
Stop gracefully handling findAll 403s in the adapter
2017-10-24 16:40:27 -07:00
Michael Lange
91ed1d5f6d
Treat namespace and job name as a composite primary key
2017-10-23 17:42:36 -07:00
Michael Lange
e28ae3f4bb
Allow 501s on namespaces because they are necessary for job IDs
2017-10-23 17:42:35 -07:00
Michael Lange
bfd683123c
All job requests need to be made with the namespace query param
2017-10-23 17:42:35 -07:00
Michael Lange
631fe68339
Never return null for adapter headers
...
Ember Data checks strictly against undefined:
https://github.com/emberjs/data/blob/master/addon/adapters/rest.js#L1128
2017-10-19 10:10:01 -07:00
Michael Lange
a845455141
Use /acl/token/self instead of /acl/token/:accessor_id
2017-10-16 13:27:52 -07:00
Michael Lange
3587d4feb2
Data modeling for tokens and policies
2017-10-16 13:27:51 -07:00
Michael Lange
1cfa5f5ecc
Handle 403s gracefully
...
- When a list 403s, treat it as if it were empty
- When a single resource 403s, redirect to an application error page
that has a backdoor link to the tokens page
2017-10-12 17:40:49 -07:00
Michael Lange
45b8cb067e
Gracefully handle the 501 case
...
Enterprise endpoints return a 501 in the open source build. 5xx
errors throw by default, so handle this one since it's expected
for things such as namespaces.
2017-10-11 14:06:46 -07:00
Michael Lange
5f23b8411a
Replace simple dropdown namespace switcher with ember-power-select
2017-10-11 13:45:03 -07:00
Michael Lange
48cb99c6eb
Make namespace a relationship of job
2017-10-11 13:45:03 -07:00
Michael Lange
a36a8e6ba3
Consider the namespace query param as required for findAll
2017-10-11 13:45:03 -07:00
Michael Lange
5b0095627d
Always reload all jobs
...
Ember tries to be clever by showing cached jobs instead of a loading spinner
in the event that a user starts on nodes, loads a couple jobs through
allocation relationships, then visits jobs.
2017-10-03 17:17:45 -07:00
Alex Dadgar
ddc2efa4ac
sync
2017-09-19 10:08:23 -05:00