Repository navigation
Introducing "strict_response_validation" in loader - #245
Merged
Merged
Conversation
This ensures that a failure in response handler terminates ingestion. This is be able to test that known objects with blobs do not get them It is a specefic override for Connection data csv, and any behavior changes in aperturedb or python lib will be automatically caught.
gsaluja9
force-pushed
the
bug/explicit_blob
branch
from
June 19, 2023 20:47
8485498 to
6a9edc1
Compare
drewaogle
reviewed
Jun 20, 2023
| use_dask = request.param | ||
| data = file_data_pair[in_csv_file](in_csv_file, use_dask=use_dask) | ||
|
|
||
| setattr(data, "response_handler", check_reposnse_regressions) |
Contributor
There was a problem hiding this comment.
Suggested change
| setattr(data, "response_handler", check_reposnse_regressions) | |
| setattr(data, "response_handler", check_response_regressions) |
drewaogle
reviewed
Jun 20, 2023
Co-authored-by: Drew Ogle <[email protected]>
luisremis
reviewed
Jun 20, 2023
|
|
||
| Typically, the response_handler is application specific, and loading does not break | ||
| on errors in response_handlers, so the default behaviour is to log the error and continue. | ||
| If you want to break on errors, set strict_response_validation to True. |
Contributor
There was a problem hiding this comment.
<3 thanks this is really useful.
luisremis
reviewed
Jun 20, 2023
Co-authored-by: luisremis <[email protected]>
drewaogle
approved these changes
Jun 22, 2023
drewaogle
left a comment
Contributor
There was a problem hiding this comment.
looks good, the testing pin seems like a good solution
JoshStoddard
approved these changes
Jun 22, 2023
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.