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

feat: gitlab extractors and convertors support incremental mode #7997

Merged
merged 28 commits into from
Sep 27, 2024

Conversation

klesh
Copy link
Contributor

@klesh klesh commented Sep 3, 2024

Summary

To reduce total number of records to be processed and produced.

  • Speed up the pipeline
  • Avoid performance degradation on Postgres DBS

Affected data entities:

gitlab

  • deployment
  • issue/issue_label/issue_assignee
  • mr/mr_label/mr_assignee/mr_reviewer
  • mr_commits
  • mr_comments/mr_notes
  • pipeline
  • job

jira

  • issue_label/issue_relationship

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/feature-development This PR is to develop a new feature labels Sep 3, 2024
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Sep 4, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 26, 2024
@abeizn abeizn merged commit 1877da5 into main Sep 27, 2024
21 checks passed
@abeizn abeizn deleted the feat-gitlab-tx-inc branch September 27, 2024 01:00
Copy link

🤖 The current file has a conflict, and the pr cannot be automatically created.

@github-actions github-actions bot added the bot/auto-cherry-pick-failed auto cherry pick failed label Sep 27, 2024
@antoniomuso
Copy link
Contributor

Hi @klesh, this feature is essential; I cannot update my insight version because it is missing, so I am stuck on v0.21.0 , The current stable version does not work well for big projects (missing data), and with this feature/fixes, it works. When will it be carried on the next release?

@klesh
Copy link
Contributor Author

klesh commented Nov 5, 2024

@antoniomuso It is already available in the latest v1.0.x beta.

klesh added a commit that referenced this pull request Nov 5, 2024
* feat: gitlab mr_extractor support incremental sync

* feat: incr mode transformation support for deployment/issue/job/mr and others

* feat: removed mr_enricher and all gitlab transformers support incr-mode

* fix: some gitlab subtasks are missing connection in left join clause

* fix: test cases failed due to gitlab transformers support incr-mode

* fix: linting

* fix: do not collect all accounts from jihulab.com

* fix: typo

* fix: gitlab mr comments won't be converted to domain layer till next run

* feat: improve gitlab MR comments/commits collection performance

* fix: gitlab issues/mrs child records are not deleted

* docs: update stateful extractor doc

* fix: gitlab mr detail test

* refactor: unify stateful extractor and convertor helper

* docs: update stateful extractor/convertor doc

* refactor: remove useless type hint

* fix: shoud not be deleting records not extracted by current extractor

* fix: jira issue extractor should not deleting sprint_issue

* refactor: remove commit related subtasks

* fix: remove commit conversion e2e test

* feat(gitlab): update ExtractApiChildPipelines (#8016)

* fix: retransform should run in fullsync mode

* fix: gitlab issue assignees are not being converted

---------

Co-authored-by: Lynwee <[email protected]>
@klesh
Copy link
Contributor Author

klesh commented Nov 5, 2024

@antoniomuso Sorry, I just noticed that the auto-cherrypick failed.
And I just manually CPed it back to release-v1.0 branch.
Will release a new beta in a couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot/auto-cherry-pick-failed auto cherry pick failed component/plugins This issue or PR relates to plugins lgtm This PR has been approved by a maintainer needs-cherrypick-v1.0 pr-type/feature-development This PR is to develop a new feature size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants