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(sprint-poker): Push task to GitLab #6427

Merged
merged 193 commits into from
May 4, 2022

Conversation

nickoferrall
Copy link
Contributor

@nickoferrall nickoferrall commented Apr 20, 2022

Fix #6365 and fix #6428

This PR refactors the GitLab queries and mutations to use the TaskIntegrationManagerFactory pattern that Igor created. Using this class, I've also implemented pushing a Parabol task card to a GitLab project.

push-task-to-gitlab

nickoferrall and others added 30 commits February 21, 2022 17:14
…rabolInc/parabol into feat/6088/gitlab-issues-functionality
@@ -131,6 +137,8 @@ const TaskFooterIntegrateMenu = (props: Props) => {
mutationProps={mutationProps}
teamId={teamId}
label={label}
gitlabRef={viewerIntegrations.gitlab}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also consider passing cloudProvider which should be generic across different integrations

@nickoferrall nickoferrall requested a review from mattkrick April 28, 2022 11:49
@nickoferrall
Copy link
Contributor Author

@mattkrick or @Dschoordsch it'd be great to get a Maintainer Review on this one when you get the chance. Once this PR and #6398 are merged, we can launch v1 of the GitLab integration.

I mentioned to @lorena-cure that I estimate that v1 will be ready in prod by the next ship on Wednesday.

Copy link
Contributor

@Dschoordsch Dschoordsch left a comment

Choose a reason for hiding this comment

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

Works fine. Only one small change in line with your own concern about gitlabRef

@nickoferrall nickoferrall requested a review from Dschoordsch May 3, 2022 10:15
Copy link
Contributor

@Dschoordsch Dschoordsch left a comment

Choose a reason for hiding this comment

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

Works for the owner of the integration. Doesn't work for non-integrated users:

  • Gerrit has GitLab integration and creates a task "Push me"
  • Tina is a teammate of Gerrit and tries to push the task "Push me" on behalf of Gerrit
    For Jira/Git this will push the task using Gerrit's credentials and add a comment that it was pushed by Tina on his behalf. With this PR it shows a server error
  error: '{"data":{"createTaskIntegration":null},"errors":[{"message":"Method not implemented yet.","locations":[{"line":6,"column":3}],"path":["createTaskIntegration"]}]}'

I'm fine moving this into a separate issue/PR.

@nickoferrall
Copy link
Contributor Author

Nice catch! I've implemented the addCreatedBySomeoneElseComment method for GitLab so that should be working now.

I'll move this issue into the Stuck column until the base branch is merged

Base automatically changed from feat/6322/can-vote-on-gitlab-issue to master May 4, 2022 08:26
@nickoferrall nickoferrall merged commit 653b5be into master May 4, 2022
@nickoferrall nickoferrall deleted the feat/6365/taskManagerIntegration-gitlab branch May 4, 2022 08:55
@github-actions github-actions bot mentioned this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants