Skip to content

Fix broken handling of certain calls in GitHub importer client

username-removed-506061 requested to merge fix/github-importer-client into master

What does this MR do?

It changes/fixes the behavior of request handling in GH client. Now it returns the response directly if it's not a collection of resources. Otherwise, it checks for a passed block, if true, then it yield each page to said block, if not, it collects all response in a single array then returns it.

Are there points in the code the reviewer needs to double check?

N/A

Why was this MR needed?

It fixes a bug.

Screenshots (if relevant)

N/A

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#22998 (closed)

Merge request reports