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] Ensure that DataContextConfig has a consistent shape when args are omitted #9469

Merged
merged 8 commits into from Feb 20, 2024

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Feb 15, 2024

The shape of the object should always be the same - we shouldn't conditionally set attrs but rather just use defaults or Nones

  • 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!

Copy link

netlify bot commented Feb 15, 2024

Deploy Preview for niobium-lead-7998 ready!

Name Link
🔨 Latest commit 514024e
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/65d4d3e543967e0008cce206
😎 Deploy Preview https://deploy-preview-9469.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.

Comment on lines -2376 to -2382
if checkpoint_store_name is not None:
self.checkpoint_store_name = checkpoint_store_name
if profiler_store_name is not None:
self.profiler_store_name = profiler_store_name
self.checkpoint_store_name = checkpoint_store_name
self.profiler_store_name = profiler_store_name
self.plugins_directory = plugins_directory
if validation_operators is not None:
self.validation_operators = validation_operators
Copy link
Member Author

Choose a reason for hiding this comment

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

These feel bad. I shouldn't have the reason about whether or not an object has an attr. Shape should be consistent (even if values are not!)

@ghost
Copy link

ghost commented Feb 15, 2024

👇 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

@tyler-hoffman tyler-hoffman left a comment

Choose a reason for hiding this comment

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

Nice!

@cdkini cdkini added this pull request to the merge queue Feb 20, 2024
Merged via the queue into develop with commit 3de50c0 Feb 20, 2024
67 checks passed
@cdkini cdkini deleted the m/_/update_context_config_to_have_uniform_properties branch February 20, 2024 18:42
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