Repository navigation
Warn users that they lose their query changes when exiting query builder - #1278
Conversation
🦋 Changeset detectedLatest commit: d8fe08e The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
d6fad7c to
9d78797
Compare
0154381 to
1ed14c5
Compare
MauricioUyaguari
left a comment
There was a problem hiding this comment.
seems like we have not thought about a couple of things:
Do we want to initialize every query with change detection? Should it be part of the options when you initiate query builder (enableSoftChangeDetection)?
Additionally, I don't think you handle when the user saves the query and then clicks exist. Are you updating the hashLambda when a user has hit save?
|
|
a761daa to
b6e1ec9
Compare
Yes, this makes sense, and I totally missed this case. Thanks @MauricioUyaguari |
I don't think it bothers us because queryBuilder will be reset( |
Yes, the case I'm talking about is when you hit save and the user hits exit, won't we still show this warning? I would expect that during saving we update the lambdaHash |
|
@YannanGao-gs you are relying on the implementation of the save action here, and now since this is a state in |
Hm, I think right now, when we hit |
The behaviors are
|
c88e8ab to
e737562
Compare
Codecov Report
@@ Coverage Diff @@
## master #1278 +/- ##
==========================================
+ Coverage 41.56% 41.70% +0.14%
==========================================
Files 1157 1181 +24
Lines 52533 52507 -26
Branches 11971 11890 -81
==========================================
+ Hits 21836 21900 +64
+ Misses 30630 30539 -91
- Partials 67 68 +1
|
abc0b6e to
0b7d879
Compare
2e3f07c to
aabba13
Compare
…ting embedded query builder (finos#1278)
Summary
Fixes #1274
How did you test this change?
Screen.Recording.2022-07-12.at.9.47.36.AM.mov