[UXE-6093] fix: adjust origin_id handling in error responses service #2229
+6
−4
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.
Pull Request
What is the new behavior introduced by this PR?
This pull request includes changes to the error response handling in the
EdgeApplicationErrorResponsesServices
and updates to the test cases and configuration files. The most important changes include modifying theadapt
function to handle cases with a single error response, updating test cases to reflect this change, and excluding a specific module from the coverage configuration.Changes to error response handling:
src/services/edge-application-error-responses-services/edit-error-responses-service.js
: Modified theadapt
function to setorigin_id
tonull
if there is only one error response.Updates to test cases:
src/tests/services/edge-application-error-responses/edit-error-responses-services.test.js
: Updated test cases to expectorigin_id
to benull
. [1] [2]Does this PR introduce breaking changes?
Does this PR introduce UI changes? Add a video or screenshots here.
Does it have a link on Figma?
Checklist
Make sure your pull request fits the checklist below (when applicable):
These changes were tested on the following browsers: