Commit Graph

402 Commits

Author SHA1 Message Date
Alex Dadgar
9a4295aa9c generated files 2018-04-26 16:28:58 -07:00
Michael Lange
8cba531391 Merge pull request #4195 from hashicorp/b-ui-retry-stats-requests
UI: Retry stats requests
2018-04-24 14:13:34 -07:00
Michael Lange
191bf9e463 Test coverage for alloc stats retrying 2018-04-20 18:11:32 -07:00
Michael Lange
07471e9d55 Move resource generation helper to a common place 2018-04-20 18:10:41 -07:00
Michael Lange
71a4411b22 Keep polling for alloc stats when a request fails 2018-04-20 16:50:54 -07:00
Michael Lange
10c9e7ab66 Add button type to the two-step-button buttons 2018-04-20 10:11:21 -07:00
Michael Lange
1d19d825f2 Move job-page helpers and repeat stop tests on the service type 2018-04-19 14:22:05 -07:00
Michael Lange
91c9e092d7 Refactor periodic job tests 2018-04-19 14:22:04 -07:00
Michael Lange
396c4b041c New tests for stop job action 2018-04-19 14:22:04 -07:00
Michael Lange
a3be7ef006 Refactor job-page components to use common title and error parts 2018-04-19 14:22:04 -07:00
Michael Lange
4738144478 New errorMessage format 2018-04-19 14:22:04 -07:00
Michael Lange
67df4dd304 Common error component for job pages 2018-04-19 14:22:04 -07:00
Michael Lange
842ef65487 Move common title parts into a part component 2018-04-19 14:22:04 -07:00
Michael Lange
9899b15bf3 Test coverage for the two-step-button component 2018-04-19 14:22:04 -07:00
Michael Lange
f0cf06a64a New two-step-button
For performing an action that requires confirmation
2018-04-19 14:22:04 -07:00
Michael Lange
67f2fa1734 Add new model action for stopping a job 2018-04-19 14:22:04 -07:00
Michael Lange
61c0b321a0 Track requests in test mode
This is now necessary in mirage 0.4
2018-04-17 10:28:59 -07:00
Michael Lange
c84ae85578 Upgrade ember-cli-mirage 2018-04-17 10:28:58 -07:00
Michael Lange
f5d8324d18 Don't read properties off of null objects
Somehow this controller code runs sometimes when the existing jobs
are dematerializing. This makes this.get('model') and array of null
2018-04-17 10:28:58 -07:00
Michael Lange
69251628f7 Make sure jobs and task groups have no spaces
Faker hacker nouns can sometimes be two words.
2018-04-17 10:28:58 -07:00
Michael Lange
5f9f928735 Defer showing alloc addresses until the node is loaded
The URLs for addresses are meaningless until the node http addr
is available.
2018-04-10 09:31:35 -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
3d92263c85 Remove an extraneous component of the service job page 2018-04-02 18:19:17 -07:00
Alex Dadgar
702a3be41e Generated files 2018-03-30 16:14:40 -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
b6ae7da470 Merge pull request #4067 from hashicorp/ui-upgrade-ember
UI: Upgrade Ember to LTS + fix job summary issues
2018-03-29 12:43:54 -06:00
Michael Lange
8e6f561b8a Add missing js class for System that extends AbstractJobPage 2018-03-28 16:46:35 -07:00
Michael Lange
18718a508e Check for a case-sensitive or lowercase header value 2018-03-28 16:10:09 -07:00
Michael Lange
e1b7feef25 Remove now unnecessary summary fallback
Ember Data 2.18 fixed the underlying bug
2018-03-28 15:20:02 -07:00
Michael Lange
61385204d5 Correctly watch the job summary on the task group page
It changed from being a relationship to a model
2018-03-28 15:12:27 -07:00
Michael Lange
4f33ad5797 Upgrade to Ember 2.18 2018-03-28 14:57:03 -07:00
Michael Lange
5ab5a1cbb1 Make the job<->job-summary relationship reflective
The job summary needed a JobID
2018-03-28 14:56:15 -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
b1049854db Don't allow the alloc status table cell to word-wrap at the swatch 2018-03-28 14:51:54 -07:00
Michael Lange
4361043718 Read the task event message from the DisplayMessage prop 2018-03-28 12:52:02 -07:00
Michael Lange
50ef5ede6e Work around the dreaded broken relationship ED bug
Summary can unlink from a job when loaded in the wrong order. This
guarantees that the summary is bound to the job detail view by
falling back to the summary in the store.
2018-03-22 20:14:37 -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
a30c60cc03 Always use the job plain id and job namespace in job links 2018-03-22 20:14:36 -07:00
Michael Lange
fc85a81a90 Poll for allocation stats 2018-03-22 14:34: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
4be04510c5 Merge pull request #4017 from hashicorp/b-ui-error-message-for-force
Show an error message when forcing a periodic launch is forbidden
2018-03-22 11:17:14 -07:00
Michael Lange
8092625a55 Merge pull request #4026 from hashicorp/b-ui-use-native-fetch-in-prod
UI: Use native fetch in production when available
2018-03-22 11:16:37 -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
44922c9d3a The initial index value should be 1, not 0 2018-03-21 13:28:56 -07:00
Michael Lange
d53af6d037 Show an error message when forcing a periodic launch is forbidden
This will happen when ACLs allow for reading jobs but not submitting.
2018-03-21 12:12:17 -07:00
Michael Lange
80246b4deb Perioidic and Parameterized jobs need to watch /jobs for child updates 2018-03-20 16:41:53 -07:00