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(history): handle sanitization when fetching versions #20212
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
089818f
fix(history): handle sanitization when fetching versions
markkaylor 0c5d32d
chore: filter user relations in the backend
remidej 43332a9
Merge branch 'v5/main' into fix/history-tests
markkaylor 3e8c68b
Merge branch 'v5/main' into fix/history-tests
markkaylor e2d36b9
chore: sanitze relations
markkaylor 3963e39
chore: sanitize admin users
markkaylor 050e98c
chore: add type to async map
markkaylor f248d50
chore: rename variable
markkaylor 77891ff
fix: update types in tests
markkaylor f96f7d5
Merge branch 'v5/main' into fix/history-tests
markkaylor 0d67fb8
fix: protect frontned from undefined values
markkaylor 171e3ac
fix: adjust types in test
markkaylor 3b35275
fix: adjust test to not have a mainField value
markkaylor 4e6631d
fix: move pagination query params to query object
markkaylor 38c0861
chore: pr feedback
markkaylor b5974b3
fix: do not omit locale
markkaylor db27e41
chore: sanitize media
markkaylor 5d0d00d
fix: ensure proper history page navigation and await click events
markkaylor a8a945f
fix: prettify
markkaylor File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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
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
Oops, something went wrong.
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.
I wonder why you picked this in the end and not mainfield only population
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.
Here for upload I don't think a mainField is available 🤔 but maybe it is. For the other instance with relations I did test it out but I think I abandoned it quite quickly when values weren't showing up as expected. I'll try it again real quick.
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.
as you want I'm just curious, don't want to block you. And I doubt sanitization is needed on media assets
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.
Sounds good, I might just merge this now then and circle back to the idea in another PR with some of the refactor ideas.