Skip to content
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 96 commits into from Oct 10, 2023
Merged

[BUGFIX] Improve datasource crud #8773

merged 96 commits into from Oct 10, 2023

Conversation

roblim
Copy link
Member

@roblim roblim commented Sep 29, 2023

  • Update logic in _SourceFactories.create_update_crud_method and _SourceFactories.create_add_or_update_crud_method to call AbstractDataContext._update_fluent_datasource, instead of calling AbstractDataContext._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 Datasources

  • Revert CloudDataContext._save_project_config to being no-op. With the recent removal of Datasource caching and the introduction of DatasourceDict, 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 (uses black + 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!

@roblim roblim self-assigned this Sep 29, 2023
@netlify
Copy link

netlify bot commented Sep 29, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 7b417a7
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/6525d3b82870d900084d2a73

@github-actions github-actions bot added the core label Sep 29, 2023
@ghost
Copy link

ghost commented Sep 29, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@roblim roblim changed the title [DRAFT][BUGFIX] Improve datasource crud [BUGFIX] Improve datasource crud Oct 4, 2023
Copy link
Member

@Kilo59 Kilo59 left a 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!

@roblim roblim added this pull request to the merge queue Oct 10, 2023
Merged via the queue into develop with commit 380f706 Oct 10, 2023
57 checks passed
@roblim roblim deleted the improve-datasource-crud branch October 10, 2023 23:38
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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants