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
12bdfbdf47
Switch token storage to localStorage from sessionStorage
2018-08-28 10:05:15 -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
362aff0fab
Simplify the control flow around changing namespaces and regions
...
The UI will no longer try to redirect to the appropriate namespace or
region if one is found in localStorage. Instead, it will assume that
the lack of query param means the default namespaces or region is
desired.
2018-08-09 18:22:39 -07:00
Michael Lange
822d99833b
Handle errors when getting regions or the default regions
...
This protects against volatility in the server and, more commonly, ACLs
returning forbidden responses.
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
d690709462
Get the server's region (aka default region) from the API
...
The default region shouldn't be used as a qp since no qp means the same
thing.
2018-08-09 18:22:38 -07:00
Michael Lange
c5439df03a
Add the region qp to all requests made through the token service
2018-08-09 18:22:38 -07:00
Michael Lange
4715696959
Clear up the data flow for namespaces
...
This is incredibly tricky with query params, since there is a bundle of
timing issues, lifecycle issues, missing features, and all around
gotchas with query params.
This solution has no observers and no instances of the system service
being set from the jobs controller.
The upside to this is no observers, much easier to follow logic, no more
dependent key chain reactions.
2018-08-09 18:22:38 -07:00
Michael Lange
840069de2b
Harden up the system service for the event of store unloading
2018-08-09 18:22:37 -07:00
Michael Lange
dc1a031460
Add three-way region property (query param, service, localStorage)
2018-08-09 18:22:37 -07:00
Michael Lange
954d1283e1
Update tests to match new test selectors
2018-07-06 11:12:12 -07:00
Michael Lange
da61ab2282
Recompute breadcrumbs when a model changes but the current route does not
...
Example: parent job to child job navigation
2018-07-06 11:12:11 -07:00
Michael Lange
dd6f12696f
New breadcrumb service and component for describing breadcrumbs in routes
...
Works by segmenting the currentRouteName from the router service
and walking over each route in the current hierarchy to collect crumbs.
2018-07-06 11:12:10 -07:00
Michael Lange
e658a3a9a0
Clear out the localStorage namespace when it's no longer valid
...
In the event that a namespace in localStorage is not found in the
response for /namespaces, clear the localStorage value and assume
the default namespace.
2018-03-28 14:55:07 -07:00
Michael Lange
44922c9d3a
The initial index value should be 1, not 0
2018-03-21 13:28:56 -07:00
Michael Lange
504ff2d4b7
Tests for watching and canceling requests
2018-03-02 16:21:37 -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
c8fcb4c710
Reorganize the styleguide using components for sections
2018-01-17 09:04:01 -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 Schurter
4c859dc0aa
Include credentials in fetch requests
...
Fixes #3701
Relevant spec section:
https://fetch.spec.whatwg.org/#concept-request-credentials-mode
2018-01-08 12:18:03 -08:00
Michael Lange
89ef279ffb
Prefer native fetch
2017-11-21 11:22:41 -08:00
Michael Lange
5374854a63
Redo the logic around showing namespaces
...
Don't show namespaces if the only namespace is `default`
2017-10-23 17:42:36 -07:00
Michael Lange
8bece2f89a
Don't scroll to top on transition in tests
...
It's mega annoying
2017-10-23 17:42:36 -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
5f23b8411a
Replace simple dropdown namespace switcher with ember-power-select
2017-10-11 13:45:03 -07:00
Michael Lange
7006794284
Add namespaces and active namespace to the system service
2017-10-11 13:45:03 -07:00
Michael Lange
4dd8ec89b8
Make sure to qualify requests made outside of adapters
2017-10-11 13:45:03 -07:00
Alex Dadgar
ddc2efa4ac
sync
2017-09-19 10:08:23 -05:00