in libmozdata/bugzilla.py [0:0]
def __get_comment(self):
"""Get the bug comment"""
url = Bugzilla.API_URL + "/%s/comment"
header = self.get_header()
# TODO: remove next line after the fix of bug 1283392
bugids = self.__get_no_private_ids()
for _bugids in Connection.chunks(
sorted(bugids, key=lambda k: int(k)),
chunk_size=Bugzilla.BUGZILLA_CHUNK_SIZE,
):
first = _bugids[0]
remainder = _bugids[1:] if len(_bugids) >= 2 else []
self.comment_results.append(
self.session.get(
url % first,
headers=header,
params={
"ids": remainder,
"include_fields": self.comment_include_fields,
},
verify=True,
timeout=self.TIMEOUT,
hooks={"response": self.__comment_cb},
)
)