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
fix: Ignore database extra fields when saving #14465
fix: Ignore database extra fields when saving #14465
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14465 +/- ##
==========================================
- Coverage 77.02% 76.98% -0.04%
==========================================
Files 957 954 -3
Lines 48151 48179 +28
Branches 6056 6063 +7
==========================================
+ Hits 37089 37093 +4
- Misses 10861 10885 +24
Partials 201 201
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Looks good to me has a quick fix. We should eventually fix the database modal so that it does not send the allows_*
extra fields to the backend.
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 investigating and fixing this @michael-s-molina! I agree with Daniel, let's get this in asap but aim to do a more proper follow-up once the dust settles.
Thank you for catching @michael-s-molina. We also reverted the PR and here's the fix: #14470 |
SUMMARY
Ignore database extra fields when saving. This is a fix for a regression that prevented the saving of databases or the creation of new ones. The client is sending more data than it should, and this fix ignores this extra data for now. We should definitely fix the client side to send only the necessary information to the API.
@eschutho I know that you are working on this modal. Can you make this modification? After that, you can undo this hotfix.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
@rusackas @villebro @dpgaspar @junlincc @eschutho
TEST PLAN
1 - Execute all tests
2 - All tests should pass
ADDITIONAL INFORMATION