-
Notifications
You must be signed in to change notification settings - Fork 16
chore: make upgrade #226
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
chore: make upgrade #226
Conversation
Upgrade all python dependencies using `make upgrade`. This also fixes the `make compile-requirements` process; it was previously broken with unresolvable dependencies.
|
Thanks for the pull request, @samuelallan72! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
@samuelallan72 Can you fix the quality issue? |
- `backend.get_thread` can return None. Unlikely in this case, but possible if the thread was somehow deleted before being retrieved again. - returning group_ids at the end of `get_group_ids_from_params` could result in an unexpected type and value being returned, depending on what sanitation has been done on the params.
|
Thanks for the reminder for this PR @bradenmacdonald , updated! :) |
|
|
bradenmacdonald
left a comment
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.
LGTM, other than the if thread is None part which I don't have context for. The version bumps don't seem to be causing any issues.
| thread = backend.get_thread(thread_id) | ||
| if thread is None: | ||
| log.error( | ||
| "Forumv2RequestError for update thread request - retrieving updated thread to send in response." |
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.
| "Forumv2RequestError for update thread request - retrieving updated thread to send in response." | |
| "ForumV2RequestError for update thread request - retrieving updated thread to send in response." |
This is the only part I wasn't sure about. It says "retrieving updated thread" but I don't see it doing that here.
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.
The general flow in this method (pseudocode) is:
- thread: Thread = validate_object("CommentThread", id) # raises error if doesn't exist
- update_thread()
- thread: Thread|None = get_thread(id) # returns None if doesn't exist
So on line 265, thread should be the thread after the updates on line 263. However, nothing in the type system guarantees the thread wasn't deleted between line 263 and line 264. So the check is to keep the types happy, although there's a very very small chance of that happening.
Alternatively, we can change the get_thread call on line 265 to validate_object("CommentThread", id), which will raise an error instead or returning None. I'm not sure if there's any particular reason to use one over the other though, which is why I left it as-is and just focused on fixing the type error.
|
@taimoor-ahmed-1 could you please review? |
I guess it wouldn't take long before there's a new patch release of something at least. Let me know if I should run |
|
Nah, all good. |
|
Thanks @taimoor-ahmed-1 ! |
Description
Upgrade all python dependencies using
make upgrade. This also fixes themake compile-requirementsprocess; it was previously broken with unresolvable dependencies.Supporting information
Testing instructions
make compile-dependenciesnow.Merge checklist:
Check off if complete or not applicable: