-
Notifications
You must be signed in to change notification settings - Fork 10k
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: saveSettings endpoint allowing NaN to be stored on Int settings #32428
base: develop
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 8061ee0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 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 |
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32428 +/- ##
===========================================
- Coverage 56.38% 56.33% -0.05%
===========================================
Files 2434 2434
Lines 53693 53708 +15
Branches 11050 11057 +7
===========================================
- Hits 30275 30259 -16
- Misses 20779 20804 +25
- Partials 2639 2645 +6
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Could you please add an API end-to-end test for this? I believe you could use the settings/:_id
POST endpoint
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Stops the backend from saving invalid values for int settings (NaN for example) |
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.
Fixed an issue that allowed saveSettings
method to save NaN
values on numeric settings.
CORE-418
Fixes issue that allowed empty strings to be saved in the int settings, causing an NaN value on the DB