-
Notifications
You must be signed in to change notification settings - Fork 42
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 multiple error types #948
Closed
cuminandpaprika
wants to merge
6
commits into
anz-bank:master
from
cuminandpaprika:fix-multiple-error-types
Closed
Fix multiple error types #948
cuminandpaprika
wants to merge
6
commits into
anz-bank:master
from
cuminandpaprika:fix-multiple-error-types
Conversation
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
Codecov Report
@@ Coverage Diff @@
## master #948 +/- ##
==========================================
+ Coverage 83.35% 84.15% +0.80%
==========================================
Files 73 74 +1
Lines 10609 10326 -283
==========================================
- Hits 8843 8690 -153
+ Misses 1432 1324 -108
+ Partials 334 312 -22
|
ghost
suggested changes
Jul 10, 2020
Fixes an issue where the regex expression populated from the pattern property of string types was breaking the parser. This means that any transforms using this field will need to unescape the regex expression
Sometimes breaking changes to the importers need to be made without a corresponding fix in the transforms having been made yet. Feature flags allow these dependencies to be decoupled, so that support can be added at a later date.
Escapes typename of special characters Fixes an issue where multiple error responses with headers produce duplicate type names, as they were named <endpointname>_error Modify log to only show in debug Restore default handling of multiple error responses
cuminandpaprika
force-pushed
the
fix-multiple-error-types
branch
from
July 13, 2020 22:53
ee0b406
to
64b7a18
Compare
andrewemeryanz
requested changes
Jul 14, 2020
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.
Minor change. Otherwise good.
cuminandpaprika
force-pushed
the
fix-multiple-error-types
branch
from
July 15, 2020 02:13
161adbe
to
983b0e4
Compare
Adds a test file multiple-error-responses.yaml which demonstrates the current importer behaviour with multiple error response codes. Tidies up the test file
cuminandpaprika
force-pushed
the
fix-multiple-error-types
branch
from
July 15, 2020 02:33
983b0e4
to
91d9e7c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR appends the error code to the type name, without changing the error response definition (which was previously a breaking change for transforms) This change is now hidden behind a toggle flag, so that it will not break arrai transforms
Behaviour with flag: https://github.com/anz-bank/sysl/pull/948/files#diff-96ec2bd3bb0448da4b0b23b92469582a
Behaviour without flag: https://github.com/anz-bank/sysl/pull/948/files#diff-ac6fdb35ec698c09e006ff0cb5a83a64
Changes:
Checklist: