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
[BUGFIX] Improve datasource crud #8773
Merged
Merged
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
- for cloud use case, where you want to return Datasource after roundtrip, whcih may contain new properties like ids
✅ Deploy Preview for niobium-lead-7998 canceled.
|
…ns/great_expectations into improve-datasource-crud
roblim
changed the title
[DRAFT][BUGFIX] Improve datasource crud
[BUGFIX] Improve datasource crud
Oct 4, 2023
cdkini
reviewed
Oct 6, 2023
cdkini
reviewed
Oct 6, 2023
great_expectations/data_context/data_context/cloud_data_context.py
Outdated
Show resolved
Hide resolved
cdkini
reviewed
Oct 6, 2023
cdkini
reviewed
Oct 6, 2023
…ns/great_expectations into improve-datasource-crud
…ns/great_expectations into improve-datasource-crud
roblim
commented
Oct 10, 2023
Kilo59
approved these changes
Oct 10, 2023
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.
Excellent work!
I know this was a pain!
...perimental/metric_repository/test_column_descriptive_metrics_metric_retriever_integration.py
Outdated
Show resolved
Hide resolved
cdkini
reviewed
Oct 10, 2023
great_expectations/data_context/data_context/abstract_data_context.py
Outdated
Show resolved
Hide resolved
Shinnnyshinshin
added a commit
that referenced
this pull request
Oct 12, 2023
…zel-72/test-marker-update-data-assistant-test * m/zel-63/zel-68/add-jupyter-test-marker: (39 commits) [BUGFIX] Fix missing `config_provider` (#8822) [MAINTENANCE] Bump gitpython from 3.1.35 to 3.1.37 in /docs_rtd (#8818) [BUGFIX] Fix Snowflake `'connection_string'` `TestConnectionError` (#8816) [MAINTENANCE] Delete outdated context fixtures (#8809) [BUGFIX] Improve datasource crud (#8773) [MAINTENANCE] Column Descriptive Metrics: Empty string instead of UNKNOWN if table column type introspection fails (#8819) [BUGFIX] Column Descriptive Metrics: Convert table name to lowercase for snowflake (#8817) [BUGFIX] Column Descriptive Metrics: Skip finding semantic type info for UNKNOWN columns (#8815) [MAINTENANCE] Column Descriptive Metrics: Default to UNKNOWN if type is not found (#8810) [MAINTENANCE] Delete legacy `JsonSchemaProfiler` (#8807) [DOCS] Update docs to reference new `gx/` dir instead of `great_expectations/` (#8717) [MAINTENANCE] Bump urllib3 from 1.26.5 to 1.26.17 in /docs_rtd (#8802) [DOCS] Minor Syntax Update (#8806) [CONTRIB] New MulticolumnValuesProductEqualToSingleColumn Expectation (#8799) [CONTRIB] Updates to MulticolumnValuesSumValuesEqualToSingleColumn (#8798) [RELEASE] 0.17.21 (#8805) [MAINTENANCE] Remove `ge_cloud_mode` from `Store` (#8747) [MAINTENANCE] disallow-untyped-decorators (#8788) [DOCS] Add Mermaid plugin to Docusaurus (#8793) [MAINTENANCE] Remove SimpleCheckpoint from public API docs (#8770) ...
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.
Update logic in
_SourceFactories.create_update_crud_method
and_SourceFactories.create_add_or_update_crud_method
to callAbstractDataContext._update_fluent_datasource
, instead of callingAbstractDataContext._delete_fluent_datasource
+AbstractDataContext._add_fluent_datasource
. The former approach was causing an issue with Cloud, since Datasources with associated Checkpoints cannot be deleted, preventing users from updating DatasourcesRevert
CloudDataContext._save_project_config
to being no-op. With the recent removal of Datasource caching and the introduction ofDatasourceDict
, this logic is no longer necessary and was causing unnecessary HTTP calls to cloud.Description of PR changes above includes a link to an existing GitHub issue
PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
Code is linted - run
invoke lint
(usesblack
+ruff
)Appropriate tests and docs have been updated
For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!