-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Refactor check_build_dependencies #35742
base: master
Are you sure you want to change the base?
Conversation
descending=True, | ||
limit=1, | ||
skip=1, | ||
).first() |
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.
just confirming that this returns None in case of no previous build? And you tested that I believe for a fresh app then?
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.
Additionally, can we further improve this by using
reduce=False,
include_docs=False
I believe the key itself would have the ID of the previous build, so you don't need the doc.
Or if works you can wrap the doc returned.
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.
just confirming that this returns None in case of no previous build?
Yes, it returns None
.
Additionally, can we further improve this by using
The include_docs
key has a default of False
, but not sure about reduce
. Will update.
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.
oh feel free to check what it does, its been a while for me and I remember that these both were to be used together.
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.
include_docs key has a default of False
Oh cool, does this view then return a key? and not a doc? I was confused by the naming of previous_build_doc
Technical Summary
A refactor based on this comment.
Safety Assurance
Tested locally
Safety story
Small change which only affects how a previous app build is fetched.
QA Plan
No QA needed
Rollback instructions
Labels & Review