Open sayeedhussain opened 4 months ago
That's beacuse DevLake fetches GitHub pull request via its graphql API, and this API doesn't support createdAt
filter. So Devlake collect all pull requests.
Maybe we can collect pull request via search
API, just like this: https://github.com/orgs/community/discussions/24611 . We can vote ont this matter.
thanks for the analysis @d4x1. For now, we are able to work around this issue by fixing our mysql queries.
But in general, I think it would be good to fix this so that there are no *special conditions about honouring sync policy time range.
@sayeedhussain IMO, using search API is not the right way. I think we should ask GitHub to update its graphql API, it will take too long. Maybe we can filter out records that don't satisfy the time range. @abeizn Will it lead to other problems?
@d4x1 Sure. My suggestion was that it will be good to fix the issue. How to fix is best decided by you/team. thanks!
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
Search before asking
What happened
CodeReview (pull requests) data pulled by lake app does not honour the sync policy time range in config-ui. Additional data is getting pulled from github. Refer screenshots.
What do you expect to happen
The sync policy time range in config-ui should be honoured by lake app while pulling data.
How to reproduce
Anything else
No response
Version
0.21.0-beta5
Are you willing to submit PR?
Code of Conduct