This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Decode HTML entities when formatting Store API error messages #5870
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
505b4df
Decode HTML entities when formatting Store API error messages
618f1d8
Merge branch 'trunk' into fix/issue-5869
PanosSynetos e6d1945
👌IMPROVE: Code formatting to avoid linting issues - #5869
PanosSynetos 1a64867
👌IMPROVE: Decode entities directly on the store notices container - #…
PanosSynetos e5a0a1a
⏪ REVERT: Revert decode entities directly on the store notices contai…
PanosSynetos 7cac80b
⏪ REVERT: Revert decode entities directly on the store notices contai…
PanosSynetos 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
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.
Hey @manospsyx - I discussed briefly with @xristos3490 and he suggested using
decodeEntities
in one place (here - the store notices container) rather than everywhere else we callcreateNotice
What do you think?
I tested it locally and it works as expected (with
decodeEntities
inassets/js/base/utils/errors.js
removed). If you agree, we can reverterrors.js
and just keep the change in the container.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 remember there's at least one instance where
decodeEntities
is used outside -- I wasn't sure if that's intentional. I agree with Chris, but let's make sure that we're not double-decoding in other places. Can you check usage ofdecodeEntities
in other locations to make sure?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 discussed with @senadir over slack