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

cluster-ui: fix cached data invalidation on timescale change #100652

Merged

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Apr 4, 2023

In a prior change, we moved the invalidation of cached data depending on the timescale to the local storage saga for CC. This was so invaldiation would occur after updating the cache. The local storage saga created for the time scale action was not hooked up to fire after the action, thus the data would not have been invalidated. This commit properly subscribes the saga to the update time scale action in CC.

Release note: None

Epic: CRDB-25476

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz force-pushed the fix-cloud-local-storage-invalidation branch 2 times, most recently from f652358 to bff1762 Compare April 5, 2023 04:40
@xinhaoz xinhaoz marked this pull request as ready for review April 5, 2023 14:03
@xinhaoz xinhaoz requested review from a team April 5, 2023 14:03
@xinhaoz xinhaoz added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Apr 5, 2023
Copy link
Contributor

@zachlite zachlite left a comment

Choose a reason for hiding this comment

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

Nice saga tests 👍

In a prior change, we moved the invalidation of cached data depending
on the timescale to the local storage saga for CC. This was so
invaldiation would occur after updating the cache. The local storage
saga created for the time scale action was not hooked up to fire
after the action, thus the data would not have been invalidated.
This commit properly subscribes the saga to the update time scale
action in CC. In addition, the imported constant `$ internal` used in
some files in the api module, was moved to use the import from
`util/constants` over `recentExecutions` for better import hygiene.

Epic: none

Release note: None
@xinhaoz xinhaoz force-pushed the fix-cloud-local-storage-invalidation branch from bff1762 to fcdd4ce Compare April 5, 2023 18:51
@xinhaoz
Copy link
Member Author

xinhaoz commented Apr 5, 2023

I don't think the failures are related, as these are UI only changes.
TYFTR!
bors r+

@craig craig bot merged commit 530100f into cockroachdb:master Apr 5, 2023
@craig
Copy link
Contributor

craig bot commented Apr 5, 2023

Build succeeded:

@xinhaoz xinhaoz deleted the fix-cloud-local-storage-invalidation branch June 5, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants