-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor(insights): simplify "save insight" #24047
Conversation
708b959
to
7b9ee75
Compare
Size Change: +40 B (0%) Total Size: 1.07 MB ℹ️ View Unchanged
|
@thmsobrmlr saving an insight works well, but there is a bug with saving a data warehouse insight. I can't reproduce it on master. Reproduction Steps to reproduce
|
Thanks for catching this @skoob13! I think it's fixed now. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
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.
Everything works now👍
This reverts commit 31bf450.
Problem / Changes
Builds upon #24024 to and moves the
saveInsight
action into the insightLogic, so that we don't need to do the dance where we first usesetInsight
to update the insight in insightLogic with the current query and then perform the save action on the insightsLogic.Contrary to the approach of passing in the query in the action as done in #24024, I found a way for kea to accept circular dependencies between
insightLogic
andinsightDataLogic
, so that we can now use the current query natively ininsightLogic
.Doing this refactor now to get rid of filters in
insightDataLogic
.How did you test this code?
Saved a new and existing insight