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 <[email protected]>
crazyscientist
left a comment
There was a problem hiding this comment.
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