Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: Discovery-Chain: Cope with some edge case configs #7174

Merged
merged 2 commits into from
Jan 30, 2020

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Jan 30, 2020

We found a few stranger configurations for discovery-chain, one of which
was redirects that can then failover.

We altered the parsing here to include 2 passes, one to organize the
nodes into resolvers and children/subsets based on the nodes themselves, which
includes adding the failovers to resolvers and subsets.

We then do a second pass which can more reliably figure out whether a
target is a redirect or a failover (target failovers don't have a
corresponding node), this then adds the redirect children to the already
exising resolver (from the first pass) and then checks if the redirect
also has failovers and adds those if so.

Additionally here (in the second commit), we add a visual indication of the default/catch all route if there user has not configured one themselves.

We found a few stranger configurations for discovery-chain, one of which
was redirects that can then failover.

We altered the parsing here to include 2 passes, one to organize the
nodes into resolvers and children/subsets based on the nodes themselves, which
includes adding the failovers to resolvers and subsets.

We then do a second pass which can more reliably figure out whether a
target is a redirect or a failover (target failovers don't have a
corresponding node), this then adds the redirect children to the already
exising resolver (from the first pass) and then checks if the redirect
also has failovers and adds those if so.
@johncowen johncowen added the theme/ui Anything related to the UI label Jan 30, 2020
@johncowen johncowen requested a review from a team January 30, 2020 13:37
@johncowen johncowen added this to the 1.7.0 milestone Jan 30, 2020
...if we don't add one so the visualization looks complete
@johncowen johncowen changed the title ui: Discovery-Chain: Cope with redirects that have failovers ui: Discovery-Chain: Cope with some edge case configs Jan 30, 2020
@johncowen johncowen marked this pull request as ready for review January 30, 2020 15:40
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johncowen johncowen merged commit 3eec5ed into ui-staging Jan 30, 2020
@johncowen johncowen deleted the feature/ui-disco-chain-redirected-failovers branch January 30, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants