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: [Bugfix] Fix DC switching when blocking queries are enabled #6555

Merged
merged 3 commits into from
Nov 12, 2019

Conversation

johncowen
Copy link
Contributor

Fixes #6554

We recently added a way to reconcile the ember data store when data was
deleted in the backend and the data was kept hanging around in the
frontend, only this didn't take into account different datacenters!

This fix adds a 'fake' x-consul-datacenter header which then is
converted to a meta value which we can access whilst doing this
reconciliation. Now we can check the datacenter also before deciding
whether to delete the record from our local cache.

Tests included.

Quick note here this will have to be fixed differently for 1.7 as we have completely updated the Consul UI data layer there. The fix will be the same, just done in different places.

Thanks for the spot @eveld !

John Cowen added 3 commits September 26, 2019 14:26
We recently added a way to reconcile the ember data store when data was
deleted in the backend and the data was kept hanging around in the
frontend, only this didn't take into account different datacenters!

This fix adds a 'fake' `x-consul-datacenter` header which then is
converted to a meta value which we can access whilst doing this
reconciliation. Now we can check the datacenter also before deciding
whether to delete the record from our local cache.
As a result of this fix we added an new property to the meta values
everywhere. This updates our integration response comparision assertions
to look for that also.
@johncowen johncowen requested a review from a team September 26, 2019 14:36
@johncowen johncowen added theme/ui Anything related to the UI type/bug Feature does not function as expected labels Sep 26, 2019
@johncowen johncowen added this to the 1.6.x milestone Sep 26, 2019
Copy link

@backspace backspace left a comment

Choose a reason for hiding this comment

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

Nice technique 😀

@johncowen johncowen merged commit 9bab89d into release/1.6.x Nov 12, 2019
@johncowen johncowen deleted the bugfix/ui-blocking-dc-switching branch November 12, 2019 15:49
johncowen pushed a commit that referenced this pull request Nov 18, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Nov 19, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Nov 26, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Dec 4, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Dec 11, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Dec 12, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
johncowen added a commit that referenced this pull request Dec 17, 2019
This is the same fix as #6555
but for the 1.7 version of the UI with additional nspace support
@ghost
Copy link

ghost commented Jan 25, 2020

Hey there,

This issue has been automatically locked because it is closed and there hasn't been any activity for at least 30 days.

If you are still experiencing problems, or still have questions, feel free to open a new one 👍.

@ghost ghost locked and limited conversation to collaborators Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/ui Anything related to the UI type/bug Feature does not function as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants