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

AssetSpec in module load #26476

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

dpeng817
Copy link
Contributor

Summary & Motivation

How I Tested These Changes

Changelog

Insert changelog entry or delete this section.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines +545 to +550
automation_condition=automation_condition
if automation_condition is None and automation_condition
else ...,
freshness_policy=freshness_policy
if freshness_policy is None and freshness_policy
else ...,
Copy link

Choose a reason for hiding this comment

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

The conditions if automation_condition is None and automation_condition and if freshness_policy is None and freshness_policy are logically impossible to satisfy, as they require the values to be both None and truthy simultaneously. These conditions should be changed to if automation_condition is not None and if freshness_policy is not None respectively to properly apply these attributes when they are provided.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

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.

1 participant