-
Notifications
You must be signed in to change notification settings - Fork 255
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
Parse json validation #16923
Merged
anoadragon453
merged 16 commits into
element-hq:develop
from
TrevisGordan:parse_json_validation
Apr 18, 2024
Merged
Parse json validation #16923
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9608394
Adds parse_json & parse_json_from_args function.
TrevisGordan a040208
Implements parse_json function at filter_json appearances.
TrevisGordan 7797db3
Merge branch 'element-hq:develop' into parse_json_validation
TrevisGordan 96a05b2
Newsfile
TrevisGordan 3cee2e9
Apply suggestions from code review
TrevisGordan 279bf93
Adds client filter_query_validation tests
TrevisGordan 9c5152a
Adds admin filter_query_validation tests
TrevisGordan 9508d4d
Merge branch 'element-hq:develop' into parse_json_validation
TrevisGordan f44b1bf
Changes test helper variable naming.
TrevisGordan 8099ea0
Merge branch 'element-hq:develop' into parse_json_validation
TrevisGordan f5f8864
Applies lint changes. (removes unused imports)
TrevisGordan 6e68a9f
Merge branch 'develop' into parse_json_validation
anoadragon453 0634aeb
updates changelog suggestion with NOT_JSON
TrevisGordan 776dadb
Adds 400 NOT_JSON code instead of INVALID_PARAM
TrevisGordan fa414ac
Updates new test cases with NOT_JSON error
TrevisGordan 870a99a
Merge branch 'element-hq:develop' into parse_json_validation
TrevisGordan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Adds parse_json servlet function for standardized JSON parsing from query parameters, ensuring enhanced data validation and error handling. | ||
Introduces INVALID_PARAM error response for invalid JSON objects, improving parameter validation feedback. | ||
Adds validation check to prevent 500 internal server error on invalid Json Filter request. | ||
anoadragon453 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Generally we try to keep changelog entries short, and acknowledge that the audience is system administrators. Such an audience won't care to know the details of the implementation, but rather than user-facing impact. My suggestion would be:
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 the Insights! - I'll keep that in mind.
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.
Are you happy to accept my suggestion here? I prefer the suggested version of the changelog for the reasons in my initial comment.