-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(feature-flagged-query-cache): Added a feature flagged query cache #19072
Changes from all commits
1774145
c8fb9dc
f310abc
24f09d0
3b6566b
fd5bcdb
4abea72
8b03184
5534731
05c35ad
53b7c68
2b4d6a7
eeff92d
d91d39b
67cdcf7
64e4d95
aafbd09
ed30f2d
5f694d0
99aa8e5
e8ff1cf
3823e86
3776c3d
f20ce7b
aeb14b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,10 @@ import {AddNoteOverlay, EditNoteOverlay} from 'src/overlays/components' | |
// Utils | ||
import {pageTitleSuffixer} from 'src/shared/utils/pageTitles' | ||
import {event} from 'src/cloud/utils/reporting' | ||
import {resetQueryCache} from 'src/shared/apis/queryCache' | ||
import {isFlagEnabled} from 'src/shared/utils/featureFlag' | ||
|
||
// Selectors & Actions | ||
import {resetCachedQueryResults} from 'src/queryCache/actions' | ||
import {setRenderID as setRenderIDAction} from 'src/perf/actions' | ||
import {getByID} from 'src/resources/selectors' | ||
|
||
|
@@ -60,10 +61,15 @@ class DashboardPage extends Component<Props> { | |
const fields = {renderID} | ||
|
||
event('Dashboard Mounted', tags, fields) | ||
if (isFlagEnabled('queryCacheForDashboards')) { | ||
resetQueryCache() | ||
} | ||
} | ||
|
||
public componentWillUnmount() { | ||
this.props.resetCachedQueryResults() | ||
if (isFlagEnabled('queryCacheForDashboards')) { | ||
resetQueryCache() | ||
} | ||
} | ||
|
||
public render() { | ||
|
@@ -119,7 +125,6 @@ const mstp = (state: AppState) => { | |
|
||
const mdtp = { | ||
setRenderID: setRenderIDAction, | ||
resetCachedQueryResults: resetCachedQueryResults, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this added back There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not unless we want to integrate the old system back in before we end up removing it later? |
||
} | ||
|
||
const connector = connect(mstp, mdtp) | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this need to called if the flag is disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not since the file has been removed and we're no longer caching things. Even if the feature flag is implemented the previous caching system has been ripped out in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what i'm trying to call attention to. doesn't that mean that we have interface changes being deployed that aren't captured / contained by the feature flag?