open-consul/ui/packages/consul-ui/mock-api/v1
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
..
acl ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
agent ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
catalog ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
connect ca: remove unused RotationPeriod field 2021-07-05 19:15:44 -04:00
coordinate ui: Round Trip Time Tooltips (#9290) 2020-11-30 17:02:54 +00:00
discovery-chain ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
health/service ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
internal ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
kv ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
namespace ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
session ui: Fix Health Checks in K/V form Lock Sessions Info section (#10767) 2021-08-04 12:41:41 -04:00
status ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
.config ui: Move mocks into the ui project (#9084) 2020-11-05 16:03:49 +00:00
namespaces ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
partitions ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00