Commit Graph

125 Commits

Author SHA1 Message Date
Michael Lange
0193e05834 Rename allocation-log to task-log 2017-11-21 11:22:42 -08:00
Michael Lange
249d2a3a01 Acceptance tests for task logs 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
80e925467f Microscopic refactor for style reasons 2017-11-21 11:22:42 -08:00
Michael Lange
b3abd78316 Let the log component fill all available height 2017-11-21 11:22:42 -08:00
Michael Lange
efc3b53f74 Updated styles for the cli-window component 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
72d84f6922 First pass at the logs page
Just verifying the log code works
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
50d92afcfa Add link to the task logs page 2017-11-21 11:22:41 -08:00
Michael Lange
89ef279ffb Prefer native fetch 2017-11-21 11:22:41 -08:00
Michael Lange
3115b34cce Guard against null values 2017-11-21 11:22:41 -08:00
Michael Lange
b3dc7364c5 Remold the allocation detail and task detail pages
Now that there is a task detail page, some of the content from
the allocation detail page is better suited there.
2017-11-14 11:08:51 -08:00
Michael Lange
d820c72142 Update allocation detail page to look like job and node 2017-11-14 11:05:29 -08:00
Michael Lange
0d2efb0f1a Create a new task route hierarchy
Drilling into a task from an allocation transitions to the task
heirarchy.
2017-11-14 11:04:40 -08:00
Michael Lange
e9c71dd0df Rename nodes routes to client routes 2017-10-27 18:39:04 -07:00
Michael Lange
88d30d55b6 Change app copy to say 'clients' instead of 'nodes' 2017-10-27 18:14:46 -07:00
Michael Lange
1f4b61f074 Merge pull request #3428 from hashicorp/b-ui-missed-the-deployment-allocs
Add modified and version headers to deployment allocation table
2017-10-25 10:31:20 -07:00
Michael Lange
7cac071fd5 Update the existing empty state messages to no longer mention tokens
There is no longer a way that these messages could show and tokens be the problem
2017-10-24 16:41:11 -07:00
Michael Lange
1851fb9f94 Apply route-specific 403 handling to jobs, nodes, and servers 2017-10-24 16:41:11 -07:00
Michael Lange
772ddf2fc0 Common code for handling 403s in routes 2017-10-24 16:40:27 -07:00
Michael Lange
84832a6548 Stop gracefully handling findAll 403s in the adapter 2017-10-24 16:40:27 -07:00
Michael Lange
b010638724 Merge pull request #3439 from hashicorp/b-ui-hide-deployments-tab-based-on-type
Don't show the deployments tab for non-service jobs
2017-10-24 16:39:47 -07:00
Michael Lange
8e40ec093b Merge pull request #3437 from hashicorp/f-ui-sort-server-tags
Sort server tags
2017-10-24 16:39:23 -07:00
Michael Lange
6e3eb5ff3f Don't show the deployments tab for non-service jobs
They can't have deployments, so the link makes no sense.
2017-10-24 12:35:29 -07:00
Michael Lange
aa5f8e4abf Sort server tags 2017-10-24 12:04:08 -07:00
Michael Lange
a08916865f On namespace change on a job detail page, redirect to /jobs
And reload jobs for the new namespace.
2017-10-23 17:42:36 -07:00
Michael Lange
c20b9c5a82 Make sure to treat the namespace Name as the ID 2017-10-23 17:42:36 -07:00
Michael Lange
c6591dc7a8 Address a couple asynchronicity issues 2017-10-23 17:42:36 -07:00
Michael Lange
b147852ded Update all job links 2017-10-23 17:42:36 -07: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
91ed1d5f6d Treat namespace and job name as a composite primary key 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
e28ae3f4bb Allow 501s on namespaces because they are necessary for job IDs 2017-10-23 17:42:35 -07:00
Michael Lange
855ebf98ce Switch from href-to to link-to for QP persistence
See this issue: https://github.com/intercom/ember-href-to/issues/62
2017-10-23 17:42:35 -07:00
Michael Lange
c2aba57843 Move the namespace query param up the route hierarchy
This makes it active on all job routes
2017-10-23 17:42:35 -07:00
Michael Lange
6b5c80a478 Make sure to include the namespace qp on all job related resources 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
b65b1c99a6 Add the new alloc row headers to the deployment allocations table 2017-10-19 17:35:58 -07:00
Michael Lange
173a0caa3a Handle the undefined TotalTicks case 2017-10-19 17:35:58 -07:00
Michael Lange
2bc1957f62 Handle the not a number case 2017-10-19 17:35:58 -07:00
Michael Lange
9e643c4bd3 Merge pull request #3423 from hashicorp/b-ui-never-return-null-from-headers
Never return null for adapter headers
2017-10-19 12:23:10 -07:00
Michael Lange
6d39295871 Merge pull request #3424 from hashicorp/b-ui-job-version-for-node-allocs
Expect JobVersion in one of two places
2017-10-19 12:21:10 -07:00
Michael Lange
f8de9ee0b5 Expect JobVersion in one of two places 2017-10-19 10:52:05 -07:00
Michael Lange
20b8e39842 Don't rely on CpuStats.Percent
Just do the math client-side with TotalTicks and Reserved
2017-10-19 10:44:52 -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
adddd8f30c Merge pull request #3416 from hashicorp/b-ui-provide-acl-token-on-client-requests
Provide ACL token on client requests
2017-10-18 20:08:28 -07:00
Michael Lange
bfda4ded4d Merge pull request #3412 from hashicorp/b-ui-disable-fuzzy-search
Disable fuzzy search
2017-10-18 20:08:15 -07:00
Michael Lange
30806f9bc5 Add the acl token as a header to client requests 2017-10-18 19:48:17 -07:00