def __get_history()

in libmozdata/bugzilla.py [0:0]


    def __get_history(self):
        """Get the bug history"""
        url = Bugzilla.API_URL + "/%s/history"
        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.history_results.append(
                self.session.get(
                    url % first,
                    headers=header,
                    params={"ids": remainder},
                    verify=True,
                    timeout=self.TIMEOUT,
                    hooks={"response": self.__history_cb},
                )
            )