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] fix add_or_update_expectation_suite update path #7911

Merged
merged 15 commits into from May 22, 2023

Conversation

dctalbot
Copy link
Contributor

@dctalbot dctalbot commented May 17, 2023

  • This PR fixes an issue in which sequential calls to ctx.add_or_update_expectation_suite(expectation_suite_name="foo") would result in an exception (it should be idempotent).

  • The bug was as follows: GX Cloud requires the Expectation Suite's Cloud ID in order to request a PUT. This ID was not being set properly in the add_or_update_expectation_suite method.

  • Code is linted

    black .
    
    ruff . --fix
    
  • Appropriate tests and docs have been updated

@netlify
Copy link

netlify bot commented May 17, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 7d3f76f
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/646acb56f7fe2b0008b26fdb

@github-actions github-actions bot added the core label May 17, 2023
@ghost
Copy link

ghost commented May 17, 2023

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

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link
Contributor

@NathanFarmer NathanFarmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a test to tests/data_context/cloud_data_context/test_expectation_suite_crud.py, so we can't have a regression on this?

@dctalbot
Copy link
Contributor Author

The updated tests should be sufficient for preventing regressions here

@dctalbot dctalbot enabled auto-merge (squash) May 19, 2023 20:44
@dctalbot dctalbot merged commit ffa4d51 into develop May 22, 2023
40 checks passed
@dctalbot dctalbot deleted the b/pp-186/fix-add-or-update-expectation-suite branch May 22, 2023 12:42
Shinnnyshinshin added a commit that referenced this pull request May 23, 2023
…-expectations/great_expectations into m/_/credentials-doc-update

* 'm/_/credentials-doc-update' of https://github.com/great-expectations/great_expectations:
  [BUGFIX] Setting maximum on `typing-extension` package version (#7970)
  [BUGFIX] Change GXSqlDialect.AWSATHENA to awsathena (#7950)
  [FEATURE] Implementing Python code snippets under test for "https://docs.greatexpectations.io/docs/guides/connecting_to_your_data/fluent/cloud/how_to_connect_to_data_on_gcs_using_spark" (#7964)
  [FEATURE] Implementing Python code snippets under test for "https://docs.greatexpectations.io/docs/guides/connecting_to_your_data/fluent/cloud/how_to_connect_to_data_on_gcs_using_pandas" (#7959)
  [DOCS] Add small doc change (#7957)
  [MAINTENANCE] Fix docs deploy (#7958)
  [MAINTENANCE] ignore black formatting and ruff auto-fix revisions (#7953)
  [FEATURE] Implementing Python code snippets under test for "https://docs.greatexpectations.io/docs/guides/connecting_to_your_data/fluent/database/how_to_connect_to_sqlite_data" (#7947)
  [BUGFIX] Cloud - fix `add_or_update_*()` when using `name` as keyword arg (#7952)
  [MAINTENANCE] black `23.3` (#7946)
  [BUGFIX] fix `add_or_update_expectation_suite` update path (#7911)
  [BUGFIX] Return qualified name when calling `TableAsset.as_selectable()` (#7942)
  [FEATURE] Implementing Python code snippets under test for "https://docs.greatexpectations.io/docs/guides/connecting_to_your_data/fluent/cloud/how_to_connect_to_data_on_s3_using_spark" (#7943)
  [MAINTENANCE] Update ruff to `0.0.269` and target `python 3.8` (#7945)
  [MAINTENANCE] bump python minimum version to 3.8 (#7916)
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

2 participants