def refresh_bug_data()

in jbi/bugzilla/service.py [0:0]


    def refresh_bug_data(self, bug: Bug):
        """Re-fetch a bug to ensure we have the most up-to-date data"""

        refreshed_bug_data = self.client.get_bug(bug.id)
        # When bugs come in as webhook payloads, they have a "comment"
        # attribute, but this field isn't available when we get a bug by ID.
        # So, we make sure to add the comment back if it was present on the bug.
        updated_bug = refreshed_bug_data.model_copy(update={"comment": bug.comment})
        return updated_bug