Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(helpers): use isIncremental instead of SyncPolicy.FullSync #7773

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

d4x1
Copy link
Contributor

@d4x1 d4x1 commented Jul 23, 2024

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?
Use isIncremental instead of SyncPolicy.FullSync.

Var syncPolicy in code := args.Ctx.TaskContext().SyncPolicy() comes from _devlake_pipelines.
When we collect data, then change its time range, set an early start time, collect data again. It should collect data fully, but _devlake_pipelines.full_sync is zero, which stands for false. So in NewStatefulApiCollectorForFinalizableEntity we should use isIncremental.

Does this close any open issues?

Closes #7772 #7766.
Maybe related #7739.

Screenshots

Include any relevant screenshots here.

Other Information

Any other information that is important to this PR.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 23, 2024
@d4x1 d4x1 self-assigned this Jul 23, 2024
@d4x1 d4x1 requested a review from abeizn July 23, 2024 10:29
@dosubot dosubot bot added the severity/p2 This bug doesn’t affect the functionality or isn’t evident label Jul 23, 2024
Copy link
Contributor

@abeizn abeizn left a comment

Choose a reason for hiding this comment

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

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 23, 2024
@abeizn abeizn merged commit b2bd3b3 into main Jul 23, 2024
15 checks passed
@abeizn abeizn deleted the dev-1 branch July 23, 2024 11:01
Copy link

🤖 Target: #release-v1.0 cherry pick finished successfully 🎉!

@github-actions github-actions bot added the bot/auto-cherry-pick-completed auto cherry pick completed label Jul 23, 2024
Nickcw6 pushed a commit to Nickcw6/incubator-devlake that referenced this pull request Jul 23, 2024
abeizn pushed a commit that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot/auto-cherry-pick-completed auto cherry pick completed lgtm This PR has been approved by a maintainer needs-cherrypick-v1.0 severity/p2 This bug doesn’t affect the functionality or isn’t evident size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][pagerduty] DevLake does not collect PagerDuty incidents
2 participants