consul/ui-v2/app/services/repository
John Cowen 0717f58780 ui: Ensure routing tab is shown when connect enabled (#8209)
In https://github.com/hashicorp/consul/pull/8065 we attempted to reduce
the amount of times that the UI requests the discovery chain endpoint
when connect is disabled on a datacenter.

Currently we can only tell if connect is disabled on a datacenter by
detecting a 500 error from a connect related endpoint.

In the above PR we mistakenly returned from a catch instead of
rethrowing the error, which meant that when a none 500 error was caught
the discovery chain data would be removed. Whilst at first glance this
doens't seem like a big problem due to the endpoint erroring, but we
also receive a 0 error when we abort endpoints during blocking queries.
This means that in certain cases we can remove cached data for the
discovery chain and then delay reloading it via a blocking query.

This PR replaces the return with a throw, which means that everything is
dealt with correctly via the blocking query error detection/logic.
2020-07-01 09:22:24 +00:00
..
nspace ui: Delete the Promise rsvp imports from codebase (#7372) 2020-05-12 17:14:12 +00:00
type Merge pull request #8080 from hashicorp/ui-staging 2020-06-10 16:41:25 +00:00
acl.js ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
coordinate.js ui: Coordinates don't require a nspace, so don't expect one in the repo (#7378) 2020-03-04 18:12:47 +00:00
dc.js ui: Improved main navigation (#7673) 2020-05-12 17:14:28 +00:00
discovery-chain.js ui: Ensure routing tab is shown when connect enabled (#8209) 2020-07-01 09:22:24 +00:00
intention.js ui: Blocking with filtering intentions amends (#8027) 2020-06-05 13:45:42 +00:00
kv.js ui: Delete the Promise rsvp imports from codebase (#7372) 2020-05-12 17:14:12 +00:00
node.js ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
nspace.js ui: Upgrade to ember 3.16 Octane Edition (#7334) 2020-05-12 17:14:10 +00:00
oidc-provider.js ui: Model Layer for SSO Support (#7771) 2020-05-12 17:14:41 +00:00
policy.js ui: Delete the Promise rsvp imports from codebase (#7372) 2020-05-12 17:14:12 +00:00
proxy.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
role.js ui: Delete the Promise rsvp imports from codebase (#7372) 2020-05-12 17:14:12 +00:00
service.js Merge pull request #8013 from hashicorp/ui-staging 2020-06-03 17:46:46 +00:00
session.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
token.js ui: Delete the Promise rsvp imports from codebase (#7372) 2020-05-12 17:14:12 +00:00