-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: serialize extra json in state #21523
Conversation
/testenv up |
@eschutho Ephemeral environment spinning up at http://52.41.36.89:8080. Credentials are |
Codecov Report
@@ Coverage Diff @@
## master #21523 +/- ##
==========================================
+ Coverage 66.88% 66.90% +0.02%
==========================================
Files 1802 1805 +3
Lines 68987 69051 +64
Branches 7345 7366 +21
==========================================
+ Hits 46139 46197 +58
- Misses 20951 20952 +1
- Partials 1897 1902 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@eschutho when opening the "Other" tab under "Advanced" the page crashes. I checked it on master and it is working fine, the bug appears only on the ephemeral env. I think it is worth having a look |
Thanks for testing! I'll take a look. |
eaeac1c
to
2b55053
Compare
ebe32f3
to
0c1938b
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.
This looks amazing and a lot of work — thanks for refactoring this!
The "Allow this database to be explored" setting should be checked by default in the Database Connection UI. I can't repro the issue in latest master. db_settings.mp4 |
User can't create a dataset using newly connected gsheet. gsheet.mp4 |
bcc2c9b
to
b8f1125
Compare
b8f1125
to
9bba719
Compare
/testenv up |
@eschutho Ephemeral environment spinning up at http://34.222.101.244:8080. Credentials are |
9bba719
to
6269700
Compare
6269700
to
da02b71
Compare
paramatersCatalog[item.name] = item.value; | ||
}); | ||
|
||
if (action.payload.type?.startsWith('catalog')) { |
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.
why have this be a nested loop?
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.
Thanks for calling that out. I had originally written logic for the case where action.payload.type?.startsWith('catalog') && trimmedState.catalog === undefined
, thus the nested logic, but now I see that a form with a catalog will always have a defined catalog state, so I removed the logic and added some comments.
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
refactoring the extra json state in the database connection modal so that it is always serialized, as the api will expect it. Each component will deserialize and push it back to the reducer, which will then serialize it again. This should reduce some duplication of types and state.
This is also in preparation for adding a databricks form which will need to have extra json property as a field.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
No visual changes
TESTING INSTRUCTIONS
Adding and removing extra json in the advanced section should work as expected
ADDITIONAL INFORMATION