Skip to content

Conversation

@Eldinnie
Copy link
Member

including tests

@codecov
Copy link

codecov bot commented Sep 15, 2017

Codecov Report

Merging #832 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #832      +/-   ##
==========================================
- Coverage   91.27%   91.25%   -0.03%     
==========================================
  Files         101      101              
  Lines        4023     4023              
  Branches      614      614              
==========================================
- Hits         3672     3671       -1     
  Misses        208      208              
- Partials      143      144       +1
Flag Coverage Δ
#Appveyor 86.35% <100%> (ø) ⬆️
#Travis 90.87% <100%> (-0.03%) ⬇️
Impacted Files Coverage Δ
telegram/ext/messagehandler.py 87.87% <100%> (ø) ⬆️
telegram/ext/regexhandler.py 92.1% <100%> (ø) ⬆️
telegram/ext/jobqueue.py 91.35% <0%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd20237...fd54e59. Read the comment docs.

@jsmnbom
Copy link
Member

jsmnbom commented Sep 16, 2017

To me it would be unintuitive to suddenly receive edited_channel_posts in my MessageHandler(..., allow_edited=False) without having channel_post_updates=True too, but that might just be me?

@Eldinnie
Copy link
Member Author

@bomjacob hmm, that's also True. What do you suggest? Although allow_edited is being deprecated. Do you feel the same for edited_updates?

@jsmnbom
Copy link
Member

jsmnbom commented Sep 16, 2017

Yeah sorry that's what I meant. But looking at it now, that might turn out to me unintuitive behaviour since currently edited_updates doesn't require message_updates to be true for a edited_message to be allowed through. So I don't really know... This is just yet another reason for considering refractoring the filter system to handle these things.

@Eldinnie
Copy link
Member Author

@bomjacob that is definitely True. But for now I see no way to fix it (without breaking backwards compatibility) other then introducing edited_channel_post_updates as a marker.

@jsmnbom
Copy link
Member

jsmnbom commented Sep 16, 2017

Hmm, that would be okay if edited_updates was called edit_message_updates but it's not... So I think for now that the change you've made already in the PR might be the best we can do while maintaining backwards compat and not confusing users too much.

@tsnoam tsnoam merged commit 28680ac into master Oct 14, 2017
@tsnoam tsnoam deleted the fix-aloowed-updates branch October 14, 2017 20:48
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants