open-consul/ui/packages/consul-ui/app/helpers
John Cowen 5da06645b0
ui: Gracefully recover from non-existent DC errors (#11077)
* ui: Gracefully recover from non-existent DC errors

This PR fixes what happens in the UI if you try to navigate to a non-existing DC.

When we received a 500 error from an API response due to a non-existent DC, previously we would show a 404 error, which is what we were trying to convey. But in the spirit of the UI being a 'thin client', its probably best to just show the 500 error from the API response, which may help folks to debug any issues better.

* Automatically set the CONSUL_DATACENTER_LOCAL env var for testing
2021-09-22 18:26:36 +01:00
..
policy ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
service ui: Add Vault as a Service External Source (#10769) 2021-08-04 18:22:43 -04:00
token ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
atob.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
cached-model.js ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
collection.js ui: Add External Sources Filter to Node > Service Instances (#9368) 2020-12-14 14:25:33 +00:00
document-attrs.js ui: document-attrs helper (#9336) 2020-12-09 09:22:01 +00:00
dom-position.js ui: Improved Discovery Chain resizing (#9360) 2020-12-11 09:38:33 +00:00
duration-from.js ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
duration-from.mdx ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
env.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
flatten-property.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
format-short-time.js ui: Install ember-intl (#9399) 2020-12-15 18:29:32 +00:00
href-to.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
is-href.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
is-href.mdx ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
last.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
left-trim.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
refresh-route.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
render-template.js ui: Change URI helper to a template based approach (#9344) 2020-12-09 09:22:46 +00:00
right-trim.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
route-match.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
slugify.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
split.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
state-matches.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
substr.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
svg-curve.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
to-route.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
tween-to.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
uniq-by.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
unique-id.js ui: Adds unique-id helper (#9676) 2021-02-02 10:03:46 +00:00
uri.js ui: Change URI helper to a template based approach (#9344) 2020-12-09 09:22:46 +00:00