-
Notifications
You must be signed in to change notification settings - Fork 834
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
Fix Web Client custom iterator #521
Conversation
Codecov Report
@@ Coverage Diff @@
## master #521 +/- ##
==========================================
+ Coverage 68.89% 68.92% +0.03%
==========================================
Files 15 15
Lines 1707 1709 +2
Branches 96 96
==========================================
+ Hits 1176 1178 +2
Misses 508 508
Partials 23 23
Continue to review full report at Codecov.
|
990f64d
to
2997181
Compare
I have tried to reproduce your situation but I can't. |
@seratch Thanks, how did you test it? FYI, I tested it on my private workspace where there are over 200+ channels (and that's why I set $ pip list | grep slackclient
slackclient 2.2.0
$ python --version
Python 3.7.3 |
Let me know if you need more clarification here. I'm pretty sure it's reproducible as long as you set the |
Thanks, I managed to reproduce it. |
I confirmed that your fix addresses the issue by running it towards actual Slack APIs. I wrote a unit test for this PR. Would you consider merging smaeda-ks#1 (or feel free to modify it as you like)? Then, I'll give 👍 to this PR. |
Add a test suite verifying slackapi#521 fix
@seratch Thanks for your help! Merged the PR to my forked branch so feel free to merge this PR accordingly. |
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.
@RodneyU215 I believe this one is ready to merge. Could you review this change when you have time?
@smaeda-ks Thank you for the PR and thank you @seratch for adding in some tests. Super helpful fix. Looks good! |
Summary
For Web Client, since
SlackResponse
class overrides an initial response data when iterating through the response object, it only returns the last fetched response data when it's iterated twice.Actual result
Expected result
Requirements (place an
x
in each[ ]
)