Michael Lange
b5c7c5f3ce
Merge pull request #3777 from johncowen/f-ui-api-task-events-messages
...
UI: Make task-events use the `message` from the API rather than hardcoded
2018-02-05 18:36:41 -08:00
John Cowen
98bd72a44e
Remove `vaultError`, `failedSibling` and `messagePassthru`
...
1. `vaultError` and `failedSibling` are safe to remove see
https://github.com/hashicorp/nomad/blob/64e9cf9/nomad/structs/structs.go#L3979-L3986
2018-01-26 13:37:20 +00:00
John Cowen
c7c465fb78
Make task-events use the `message` from the API rather than hardcoded
...
The api has changed to send through a message for task-events. Use that
instead of rendering a message from within js dependent on the task
event type
2018-01-19 15:38:57 +00:00
John Cowen
abaae90be7
Address PR feedback
...
1. Extra whitespace
2. Remove redundant code
3. Remove redundant markup from test
4. placement-failure should be used as an inline component
5. Prefer `assign` polyfill
6. Use new `@ember' org style imports
2018-01-19 13:59:19 +00:00
John Cowen
56890fbc6b
Add more assertions for basic message checking
2018-01-19 13:59:19 +00:00
John Cowen
9b0715ac44
Add in data-test attrs to hook into, decide on test case granularity
2018-01-19 13:59:19 +00:00
John Cowen
c88d75555e
Pluralize test name for consistency (for filtering), inc test
2018-01-19 13:59:19 +00:00
John Cowen
1f9a2064c6
Move cleanWhitespace to utils, readd data-test attribute for PF's
...
1. cleanWhitespace > /test/utils/clean-whitespace.js
2. Missd the data-test attribute for placement failures in previous
conflict
2018-01-19 13:59:19 +00:00
John Cowen
7865038c6e
Move placement failures to a component, begin separate integration tests
...
1. Simple move of placement-failures template code to a component
2. Start adding integration tests - hit `inc` surprise
2018-01-19 13:59:19 +00:00
Michael Schurter
9fcda9c5aa
Make example service name make sense
...
Switch from global-redis-check for the example job's service name to
redis-cache. The former name is really confusing and someone finally
called us out on it:
https://groups.google.com/d/msg/nomad-tool/3RTh6CyYkWk/vEe_Sj7lAAAJ
Also specifically mention that the `service.name` parameter is what is
advertised in Consul.
2018-01-17 14:08:30 -08:00
Michael Lange
59fd26d5e3
Use Node 8
2018-01-17 09:04:01 -08:00
Michael Lange
20eebaeda1
Add breadcrumbs to the styleguide
2018-01-17 09:04:01 -08:00
Michael Lange
79ebf291e8
Reorganize the styleguide using components for sections
2018-01-17 09:04:01 -08:00
Michael Lange
c9ae29682c
Add boxed-section component to the styleguide
2018-01-17 09:04:00 -08:00
Michael Lange
d2a26a6745
Add basic elements to the styleguide
2018-01-17 09:04:00 -08:00
Michael Lange
a0b2433f42
Add jumbo distribution bar to the styleguide
2018-01-17 09:04:00 -08:00
Michael Lange
5e02fc49b3
Move distribution bar styleguide material to a component
2018-01-17 09:04:00 -08:00
Michael Lange
124d8de8d8
Move button styleguide material to a component
2018-01-17 09:04:00 -08:00
Michael Lange
6a258b20d6
Fix syntax highlighting in the styleguide
2018-01-17 09:04:00 -08:00
Michael Lange
1cb8aeeba8
Fix a class name bug in the distribution bar
2018-01-17 09:04:00 -08:00
Michael Lange
c9837ec9f6
A new place to put styles only the styleguide uses
2018-01-17 09:04:00 -08:00
Michael Lange
512ff08c8a
Update the ember-freestyle dep
2018-01-17 09:04:00 -08:00
Michael Lange
c408b4ecc4
Run prettier on all files
...
Since prettier updated, some files have out of date formatting.
2018-01-17 09:04:00 -08:00
Michael Lange
420cfa4444
Upgrade lint-staged
2018-01-17 09:04:00 -08:00
Michael Lange
47a2c2ffbf
Upgrade stale deps
2018-01-17 09:04:00 -08:00
Michael Lange
deb2dffefa
Remove unused ui travis config
2018-01-17 09:04:00 -08:00
Michael Lange
20e63ad970
Add chrome to Travis
2018-01-17 09:04:00 -08:00
Michael Lange
45f9214c2c
Use ember-test-selectors for integration tests
2018-01-17 09:03:59 -08:00
Michael Lange
af0fc0f9ef
Upgrade testing related dependencies
2018-01-17 09:03:59 -08:00
Michael Lange
94a95406da
Switch from phantomjs to headless chrome
2018-01-17 09:03:59 -08:00
Michael Lange
76cd94a54e
Use data-test- selectors in acceptance tests
2018-01-17 09:03:59 -08:00
Michael Lange
797a3fd483
Adds the ember-test-selectors addon
2018-01-17 09:03:59 -08:00
Michael Lange
8c742b254b
Upgrade ember-cli-sass
2018-01-17 09:03:59 -08:00
Michael Lange
875936ba0d
Strengthen the .tag override selector
...
In 0.5.2, Bulma excludes the body element from the selector to work around
an issue with Wordpress.
2018-01-17 09:03:59 -08:00
Michael Lange
02028e29c2
Remap $info to $blue
...
Bulma defaults $info to $cyan in 0.6.0
2018-01-17 09:03:59 -08:00
Michael Lange
0a4fb3a16b
Specify color overrides in navbar
...
Bulma 0.5.2 introduced color modifiers for navbar
2018-01-17 09:03:59 -08:00
Michael Lange
2c0875d7e3
Upgrade bulma to latest (0.6.1)
2018-01-17 09:03:59 -08:00
Michael Lange
ed756ce602
Replace nav with navbar
...
Bulma introduced navbar while deprecating nav in 0.4.3
Bulma removed deprecated nav in 0.6.0
2018-01-17 09:03:59 -08:00
Michael Lange
e4ddfafe9d
Replace custom breadcrumbs CSS with new Bulma provided CSS
2018-01-17 09:03:59 -08:00
Michael Lange
99ead2e390
Update variable names
2018-01-17 09:03:58 -08:00
Michael Lange
5f767fe29e
Default to 100% wide tables
...
Bulma 0.5.0 makes tables auto by default and adds the
full-width modifier.
2018-01-17 09:03:58 -08:00
Michael Lange
93c3b82e6d
Upgrade Bulma to 5.0
2018-01-17 09:03:58 -08:00
Michael Lange
450a2a8d75
Shuffle around styles to better organize around net new code and bulma overrides
2018-01-17 09:03:58 -08:00
Michael Lange
d918c81c76
Remove the MODEL_FACTORY_INJECTIONS cruft
2018-01-17 09:02:05 -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
72154a8d08
Run ember out of node_modules
...
This locks the version to what's described in package.json
2018-01-17 09:02:04 -08:00
Michael Lange
3136c5db18
Update the reason why the router service is still not used
2018-01-17 09:02:04 -08:00
Michael Lange
df41a77625
Upgrade various minor dependencies
2018-01-17 09:02:04 -08:00
Michael Lange
26866b611c
Upgrade ember-browserify to 1.2
2018-01-17 09:02:04 -08:00
Michael Lange
eb91e88038
Upgrade Ember CLI Mirage to 0.4.1
2018-01-17 09:02:04 -08:00
Michael Lange
87670753e5
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
f731809b9b
Upgrade to Ember Data 2.17
2018-01-17 09:02:04 -08:00
Michael Lange
70f66fe0e3
Upgrade to ember-cli 2.17 and ember 2.17
2018-01-17 09:02:04 -08:00
Michael Lange
9d505d1db0
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
b0aab1f23e
Don't warn intentional errors in tests
...
It's too noisy
2018-01-17 09:02:04 -08:00
Michael Lange
c15b54a299
Don't dot twice after an @each
2018-01-17 09:02:03 -08:00
Michael Lange
9cf71202ce
Never fetch a job with null as the namespace
2018-01-17 09:02:03 -08:00
Michael Schurter
7a77fc69ce
Include credentials in fetch requests
...
Fixes #3701
Relevant spec section:
https://fetch.spec.whatwg.org/#concept-request-credentials-mode
2018-01-08 12:18:03 -08:00
Michael Lange
7a7c8204a7
Lock down nodejs version
...
The new Travis Trusty image uses node 8 (latest LTS) as the default.
Node 8 is incompatible with some modules used for the UI.
2017-12-15 10:50:06 -08:00
Michael Lange
c1efbabce6
Merge pull request #3631 from hashicorp/b-ui-expand-definition
...
UI Show full job definition by default
2017-12-07 14:42:01 -08:00
Michael Lange
bfaf81df31
Merge pull request #3607 from hashicorp/f-ui-modify-time-over-modify-index
...
UI Use ModifyTime instead of ModifyIndex in allocation lists
2017-12-07 14:25:28 -08:00
Michael Lange
aeddd4d717
Expand the entire job definition by default
2017-12-07 14:06:51 -08:00
Michael Lange
a2b9c2ee60
Merge pull request #3621 from hashicorp/b-ui-timezones
...
UI: Drop timezones from timestamps
2017-12-06 14:16:08 -08:00
Michael Lange
305b058a85
Merge pull request #3623 from hashicorp/f-ui-warn-uncaught-exceptions
...
UI: Warn uncaught exceptions to console
2017-12-06 14:11:22 -08:00
Michael Lange
a833248a9d
Make sure the code element within a cli-window takes the full height
2017-12-06 13:36:18 -08:00
Michael Lange
03680ec180
A short guide for proxying to a different nomad cluster
...
when developing the UI
2017-12-06 12:38:38 -08:00
Michael Lange
3b6a084a1d
Warn errors in prod
2017-12-06 10:33:03 -08:00
Michael Lange
54cb23c577
Use ModifyTime instead of ModifyIndex
2017-12-06 10:17:12 -08:00
Michael Lange
4a88d3338c
Remove UTC timezone tag
2017-12-05 19:12:18 -08:00
Michael Lange
956e967ffd
Acceptance tests for evaluations
2017-11-29 20:12:45 -08:00
Michael Lange
f3acc8bd6d
Fixes an off by one bug in the ipv6 generator function
...
Sigh.
2017-11-29 20:12:13 -08:00
Michael Lange
d663f7ea70
Mirage magic for evaluations
2017-11-29 20:12:13 -08:00
Michael Lange
bd7a474c28
Be clear about what the placment failures number next to task groups is
2017-11-29 20:12:12 -08:00
Michael Lange
4451265b79
List placement failures on the job detail page
2017-11-29 20:12:12 -08:00
Michael Lange
d1277ac933
Add a table of evaluations to the job detail page
2017-11-29 20:12:12 -08:00
Michael Lange
4e3b58a24a
Associate jobs, task groups, and evaluations
2017-11-29 20:12:12 -08:00
Michael Lange
8240f99769
Models evaluation data
2017-11-29 20:12:12 -08:00
Michael Lange
f747cc79e4
Revert "UI Placement failures""
...
This reverts commits
141ecd8d9170f56c8302b5c776532e6d287a40e3
d2d838c2de08aac716a9431d9720b5c12bb19ba1
8099db433641429816e8479c6d23116269f744c0
86262b3ceff607627a9c9e0e25eb81b9b5ee739c
eb4104ec528982e0ee6ae9a05fb0460e53139f3f
0e0e23e238017815bdb6dcfbc056275b3deaacca
6d45658d77fb4c40760a63cced71b74757356e48
b52a8176e85b9c6f13ec012f7fce2ec3df1c8751
2017-11-29 20:03:39 -08:00
Michael Lange
961926880a
Acceptance tests for evaluations
2017-11-29 19:46:28 -08:00
Michael Lange
84c9fb20f3
Fixes an off by one bug in the ipv6 generator function
...
Sigh.
2017-11-29 19:46:27 -08:00
Michael Lange
2ed76e50e3
Mirage magic for evaluations
2017-11-29 16:30:33 -08:00
Michael Lange
3b184b974b
Be clear about what the placment failures number next to task groups is
2017-11-29 16:30:33 -08:00
Michael Lange
3a1652ba83
List placement failures on the job detail page
2017-11-29 16:30:33 -08:00
Michael Lange
1d5b67b9bf
Add a table of evaluations to the job detail page
2017-11-29 16:30:33 -08:00
Michael Lange
d434a62563
Associate jobs, task groups, and evaluations
2017-11-29 16:30:33 -08:00
Michael Lange
6be9d7e919
Models evaluation data
2017-11-29 16:30:33 -08:00
Michael Lange
e051b1f34b
Explain the magical logging constant
2017-11-21 15:05:28 -08:00
Michael Lange
73969cd6ab
Move the stream support check to the stream logger
2017-11-21 14:57:19 -08:00
Michael Lange
072efb665e
Unit tests for the log util
2017-11-21 11:22:43 -08:00
Michael Lange
3e8e3880aa
Use the b64 log format to track offsets for pause/play support
2017-11-21 11:22:42 -08:00
Michael Lange
b3d53a3569
Use offset numbers in the polling mechanism
2017-11-21 11:22:42 -08:00
Michael Lange
bf082d4fcd
Fixes intermittent test failures
2017-11-21 11:22:42 -08:00
Michael Lange
061de462c6
Integration tests for the task-log component
2017-11-21 11:22:42 -08:00
Michael Lange
ac1855f37c
Rename allocation-log to task-log
2017-11-21 11:22:42 -08:00
Michael Lange
1e1a697841
Acceptance tests for task logs
2017-11-21 11:22:42 -08:00
Michael Lange
95ee30cc31
Crude log mocking
...
This will need to get better for testing the offset stitching
logic in the polling case.
2017-11-21 11:22:42 -08:00
Michael Lange
ba7245247a
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
82bf67b630
Microscopic refactor for style reasons
2017-11-21 11:22:42 -08:00
Michael Lange
b567b97659
New eslint rule for ember-concurrency infinite loop pattern
2017-11-21 11:22:42 -08:00
Michael Lange
53de626709
Let the log component fill all available height
2017-11-21 11:22:42 -08:00