-
Notifications
You must be signed in to change notification settings - Fork 119
Warn users that they lose their query changes when exiting query builder #1278
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
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 |
packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx
Outdated
Show resolved
Hide resolved
d6fad7c
to
9d78797
Compare
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
packages/legend-studio-extension-query-builder/src/components/EmbeddedQueryBuilder.tsx
Outdated
Show resolved
Hide resolved
0154381
to
1ed14c5
Compare
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.
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
packages/legend-graph/src/models/protocols/pure/v1/V1_PureGraphManager.ts
Outdated
Show resolved
Hide resolved
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