Skip to content
Snippets Groups Projects

Move "Move issue" to sidebar

Merged username-removed-892863 requested to merge 34261-move-move-to-sidebar into master
All threads resolved!

What does this MR do?

  • Add "Move issue" UI to right-sidebar
  • Remove "Move issue" UI from /group/project/issues/x/edit
  • Remove "Move issue" UI from inline issue edit

Are there points in the code the reviewer needs to double check?

EE MR, https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2715

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #34261 (closed)

Edited by Grzegorz Bizon

Merge request reports

Pipeline #11414581 failed

Pipeline failed for 90c60138 on 34261-move-move-to-sidebar

Test coverage 50.50% from 1 job
Approval is optional

Merged by Grzegorz BizonGrzegorz Bizon 7 years ago (Sep 4, 2017 8:42am UTC)

Pipeline #11420455 failed

Pipeline failed for 9e820ae3 on master

Test coverage 50.55% from 1 job

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • username-removed-892863 changed the description

    changed the description

  • Awesome thanks @MadLittleMods ! @hazelyang : Can you at least take a look at the gifs @MadLittleMods attached.

  • @MadLittleMods @victorwu Looks great! :thumbsup: Thanks!

  • username-removed-892863 marked the checklist item Has been reviewed by UX as completed

    marked the checklist item Has been reviewed by UX as completed

  • username-removed-892863 marked the checklist item Tests added for this feature/bug as completed

    marked the checklist item Tests added for this feature/bug as completed

  • username-removed-892863 marked the checklist item API support added as completed

    marked the checklist item API support added as completed

  • username-removed-892863 marked the checklist item Documentation created/updated as completed

    marked the checklist item Documentation created/updated as completed

  • username-removed-892863 marked the checklist item Changelog entry added, if necessary as completed

    marked the checklist item Changelog entry added, if necessary as completed

  • username-removed-892863 marked the checklist item Conform by the style guides as completed

    marked the checklist item Conform by the style guides as completed

  • username-removed-892863 marked the checklist item Conform by the merge request performance guides as completed

    marked the checklist item Conform by the merge request performance guides as completed

  • marked the checklist item Squashed related commits together as completed

  • username-removed-892863 changed the description

    changed the description

  • username-removed-892863
  • username-removed-892863 unmarked as a Work In Progress

    unmarked as a Work In Progress

  • username-removed-892863 changed title from WIP: Move "Move to different project" to sidebar to Move "Move issue" to sidebar

    changed title from WIP: Move "Move to different project" to sidebar to Move "Move issue" to sidebar

  • username-removed-892863 changed the description

    changed the description

  • @grzesiek Please review the new #move_issue endpoint and rspec tests :spy:

  • Grzegorz Bizon
  • @MadLittleMods Backend looks nice! I left just a few comments.

  • 1. No project option

    @MadLittleMods have we considered removing the No project option in the dropdown? I know it exists currently but the move (no pun intended :joy:) to the sidebar will make this more obvious

    Currently on gitlab.com This MR
    Google_Chrome_2017-08-21_17-22-56_2x Google_Chrome_2017-08-21_17-22-14_2x

    2. No matching results

    Google_Chrome_2017-08-21_17-25-16_2x

    Based on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13562#note_37742221, I think we want to make sure the no matching results isn't highlighted. I think you're already leveraging the shared code that @winh used, so I think updating your branch with master should fix this issue

    3. Inconsistent tooltips from sidebar

    2017-08-21_17.32.03

    Not 100% sure whether this is something that needs to be fixed in this MR. Otherwise, we need to create a separate issue to address the inconsistency


    As for the EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2715, I'm going to assign back to you and review it after this CE one is good to go :thumbsup:
  • @ClemMakesApps @MadLittleMods :

    • Agree. The no project option is not needed obviously. Let's remove it if it's a small tweak.
    • Small nitpicky detail. Can we make it No matching results without the trailing period.
    • What's wrong with the tooltip for the collapsed sidebar case?
  • What's wrong with the tooltip for the collapsed sidebar case?

    The copy reference tooltip overlaps with the sidebar border but I think that's a different issue altogether as the other tooltips don't seem to overlap

  • Thanks @ClemMakesApps . I totally missed that and was frantically reading the text.

  • cc @ClemMakesApps

    1. No project option
      • Removed the No project option. I don't see another place that uses autocomplete_projects_path but can you think of another place that might use this endpoint (I checked other project dropdowns but they seem to use the API)?
    2. No matching results
    3. Inconsistent tooltips from sidebar
  • added 459 commits

    • 92328b2a...4428944d - 454 commits from branch master
    • f08c4b38 - Move "Move to different project" to sidebar
    • 83143a01 - Integrate "Move issue" into sidebar mediator/service/store
    • c32b39d4 - Add rspec tests for sidebar move issue
    • f147438f - Add "Move issue" docs
    • b8aa30f8 - Update move issue with review suggestions

    Compare with previous version

  • added 9 commits

    • 5e7494e7...24244d03 - 8 commits from branch master
    • fe98a1e8 - Move "Move to different project" to sidebar

    Compare with previous version

  • @grzesiek Needs another review glance :eyes: (Updates in place). One thing that changed was No project was removed from app/controllers/autocomplete_controller.rb.

  • Since this MR deals with jQuery + Vue and since @iamphill will be back on monday, I'm going to assign this MR for him to finish up the review to make sure everything is :100:

  • Do we need to do remote filtering? The current move dropdown does.

    Still some open discussions as well.

  • @iamphill Good shout, I updated it to use remote filtering as it would only return the last 50 projects previously.

    One difference I found is infinite scrolling and pagination. select2 has this feature but gl_drodpown doesn't seem to have something for this yet. People will see up to 50 projects by default and will see up to 50 projects filtered results on their search. I suspect this to affect very little scenarios as manually finding something in 50 item list is a bit difficult and filtering will narrow you down quick just as before. Thoughts on just leaving it for this iteration? Otherwise we could add the same debounced scroll hook to gl_dropdown.

    I'll leave the setTimeout discussion open in case you have any thoughts.

    Edited by username-removed-892863
  • mentioned in merge request !13907 (merged)

  • added 139 commits

    • 5ab5ce47...6f0f65be - 138 commits from branch master
    • 0d8ce735 - Move "Move to different project" to sidebar

    Compare with previous version

  • added 72 commits

    • 11514336...cbaa015c - 71 commits from branch master
    • 65e09cbc - Move "Move to different project" to sidebar

    Compare with previous version

  • @MadLittleMods I'm cool with it not having infinite scrolling & having remote filtering instead :thumbsup:

  • Grzegorz Bizon
  • mentioned in issue #37253

  • Frontend LGTM :thumbsup:

  • assigned to @grzesiek

  • username-removed-892863 marked the checklist item Has been reviewed by Frontend as completed

    marked the checklist item Has been reviewed by Frontend as completed

  • Grzegorz Bizon mentioned in merge request !13436 (merged)

    mentioned in merge request !13436 (merged)

  • added 332 commits

    • 65e09cbc...dceb2112 - 331 commits from branch master
    • 6710a8f8 - Move "Move to different project" to sidebar

    Compare with previous version

  • added 304 commits

    • 6710a8f8...a3af6830 - 303 commits from branch master
    • 642ca987 - Move "Move to different project" to sidebar

    Compare with previous version

  • added 1 commit

    • 90c60138 - Move "Move to different project" to sidebar

    Compare with previous version

  • rspec-pg 4 25 failure (Import/Export - project import integration test when selecting the namespace path is not prefilled user imports an exported project successfully) is from master, https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/31176876

  • Grzegorz Bizon resolved all discussions

    resolved all discussions

  • Grzegorz Bizon marked the checklist item Has been reviewed by Backend as completed

    marked the checklist item Has been reviewed by Backend as completed

  • Grzegorz Bizon approved this merge request

    approved this merge request

  • Grzegorz Bizon mentioned in commit 9e820ae3

    mentioned in commit 9e820ae3

  • Thanks @MadLittleMods and others involved! :yellow_heart:

    Looks good to me! Confirmed that pipeline failure is present on master, so let's merge this! :tada:

  • Please register or sign in to reply
    Loading