-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[MAINTENANCE] performance, avoid HTTP round trips #9929
Conversation
|
||
@override | ||
@staticmethod | ||
def gx_cloud_response_json_to_object_collection( |
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.
see great_expectations/data_context/store/datasource_store.py
for reference implementation
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.
Nice work! It's hard to overstate the impact this will have 😄
Approach seems reasonable I would suggest using the _fake_web_api
mock to assert that the expected number of calls are being made to /expectations-suites
+ /expectations-suites?name=<SUITE-NAME>
I think you'll need to take the PR off of draft mode to run the integration tests.
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.
Looks good to me. the sa _get_all
is a mouthful, but looks consistent with the rest of the class. Happy to approve once tests for the other backends are ported over!
) | ||
|
||
checkpoint.run() | ||
# TODO assert GET expectation-suites called |
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.
Did you mean to do this?
I'm working on this right now.
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.
This is turning out to be much more of a pain to setup than I expected.
Let's do this as a followup.
get_all
method on the ExpectationsStore's interface.