Commit Graph

45 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
9e584e6486 Specialized No Leader error page 2018-08-20 14:11:50 -07:00
Michael Lange
f29f4351f1 Error messages for job submit 2018-08-15 15:18:38 -07:00
Michael Lange
f50aff562c Treat filtering on an async relationship as async 2018-08-06 11:02:21 -07:00
Michael Lange
b8b3d03e41 Merge pull request #4458 from hashicorp/f-ui-refactor-breadcrumbs
UI: Refactor breadcrumbs
2018-07-10 11:01:28 -07:00
Michael Lange
866043ac0f Merge pull request #4468 from hashicorp/f-ui-styleguide-progress
UI: Fill out the styleguide
2018-07-06 16:03:41 -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
8064cf5d28 Use the new breadcrumbs pattern for allocations 2018-07-06 11:12:11 -07:00
Michael Lange
95dc5da201 Add an env var to toggle blockingQueries support
Mostly helpful when working with mirage
2018-07-05 11:18:09 -07:00
Michael Lange
2c10e8ad2e Styleguide entries for accordion 2018-07-03 14:30:40 -07:00
Michael Lange
400ca29ac9 Merge pull request #4353 from hashicorp/f-ui-node-drain
UI: Node drain and eligibility
2018-05-30 14:40:21 -07:00
Michael Lange
83e0b10451 Account for the 0 case in format-duration 2018-05-30 14:30:45 -07:00
Michael Lange
4d00f2f46d Duration formatting utility
The cloest Moment.js has is "homanize" which isn't precise enough.
2018-05-30 11:27:21 -07:00
Michael Lange
65adc3857f The stream logger should not be supported in Safari
Not until the bugs around https are worked out.
2018-05-24 18:16:43 -07:00
Michael Lange
ab49b7a235 The poll logger needs to handle empty frames. 2018-05-24 18:16:42 -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
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
3d052932fd mirageEnabled alone doesn't capture whether or not mirage is enabled
Add an isProduction condition to ensure native fetch is used when
possible.
2018-03-21 22:09:10 -07:00
Michael Lange
54b1101989 QueryParams primitive ported with a helper
This QueryParams object is defined in Ember source, but it isn't
public, which means there is no out of the box way to construct
the query params arg for LinkTo in JavaScript
2018-03-13 16:34:01 -07:00
Michael Lange
220790f3fa Merge pull request #3936 from hashicorp/f-ui-polling
UI: Live updating views
2018-03-08 13:27:02 -08:00
Michael Lange
421f082a9c Address headers and ID bugs 2018-03-02 16:28:39 -08:00
Michael Lange
3c2a1f8a4a Fix existing tests 2018-03-02 16:21:36 -08:00
Michael Lange
b69fe312b8 Watch properties cancel long poll requests 2018-03-02 16:21:36 -08:00
Michael Lange
4dd6972a33 Make the throttle time configurable 2018-03-02 16:21:35 -08:00
Michael Lange
6bf66f9ec8 Add a watchAll computed property macro 2018-03-02 16:21:34 -08:00
Michael Lange
5bf5448c1f Move watch tasks into a utils file 2018-03-02 16:21:34 -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
5346f653a5 Fallback to using the nomad server for log streaming
Only when the client isn't accessible
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
cb3e4a3905 Never use native fetch when mirage is enabled
Unfortunately, Mirage/Pretender don't support fetch
2018-01-17 09:02:04 -08:00
Michael Lange
d53849d2a5 Disambiguate what to do with the child task for the task logger
linked tasks are killed when the parent task is killed.
2018-01-17 09:02:04 -08:00
Michael Lange
981c34ba84 Explain the magical logging constant 2017-11-21 15:05:28 -08:00
Michael Lange
cca4bc94e0 Move the stream support check to the stream logger 2017-11-21 14:57:19 -08:00
Michael Lange
bc3f02b227 Use the b64 log format to track offsets for pause/play support 2017-11-21 11:22:42 -08:00
Michael Lange
6447785861 Use offset numbers in the polling mechanism 2017-11-21 11:22:42 -08:00
Michael Lange
0dce1ec659 Integration tests for the task-log component 2017-11-21 11:22:42 -08:00
Michael Lange
f283287d40 Prevent using fetch or ReadableStream in tests
Until they can be mocked, they can't be used
2017-11-21 11:22:42 -08:00
Michael Lange
20ac6c07df Move logging logic from the controller to a component 2017-11-21 11:22:42 -08:00
Michael Lange
5735fca9cf Log class for interfacing with log APIs
Supports:
  - Reading the head of a log
  - Reading the tail of a log
  - Following a log in one of two ways:
    - Streaming the HTTP request (using fetch res.getReader)
    - Polling the log endpoint (using EC timeouts)
2017-11-21 11:22:41 -08:00
Michael Lange
0d299b60df Provides a slim TextDecoder polyfill for Edge 2017-11-21 11:22:41 -08:00
Michael Lange
89ef279ffb Prefer native fetch 2017-11-21 11:22:41 -08:00
Michael Lange
772ddf2fc0 Common code for handling 403s in routes 2017-10-24 16:40:27 -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
1e817cb35b Handle 404s on jobs 2017-10-05 14:39:37 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00