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

fix(ui): clean redux cache when namespace or flag is deleted #2708

Merged

Conversation

erka
Copy link
Collaborator

@erka erka commented Jan 24, 2024

With Redux RTK the UI could show a stale cache in the browser when user deletes a flag or a namespace and immediately recreated it with the same key. For namespace old segments will be displayed and for flags - rollouts or rules depending on flag type.

@erka erka requested a review from a team as a code owner January 24, 2024 19:04
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (936e158) 73.02% compared to head (b5e1db9) 73.02%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2708   +/-   ##
=======================================
  Coverage   73.02%   73.02%           
=======================================
  Files          85       85           
  Lines        8370     8370           
=======================================
  Hits         6112     6112           
  Misses       1880     1880           
  Partials      378      378           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

awesome fix! thank you @erka!!

@markphelps markphelps added the automerge Used by Kodiak bot to automerge PRs label Jan 25, 2024
@kodiakhq kodiakhq bot merged commit e4b36d9 into flipt-io:main Jan 25, 2024
30 checks passed
@erka erka deleted the ui-clean-cache-on-namespace-flag-deletion branch January 25, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Used by Kodiak bot to automerge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants