incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Github] GraphQL collector fails on transferred issues

Open peakwinter opened this issue 5 months ago • 3 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

The Github GraphQL collector repeatedly fails on issue collection when it encounters an issue that has been transferred to another repository.

task-53475-3-2-github_graphql.log

In the above example, the error is Could not resolve to an Issue with the number of 17617. The issue with that number was transferred to another repository.

What do you expect to happen

The collector ignores issues that have been transferred, deleting them from the dataset or marking them as closed.

How to reproduce

  1. Create a Github issue in repository A
  2. Run the pipeline that includes repository A
  3. Transfer the previously created issue to repository B
  4. Re-run the pipeline that includes repository A

Anything else

No response

Version

v1.0.1-beta7

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

peakwinter avatar Aug 27 '24 15:08 peakwinter