From 6c144fae91fde4aba225f08c03a47f4ef0628fe2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 12 Sep 2024 09:45:49 +0800 Subject: [PATCH] fix: gitlab issue assignees are not being converted --- backend/plugins/gitlab/tasks/issue_assignee_convertor.go | 2 +- backend/plugins/gitlab/tasks/mr_assignee_convertor.go | 2 +- backend/plugins/gitlab/tasks/mr_commit_convertor.go | 2 +- backend/plugins/gitlab/tasks/mr_label_convertor.go | 2 +- backend/plugins/gitlab/tasks/mr_reviewer_convertor.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/plugins/gitlab/tasks/issue_assignee_convertor.go b/backend/plugins/gitlab/tasks/issue_assignee_convertor.go index 2f063609ff2..ce5ce593fcc 100644 --- a/backend/plugins/gitlab/tasks/issue_assignee_convertor.go +++ b/backend/plugins/gitlab/tasks/issue_assignee_convertor.go @@ -38,7 +38,7 @@ var ConvertIssueAssigneeMeta = plugin.SubTaskMeta{ Description: "Convert tool layer table _tool_gitlab_issue_assignees into domain layer table issue_assignees", DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET}, DependencyTables: []string{models.GitlabIssueAssignee{}.TableName()}, - Dependencies: []*plugin.SubTaskMeta{&ExtractApiIssuesMeta}, + Dependencies: []*plugin.SubTaskMeta{&ConvertIssuesMeta}, } func ConvertIssueAssignee(subtaskCtx plugin.SubTaskContext) errors.Error { diff --git a/backend/plugins/gitlab/tasks/mr_assignee_convertor.go b/backend/plugins/gitlab/tasks/mr_assignee_convertor.go index bf04fbbdeb6..d22714a7485 100644 --- a/backend/plugins/gitlab/tasks/mr_assignee_convertor.go +++ b/backend/plugins/gitlab/tasks/mr_assignee_convertor.go @@ -37,7 +37,7 @@ var ConvertMrAssigneesMeta = plugin.SubTaskMeta{ EnabledByDefault: true, Description: "Convert tool layer table gitlab_assignees into domain layer table pull_request_assignees", DomainTypes: []string{plugin.DOMAIN_TYPE_CODE_REVIEW}, - Dependencies: []*plugin.SubTaskMeta{&ExtractApiMergeRequestDetailsMeta}, + Dependencies: []*plugin.SubTaskMeta{&ConvertApiMergeRequestsMeta}, } func ConvertMrAssignees(subtaskCtx plugin.SubTaskContext) errors.Error { diff --git a/backend/plugins/gitlab/tasks/mr_commit_convertor.go b/backend/plugins/gitlab/tasks/mr_commit_convertor.go index aafeb61933b..6f7ff2a5f8e 100644 --- a/backend/plugins/gitlab/tasks/mr_commit_convertor.go +++ b/backend/plugins/gitlab/tasks/mr_commit_convertor.go @@ -37,7 +37,7 @@ var ConvertApiMrCommitsMeta = plugin.SubTaskMeta{ EnabledByDefault: true, Description: "Add domain layer PullRequestCommit according to GitlabMrCommit", DomainTypes: []string{plugin.DOMAIN_TYPE_CODE_REVIEW}, - Dependencies: []*plugin.SubTaskMeta{&ConvertMrCommentMeta}, + Dependencies: []*plugin.SubTaskMeta{&ConvertApiMergeRequestsMeta}, } func ConvertApiMergeRequestsCommits(subtaskCtx plugin.SubTaskContext) errors.Error { diff --git a/backend/plugins/gitlab/tasks/mr_label_convertor.go b/backend/plugins/gitlab/tasks/mr_label_convertor.go index ca77fe68042..b5f29a1a84f 100644 --- a/backend/plugins/gitlab/tasks/mr_label_convertor.go +++ b/backend/plugins/gitlab/tasks/mr_label_convertor.go @@ -37,7 +37,7 @@ var ConvertMrLabelsMeta = plugin.SubTaskMeta{ EnabledByDefault: true, Description: "Convert tool layer table gitlab_mr_labels into domain layer table pull_request_labels", DomainTypes: []string{plugin.DOMAIN_TYPE_CODE_REVIEW}, - Dependencies: []*plugin.SubTaskMeta{&ConvertIssueLabelsMeta}, + Dependencies: []*plugin.SubTaskMeta{&ConvertApiMergeRequestsMeta}, } func ConvertMrLabels(subtaskCtx plugin.SubTaskContext) errors.Error { diff --git a/backend/plugins/gitlab/tasks/mr_reviewer_convertor.go b/backend/plugins/gitlab/tasks/mr_reviewer_convertor.go index bac8bb6d729..f9298b093f6 100644 --- a/backend/plugins/gitlab/tasks/mr_reviewer_convertor.go +++ b/backend/plugins/gitlab/tasks/mr_reviewer_convertor.go @@ -37,7 +37,7 @@ var ConvertMrReviewersMeta = plugin.SubTaskMeta{ EnabledByDefault: true, Description: "Convert tool layer table gitlab_reviewers into domain layer table pull_request_reviewers", DomainTypes: []string{plugin.DOMAIN_TYPE_CODE_REVIEW}, - Dependencies: []*plugin.SubTaskMeta{&ExtractApiMergeRequestDetailsMeta}, + Dependencies: []*plugin.SubTaskMeta{&ConvertApiMergeRequestsMeta}, } func ConvertMrReviewers(subtaskCtx plugin.SubTaskContext) errors.Error {