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): Search GitLab issues #6290

Merged
merged 92 commits into from
Apr 19, 2022

Conversation

nickoferrall
Copy link
Contributor

@nickoferrall nickoferrall commented Mar 28, 2022

Fix #6045

To test

  • Integrate with GitLab. If you can't see the GitLab integration provider make sure you've added the gitlab feature flag. If that doesn't work, run yarn postdeploy to make sure the cloudProvider is added
  • Make sure you're part of the GitLab team Parabol1
  • Create a Sprint Poker meeting, go to the Scope phase, and see your GitLab issues
  • Search for an issue in the search input and see that the issues filter

Note: with GitLab's search API, no results are returned if the search term doesn't match the issue title. So, if an issue is called Test and you type in "Tes", the issue may not show up.

nickoferrall and others added 30 commits February 21, 2022 17:14
…rabolInc/parabol into feat/6088/gitlab-issues-functionality
@nickoferrall nickoferrall requested a review from mattkrick April 4, 2022 13:40
nickoferrall and others added 2 commits April 4, 2022 15:31
@mattkrick
Copy link
Member

LGTM, i'll move this to stuck until the base PR gets merged

nickoferrall and others added 12 commits April 7, 2022 10:33
* query projects from project filter menu

* render projects in filter menu

* use fullPath in gitlab menu and adjust max width

* refactor gitlab search query from string to object with projectIds

* selecting a project in the filter menu adds the item to selectedProjectsFullPath

* selecting a project filters the results

* add search icon

* remove alias

* make selectedProjectIds nullable

* remove useLoadNextOnScrollBottom and increase default projects first

* fix selectedProjects type err

* add search string to differentiate project menu query and include ids in project connection so we can add issues with a filter

* remove gitlab types

* add viewerMeetingMember check and remove selectedProjectsIds resolver

* make selectedProjectsIds null if empty array

Co-authored-by: Matt Krick <[email protected]>
Base automatically changed from feat/6033/add-gitlab-issue to master April 19, 2022 00:50
@mattkrick mattkrick merged commit 5235acc into master Apr 19, 2022
@mattkrick mattkrick deleted the feat/6045/search-gitlab-issues branch April 19, 2022 01:44
JimmyLv pushed a commit that referenced this pull request Apr 19, 2022
* render list of gitlab issues

* use usePaginationFragment

* increase default value for usePaginationFragment

* implement GitLabScopingSearchResultItem

* add GitLabScopingSelectAllIssues

* can add and remove gitlab issues in scope phase

* add UpdatePokerScopeMutation gitlab optimistic updater

* able to select all issues

* clean up type errors

* add projects name alias to rootSchema

* include projectIds in search query

* return iid from GitLabIssueId

* sort projects by lastActivityAt

* implement fetchGitLabProjects

* implement gitlab issue menu

* implement NewGitLabIssueMenuRoot instead of using useAllIntegrations

* load next if projects dont have any issues

* update comment

* remove gitlab menu root and use defaultProjects query to populate menu

* increase projectsFirst from 10 to 20

* query all gitlab projects

* chore(comment): how to extend BaseTaskIntegration

* able to create a new gitlab issue

* use GitLabServerManager and implement parseWebPath

* fix undefined baseUri

* changed taskIntegrationGitLab and GitLabId to use providerId

* lowercase gitlabRequest to be consistent with gh

* add handle create gitlab issue

* add info fragment and return data instead of data.issue

* add serverBaseUrl

* adjusted root schema and can now render projects in input menu again

* clean up update poker scope and create task gitlab

* fix ts errors

* add gitlab query types

* add fullPath to gitLab issue edge if exists

* get nodes appearing on insert

* get gitlab issue title in create task updater

* include webUrl in createTask query so user can click on newly create issue url

* add first and sort to allProjects query

* rename GitLabRepo to GitLabProject

* pass meetingId to issue input rather than querying it

* add gitlab search query

* filter by gitlab search query

* refactor to hooks

* remove __typename and resolveTypes

* update UpdatePokerScopeMutation to fix selectAll bug

* add search icon

* remove searchQuery from scoping results query

* clean-up return statement in fetchGitLabProjects

* add search to issue args

* include search string when adding new gitlab issue

* refactor search query to a gql object

* merge with master

* use react-swipeable-views workaround

* add _xGitLabProject resolver

* merge with master

* remove resolverTypes and gitlabTypes

* map over tabs instead of contents

* fix(gitlab): add proper client-side alias handling (#6361)

* resolve to aliased fields

* resolve to aliased fields

* make poker input menu a dropdown and fix width

* refactor baseTabs to include Component

* create a single source of truth for gitlab issue args

* remove refetchable from gitlab scoping results query

* feat(sprint-poker): Filter GitLab issues by project (#6323)

* query projects from project filter menu

* render projects in filter menu

* use fullPath in gitlab menu and adjust max width

* refactor gitlab search query from string to object with projectIds

* selecting a project in the filter menu adds the item to selectedProjectsFullPath

* selecting a project filters the results

* add search icon

* remove alias

* make selectedProjectIds nullable

* remove useLoadNextOnScrollBottom and increase default projects first

* fix selectedProjects type err

* add search string to differentiate project menu query and include ids in project connection so we can add issues with a filter

* remove gitlab types

* add viewerMeetingMember check and remove selectedProjectsIds resolver

* make selectedProjectsIds null if empty array

Co-authored-by: Matt Krick <[email protected]>

Co-authored-by: Matt Krick <[email protected]>
atannus pushed a commit to atannus/parabol that referenced this pull request Apr 26, 2022
* render list of gitlab issues

* use usePaginationFragment

* increase default value for usePaginationFragment

* implement GitLabScopingSearchResultItem

* add GitLabScopingSelectAllIssues

* can add and remove gitlab issues in scope phase

* add UpdatePokerScopeMutation gitlab optimistic updater

* able to select all issues

* clean up type errors

* add projects name alias to rootSchema

* include projectIds in search query

* return iid from GitLabIssueId

* sort projects by lastActivityAt

* implement fetchGitLabProjects

* implement gitlab issue menu

* implement NewGitLabIssueMenuRoot instead of using useAllIntegrations

* load next if projects dont have any issues

* update comment

* remove gitlab menu root and use defaultProjects query to populate menu

* increase projectsFirst from 10 to 20

* query all gitlab projects

* chore(comment): how to extend BaseTaskIntegration

* able to create a new gitlab issue

* use GitLabServerManager and implement parseWebPath

* fix undefined baseUri

* changed taskIntegrationGitLab and GitLabId to use providerId

* lowercase gitlabRequest to be consistent with gh

* add handle create gitlab issue

* add info fragment and return data instead of data.issue

* add serverBaseUrl

* adjusted root schema and can now render projects in input menu again

* clean up update poker scope and create task gitlab

* fix ts errors

* add gitlab query types

* add fullPath to gitLab issue edge if exists

* get nodes appearing on insert

* get gitlab issue title in create task updater

* include webUrl in createTask query so user can click on newly create issue url

* add first and sort to allProjects query

* rename GitLabRepo to GitLabProject

* pass meetingId to issue input rather than querying it

* add gitlab search query

* filter by gitlab search query

* refactor to hooks

* remove __typename and resolveTypes

* update UpdatePokerScopeMutation to fix selectAll bug

* add search icon

* remove searchQuery from scoping results query

* clean-up return statement in fetchGitLabProjects

* add search to issue args

* include search string when adding new gitlab issue

* refactor search query to a gql object

* merge with master

* use react-swipeable-views workaround

* add _xGitLabProject resolver

* merge with master

* remove resolverTypes and gitlabTypes

* map over tabs instead of contents

* fix(gitlab): add proper client-side alias handling (ParabolInc#6361)

* resolve to aliased fields

* resolve to aliased fields

* make poker input menu a dropdown and fix width

* refactor baseTabs to include Component

* create a single source of truth for gitlab issue args

* remove refetchable from gitlab scoping results query

* feat(sprint-poker): Filter GitLab issues by project (ParabolInc#6323)

* query projects from project filter menu

* render projects in filter menu

* use fullPath in gitlab menu and adjust max width

* refactor gitlab search query from string to object with projectIds

* selecting a project in the filter menu adds the item to selectedProjectsFullPath

* selecting a project filters the results

* add search icon

* remove alias

* make selectedProjectIds nullable

* remove useLoadNextOnScrollBottom and increase default projects first

* fix selectedProjects type err

* add search string to differentiate project menu query and include ids in project connection so we can add issues with a filter

* remove gitlab types

* add viewerMeetingMember check and remove selectedProjectsIds resolver

* make selectedProjectsIds null if empty array

Co-authored-by: Matt Krick <[email protected]>

Co-authored-by: Matt Krick <[email protected]>
@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
Development

Successfully merging this pull request may close these issues.

Sprint Poker: GitLab v1: Search issues
3 participants