Michael Lange
00b805b500
Test region query param for job adapter actions
2020-07-21 09:00:20 -07:00
Michael Lange
5e01266940
Refactor job adapter test to simplify setting up region and namespace state
2020-07-21 09:00:20 -07:00
Buck Doyle
7f0177548d
Add specificity to exec allocation URL generation ( #8463 )
...
Thanks to @notnoop for this UX improvement suggestion.
The allocation’s task group is always known, so it
might as well be preselected in the sidebar when the
exec window opens. Also, if the task group only has
one task, might as well preselect it too.
2020-07-20 16:07:39 -05:00
Buck Doyle
bf7ed82def
Improve global search UX ( #8249 )
...
This updates the look of the search control, adds a hint about the slash
shortcut, adds highlighting of fuzzy search results, and addresses a few
edge case UX failures. It moves to using a fork of Ember Power Select
to handle an edge case where pressing escape would put the control
in an undesirable active-but-not-open state.
2020-06-25 08:51:52 -05:00
Michael Lange
3b7b5f9649
Add canScale ability for jobs
2020-06-18 22:08:28 -07:00
Buck Doyle
1cca7abcab
Add Ember ESLint plugin ( #8134 )
...
This is extracted from #8094 , where I have run into some snags. Since
these ESLint fixes aren’t actually connected to the Ember 3.16 update
but involve changes to many files, we might as well address them
separately. Where possible I fixed the problems but in cases where
a fix seemed too involved, I added per-line or -file exceptions.
2020-06-09 16:03:28 -05:00
Michael Lange
07a604033f
Adjust header case, which changed with the migration to fetch
2020-05-21 10:35:40 -07:00
Michael Lange
de73b9539d
Replace XHRToken with AbortController
2020-05-21 10:35:39 -07:00
Michael Lange
0d9b9f5976
Test coverage for the gauge chart
2020-05-13 08:36:05 -07:00
Buck Doyle
c46d5517bb
Add ACL-checking to turn off exec button ( #7919 )
...
This closes #7453 . It adds an abstraction to handle the common
needs of ability-determination.
2020-05-11 14:43:17 -05:00
Michael Lange
260da00852
Add embedded task group to allocation to reference when allocation is historical
2020-05-01 14:30:02 -07:00
Buck Doyle
d4708860f0
UI: Fix exec popup link for job id ≠ name ( #7815 )
...
This closes #7814 . It makes URL-generation more central and changes
the exec URL to include job id instead of name.
2020-04-29 07:54:04 -05:00
Michael Lange
d91de05fc1
Fix flaky serializer test
2020-04-01 14:54:05 -07:00
Michael Lange
fdd2f8df37
Use new text encoder for stream frames
...
This pattern was introduced with Exec and fixes the multibyte encoding
issue that the native window.atob has.
2020-03-30 12:50:43 -07:00
Michael Lange
2db4f5519a
Guard against a null value for the HostVolumes hash
...
When a node has no host volumes, the API response will
have a null value for the HostVolumes attribute, which
in turn becomes a null value instead of an empty array
in the store. This protects against that, ensuring host
volumes is always an array.
2020-03-26 09:54:59 -07:00
Michael Lange
1bd6a69067
UI: Support for CSI ( #7446 )
...
Closes #7197 #7199
Note: Test coverage is limited to adapter and serializer unit tests. All
acceptance tests have been stubbed and all features have been manually
tested end-to-end.
This represents Phase 1 of #6993 which is the core workflow of CSI in
the UI. It includes a couple new pages for viewing all external volumes
as well as the allocations associated with each. It also updates
existing volume related views on job and allocation pages to handle both
Host Volumes and CSI Volumes.
2020-03-25 07:51:26 -05:00
Buck Doyle
674da96a59
UI: add exec terminal ( #6697 )
...
This connects Xterm.js to a Nomad exec websocket so people
can interact on clients via live sessions. There are buttons on
job, allocation, task group, and task detail pages that open a
popup that lets them edit their shell command and start a
session.
More is to come, as recorded in issues.
2020-03-24 18:22:16 -05:00
Michael Lange
c7c37250c8
Improve the node serializer tests
2020-02-13 17:42:41 -08:00
Michael Lange
849c996887
Data layer for Host Volumes in the UI
2020-02-13 17:11:22 -08:00
Michael Lange
5c4c05824a
Account for disabled ACLs in ability tests
2020-01-31 09:41:36 -08:00
Michael Lange
2dac1d6705
Refactor ability tests to use a setup hook for ability lookup
2020-01-30 21:29:21 -08:00
Michael Lange
1fae4083eb
Add an ability for client permissions
2020-01-30 21:29:19 -08:00
Michael Lange
d7a3c15530
Replace custom parse-duration implementation with an existing lib
2020-01-23 16:34:38 -08:00
Michael Lange
1dd1298626
New test coverage for the drain capabilities
2020-01-23 16:34:34 -08:00
Michael Lange
deb1dc7ffe
Refactor parseDuration to support multi-character units
2020-01-23 16:34:20 -08:00
Michael Lange
c5e662a751
Test coverage for the parse duration util
2020-01-23 16:34:20 -08:00
Michael Lange
c8e29c7060
cancelDrain adapter method
2020-01-23 16:34:10 -08:00
Michael Lange
b162fa8a28
Update drain methods to properly wrap DrainSpec params
2020-01-23 16:34:09 -08:00
Michael Lange
dae33efa1d
drain and forceDrain adapter methods
2020-01-23 16:34:09 -08:00
Michael Lange
aad8536949
Implement eligibility toggling in the data layer
2020-01-23 16:34:07 -08:00
Buck Doyle
66ab14144a
ui: Change Run Job availability based on ACLs ( #5944 )
...
This builds on API changes in #6017 and #6021 to conditionally turn off the
“Run Job” button based on the current token’s capabilities, or the capabilities
of the anonymous policy if no token is present.
If you try to visit the job-run route directly, it redirects to the job list.
2020-01-20 14:57:01 -06:00
Michael Lange
2c6392ff1e
Light test coverage for the stream-logger class
2019-12-05 00:19:36 -08:00
Buck Doyle
9b2fb14e51
UI: Update Ember to 3.12 LTS ( #6419 )
...
This is mostly deprecation fixes and blueprint changes. There
are some dependency updates too; the changes to Ember
Basic Dropdown necessitated changing it to angle bracket
component invocation. The conversion of the rest of the
templates will happen separately.
2019-10-15 13:32:58 -05:00
Buck Doyle
49b9dd5b9b
UI: Add creation time to evaluations table ( #6050 )
2019-08-22 08:11:24 -05:00
Michael Lange
74c9b1ac60
Merge pull request #5871 from hashicorp/f-ui/alloc-fs
...
UI: Allocation file system explorer
2019-08-20 10:18:23 -07:00
Michael Lange
7780713bfa
Remove errant server logging line
2019-07-31 01:40:39 -07:00
Michael Lange
c3b33b8420
Use the stream decode util and never opt to use the plain query param
2019-07-30 17:22:45 -07:00
Michael Lange
862d6f6da6
Move common stream frame decoding to a util
2019-07-30 17:22:44 -07:00
Buck Doyle
34603b8bdf
UI: Add IPv6 bracket-wrapping to network serializer ( #6007 )
...
This addresses the issue raised by @pznamensky in #5966 .
2019-07-30 16:58:01 -05:00
Michael Lange
c485bc64fb
Acceptance testing for allocation lifecycle
2019-05-21 09:24:19 -07:00
Michael Lange
8d31474fdc
Support task restarting in the allocation adapter
2019-05-21 09:24:17 -07:00
Michael Lange
96a1a5e812
Move addToPath to its own util
2019-05-20 11:52:47 -07:00
Michael Lange
084c4cc95f
Standardize on Abort over Cancel
2019-05-20 11:08:16 -07:00
Michael Lange
c9220cb929
Replace the adapter cancellation methods with a cancellation token system
2019-05-20 10:29:22 -07:00
Conor Mongey
49afa42af3
Return a htmlSafe string rather than use triple curlies
2019-05-02 21:47:24 +01:00
Michael Lange
f530c2f5c1
Updated serializer unit tests
2019-04-22 17:20:52 -07:00
Michael Lange
4b87e216ab
Rethink the adapter job unit tests to avoid notifyPropertyChange
2019-04-10 14:54:36 -07:00
Michael Lange
55ea01c1cc
Address test failures
2019-04-10 14:54:35 -07:00
Michael Lange
064f126e14
Remove all andThen and .then usages (except for integration tests)
...
Since a future ember version does way with the need to manually
making runloop runs, I'm holding off on those tests
2019-04-10 14:54:34 -07:00
Michael Lange
fdcc99674d
Fix bug in the stats-tracker-frame-mising behavior
2019-04-10 14:54:33 -07:00
Michael Lange
e6b808f17a
Update serializer unit tests to use module instead of custom code
2019-04-10 14:54:32 -07:00
Michael Lange
3145f7ac32
Update adapter tests to use module instead of custom code
2019-04-10 14:54:32 -07:00
Michael Lange
c1369c001d
Fix a bunch of snowflake situations the codemod missed
2019-04-10 14:54:31 -07:00
Michael Lange
a356ab5477
Ember QUnit Codemod
2019-04-10 14:54:30 -07:00
Michael Lange
5befd8b85d
Modules codemod + prettier
2019-04-10 14:46:55 -07:00
Michael Lange
a9fd8517d1
Fix deprecations
2019-04-10 14:46:53 -07:00
Michael Lange
5bfd1d0ddd
Reattach resources to stats trackers in the event they were destroyed
2019-03-29 16:09:14 -07:00
Michael Lange
d83be97d78
Don't use Ember.get in conjunction with dynamic strings in the job-plan serializer
2018-12-13 07:53:37 -08:00
Michael Lange
5902842d6b
Don't use Ember.get in conjunction with dynamic strings in the allocation serializer
2018-12-13 07:53:37 -08:00
Michael Lange
7b466f9f60
Don't use Ember.get in conjunction with dynamic strings in the node serializer
2018-12-13 07:53:37 -08:00
Michael Lange
13b7434eca
Don't use Ember.get in conjunction with dynamic strings in the deployment serializer
2018-12-13 07:53:37 -08:00
Michael Lange
a00544e302
Don't use Ember.get in conjunction with dynamic strings in the job-summary serializer
2018-12-13 07:53:37 -08:00
Michael Lange
b5c11b4e43
Don't use Ember.get in conjunction with dynamic strings in the evaluation serializer
2018-12-13 07:53:37 -08:00
Michael Lange
795ea7eade
Grow the default 0 to 1 bounds to the domain of the data when necessary
2018-12-05 22:07:44 -08:00
Michael Lange
7c9c099bf0
Add missing module dependencies to the node adapter tests
2018-11-09 14:25:32 -08:00
Michael Lange
80ab0f56cf
Test coverage for frame misses
2018-11-06 16:17:21 -08:00
Michael Lange
b2acd381f9
Test coverage for resetPagination
2018-10-30 14:17:23 -07:00
Michael Lange
866b74be19
Add a longForm option to format-duration
2018-09-27 12:55:17 -07:00
Michael Lange
c694fcb0ba
Update stat tracker unit tests
2018-09-19 19:30:18 -07:00
Michael Lange
46936b6091
Unit tests for the stats trackers service
2018-09-19 15:33:29 -07:00
Michael Lange
4a2b9cc153
Merge pull request #4661 from hashicorp/f-ui-line-chart
...
UI: line chart
2018-09-13 16:59:20 -07:00
Michael Lange
105d4aea79
Unit test coverage for the stats-time-series chart
2018-09-13 16:45:56 -07:00
Michael Lange
659e19303c
Unit test coverage for the line chart component
2018-09-13 16:45:56 -07:00
Michael Lange
f15e3ba0c2
Test coverage for NodeStatsTracker
2018-09-11 16:27:06 -07:00
Michael Lange
3d761b7347
Unit Tests for AllocationStatsTracker
2018-08-31 14:39:22 -07:00
Michael Lange
416de6c32a
Unit tests for RollingArray
2018-08-31 14:39:22 -07:00
Michael Lange
3d89cb503b
Unit test coverage for adding the region param to requests
2018-08-09 20:27:54 -07:00
Michael Lange
8631fecc37
Update tests to handle region switching
2018-08-09 18:22:39 -07:00
Michael Lange
93f41278b1
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
35250117cf
Account for the service:system dependency due to region
2018-08-09 18:22:38 -07:00
Michael Lange
8a9cd74cce
Unit tests for the breadcrumbs service
2018-07-06 11:12:12 -07:00
Michael Lange
82e0fdbd27
A test to assert the bug
2018-07-05 13:49:27 -07:00
Michael Lange
8c1849fafe
Don't put namespace logic in the catch-all buildQuery method
2018-07-05 12:29:29 -07:00
Michael Lange
e472d918cf
Account for the 0 case in format-duration
2018-05-30 14:30:45 -07:00
Michael Lange
cdbca8dcd2
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
52e6c1e551
Merge pull request #4319 from hashicorp/b-ui-errant-acl-error
...
UI: XHR keys need to include the method as well
2018-05-25 12:24:17 -07:00
Michael Lange
5f9632bee8
Acceptance tests for node driver and node events
2018-05-25 10:15:24 -07:00
Michael Lange
9c6b060de9
Add a test to assert that canceling GETs can't instead cancel DELETEs
2018-05-25 09:13:18 -07:00
Michael Lange
603da9b4ea
Test coverage for the changes to the searchable mixin
2018-04-23 16:49:04 -07:00
Michael Lange
a226021a05
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
fc5c4ff093
The initial index value should be 1, not 0
2018-03-21 13:28:56 -07:00
Michael Lange
86f73320a2
Patch tests
2018-03-05 09:32:05 -08:00
Michael Lange
2d0a3a15ad
Add tests for findHasMany store culling
2018-03-02 16:21:37 -08:00
Michael Lange
762a82702a
Add tests for findAll store culling
2018-03-02 16:21:37 -08:00
Michael Lange
80c8db559b
Tests for watching and canceling requests
2018-03-02 16:21:37 -08:00
Michael Lange
553c69cc32
Fix existing tests
2018-03-02 16:21:36 -08:00
Michael Lange
1107798da6
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
072efb665e
Unit tests for the log util
2017-11-21 11:22:43 -08:00
Michael Lange
af870eeb32
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
afcfba0910
Treat namespace and job name as a composite primary key
2017-10-23 17:42:36 -07:00