-
Notifications
You must be signed in to change notification settings - Fork 2.4k
contrib: Add ExternalDailySnapshot #2591
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
contrib: Add ExternalDailySnapshot #2591
Conversation
dae3562
to
14afbae
Compare
14afbae
to
fdbf5ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have any problem with this. Thanks for the tests and confirmation that this has been used in production for quite awhile!
Thanks for the review @dlstadther! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe, even I remember ExternalDailySnapshot. :)
self.assertEquals(d.date, datetime.date(2012, 1, 1)) # Should still be the same | ||
|
||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you don't need this. See the docs for how we run the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 done
It is common to depend on the latest version of an ExternalTask, but not be concerned with when that external task was generated.
fdbf5ba
to
ce82962
Compare
Hey folks, thanks again for the reviews! Are we waiting on @ulzha for review, or good to go here? If everything's good, I'd like to merge to ensure I don't miss the next release. |
We're good to go! Thanks for following up @brianmartin |
It is common to depend on the latest version of an ExternalTask, but not be concerned with
when that external task was generated.
I think this concern is generic enough to warrant having it upstream.
In addition to unit tests, this has been in wide use at Spotify for several years.