Merged
Conversation
4 tasks
5c26c91 to
74c4270
Compare
harshil21
reviewed
Jan 20, 2022
# Conflicts: # telegram/_files/file.py # telegram/ext/_basepersistence.py # telegram/ext/_builders.py # telegram/ext/_callbackqueryhandler.py # telegram/ext/_chatjoinrequesthandler.py # telegram/ext/_chatmemberhandler.py # telegram/ext/_choseninlineresulthandler.py # telegram/ext/_commandhandler.py # telegram/ext/_dispatcher.py # telegram/ext/_handler.py # telegram/ext/_inlinequeryhandler.py # telegram/ext/_messagehandler.py # telegram/ext/_picklepersistence.py # telegram/ext/_pollanswerhandler.py # telegram/ext/_pollhandler.py # telegram/ext/_precheckoutqueryhandler.py # telegram/ext/_shippingqueryhandler.py # telegram/ext/_stringcommandhandler.py # telegram/ext/_stringregexhandler.py # telegram/ext/_typehandler.py # telegram/ext/_updater.py # telegram/request.py
harshil21
reviewed
Apr 20, 2022
harshil21
reviewed
Apr 22, 2022
Member
harshil21
left a comment
There was a problem hiding this comment.
uploading files rework review.
Btw codecov shows that quite a few lines in Application and ConversationHandler are not covered in tests?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #2402. Closes #2288 when ready - which is not in the forseable future :D
telegramto workTODO
Let's use this as place to write everything down that comes to mind while working on this - will be a lot
Details
PtbRequestBaseandHttpxRequestto atg.requestmodule/package. Maybe rename toRequestBaseandHTTPXRequestBot?coroutine was never awaitedsomewhere in the tests and also check if we can make those warnings fail the teststimeoutparameter should be used forwrite_timeoutas well in inBaseRequestpool_timeoutwe want to create a new connection instead of dropping the request?!update_queue, which isn't really niceexception_eventJobQueuetest that weekdays are working as expected to avoid regression when we update APS - see here and here# TODOcommentschatmemberbot.pywe can also include the changes proposed hereThings that don't need to be done in this PR
If they are not, create issues for them!
BaspePersistence, i.e. abstract methodsstart/end_transactionso that we can doReview
Thinks to look out for in a review
test_slots_behaviortests went missing for some reason. check the diff and re-add them.. versionadded:: version,.. versionchanged:: versionor.. deprecated:: versionto the docstringshttps://…orhttp://…kill pidworks when usingApp.run_*& starting the script as a background task???
I wrote this down while working on a signal-handler based exit. not sure, if still relevant
task.cancel()leads to the issue discribed in https://bugs.python.org/issue39232. Can be resolved by usingloop.run_until_complete()instead ofasycnio.run(). think about if we want to address this somehow (documentation/helper function/adapting the internals or mechanichs or updater)asyncio.runin combination with webhooks leads to asyncio.run() causes RuntimeError because of loop.close() tornadoweb/tornado#3092 - check if we can do something smart about that