Michael Lange
f92d3641aa
Merge pull request #4201 from hashicorp/f-ui-fuzzy-job-search
...
UI: fuzzy and tokenized job search
2018-05-05 09:56:15 -07:00
Michael Lange
4f260e29df
Clean up computed property by inverting early return
2018-05-04 20:38:55 -07:00
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
e5ba6eb94e
Test coverage for the changes to the searchable mixin
2018-04-23 16:49:04 -07:00
Michael Lange
b314741ed2
Trim whitespace on the search term
...
Trailing whitespace messes with tokenization
2018-04-23 16:49:04 -07:00
Michael Lange
d16b3327f7
Add tokenization to fuse search options
2018-04-23 14:58:01 -07:00
Michael Lange
3fc73d15a9
Show how many jobs exist but are being hidden by the serach term
2018-04-23 14:58:01 -07:00
Michael Lange
15a7f2c012
Apply new search features to the job index page
2018-04-23 14:58:01 -07:00
Michael Lange
a7f6af958e
Add optional fuzzy search support to the searchable mixin
...
This time around fuzzy, exact, and regex can all be toggled.
Additionally, each search type gets its own set of keys to search
for. This means fuzzy search can only look at name while regex and
exact match will still look at ID.
2018-04-23 14:58:01 -07:00
Michael Lange
486c85ce9d
Bring fuse.js back
2018-04-23 14:58:01 -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