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

[MAINTENANCE] Make Validation definitions immutable #9606

Merged
merged 13 commits into from Mar 11, 2024

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Mar 11, 2024

Validation definitions should not be able to be updated. If you want a change, you simply create a new one.

  • 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 ruff format + ruff check)
  • 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!

Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for niobium-lead-7998 ready!

Name Link
🔨 Latest commit c32f057
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/65ef62f70117c2000882dc9f
😎 Deploy Preview https://deploy-preview-9606.docs.greatexpectations.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cdkini cdkini self-assigned this Mar 11, 2024
Comment on lines -237 to -244
@public_api
def save(self) -> None:
key = self._store.get_key(name=self.name, id=self.id)

try:
self._store.update(key=key, value=self)
except gx_exceptions.StoreBackendError:
raise ValueError("ValidationConfig must be added to a store before saving.")
Copy link
Member Author

Choose a reason for hiding this comment

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

save() is an update method so we no longer need it (or the store dep)

@cdkini cdkini enabled auto-merge March 11, 2024 20:10
@cdkini cdkini added this pull request to the merge queue Mar 11, 2024
Merged via the queue into develop with commit e8eb201 Mar 11, 2024
68 checks passed
@cdkini cdkini deleted the m/v1-233/immutable_validation_defs branch March 11, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants