-
Notifications
You must be signed in to change notification settings - Fork 113
Rename method getcomments to get_comments for better readablity #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
Rename method getcomments to get_comments for better readablity #226
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 2211 2212 +1
=========================================
+ Hits 2211 2212 +1 ☔ View full report in Codecov by Sentry. |
|
I also figured we'd better keep |
|
Finally all the checks passed :) |
|
Thanks for the suggestion, and I agree |
|
Sorry. I got a little confused reading your message. So, you say we keep the change and modify the unit tests or to defer the change to a better time? (I'm fine either way. I'm already using getcomments without much trouble in my code. Just that it took me a while to figure out this is the neat way. :)) |
|
@mrbahrani If I understand @crobinso correctly, he is proposing the following:
Does that clarify things? |
…thod of getcomments) Co-authored-by: Andreas Hasenkopf <andreas@hasenkopf.xyz>
crazyscientist
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.
Thank you for the contribution.
Using the api, I used to think the only way to retrieve the comments is to go through a Bugzilla instance. Later, I figured out the the Bug objects have the method
get_attachmentsand I was amazed that there is noget_comments. Digging into the code I realized the method has been namedgetcomments. I have changed all the occurrences ofgetcommentsmethod of the Bug class toget_comment