Skip to content

Fix metrics poller#2484

Open
SalmaSamy wants to merge 22 commits intomasterfrom
fix-metrics-poller
Open

Fix metrics poller#2484
SalmaSamy wants to merge 22 commits intomasterfrom
fix-metrics-poller

Conversation

@SalmaSamy
Copy link
Contributor

  1. Fix error in _open_url: seperated the logic for open_url and open_with_paganation
  2. Used BuildkiteClient tokens instead of env tokens

"""Returns the decode utf-8 representation of the _get_url_response."""
return self._get_url_response(url, params, retries).read().decode("utf-8", "ignore")

def _open_url_with_paganation(self, url, params=[], retries=5) -> List:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should update the names of the methods to make it clear that one fetches text vs the other paginated json objects

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the new names and tell me what you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants