Move "Move issue" to sidebar
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
- Are we okay with using
gl_dropdown
?- Has all the right styles
- Other sidebar dropdowns use it
- Usage of
.js-sidebar-dropdown-toggle
instead of.edit-link
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Closes #34261 (closed)
Merge request reports
Activity
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
Awesome thanks @MadLittleMods ! @hazelyang : Can you at least take a look at the gifs @MadLittleMods attached.
@MadLittleMods @victorwu Looks great!
Thanks!marked the checklist item Documentation created/updated as completed
marked the checklist item Changelog entry added, if necessary as completed
marked the checklist item Conform by the style 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
- Resolved by username-removed-892863
- Resolved by Phil Hughes
- Resolved by username-removed-408677
- Resolved by username-removed-408677
- Resolved by username-removed-892863
- Resolved by username-removed-408677
- Resolved by username-removed-408677
assigned to @ClemMakesApps
@grzesiek Please review the new
#move_issue
endpoint and rspec tests- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
@MadLittleMods Backend looks nice! I left just a few comments.
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-408677
- Resolved by username-removed-408677
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by Achilleas Pipinellis
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
1. No project option
@MadLittleMods have we considered removing the
No project
option in the dropdown? I know it exists currently but themove
(no pun intended ) to the sidebar will make this more obviousCurrently on gitlab.com This MR 2. No matching results
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 withmaster
should fix this issue3. Inconsistent tooltips from sidebar
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 goassigned to @MadLittleMods
@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?
Thanks @ClemMakesApps . I totally missed that and was frantically reading the text.
No problem, I created https://gitlab.com/gitlab-org/gitlab-ce/issues/36813 to track that separately
mentioned in issue #37023 (closed)
- No project option
- Removed the
No project
option. I don't see another place that usesautocomplete_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)?
- Removed the
- No matching results
- Looks like it was fixed with
select2
but notgl_dropdown
. I have moved this issue out to https://gitlab.com/gitlab-org/gitlab-ce/issues/37023 - I assume we are okay with removing the period for all
gl_dropdown
's across the app, cc @victorwu
- Looks like it was fixed with
- Inconsistent tooltips from sidebar
- Moved out to https://gitlab.com/gitlab-org/gitlab-ce/issues/36813
- No project option
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
Toggle commit list- 92328b2a...4428944d - 454 commits from branch
added 9 commits
- 5e7494e7...24244d03 - 8 commits from branch
master
- fe98a1e8 - Move "Move to different project" to sidebar
- 5e7494e7...24244d03 - 8 commits from branch
assigned to @ClemMakesApps
@grzesiek Needs another review glance
(Updates in place). One thing that changed wasNo project
was removed fromapp/controllers/autocomplete_controller.rb
.- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-892863
- Resolved by username-removed-408677
- Resolved by username-removed-892863
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
assigned to @iamphill
- Resolved by username-removed-892863
- Resolved by username-removed-892863
assigned to @MadLittleMods
@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 butgl_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 togl_dropdown
.I'll leave the
setTimeout
discussion open in case you have any thoughts.Edited by username-removed-892863mentioned in merge request !13907 (merged)
added 139 commits
- 5ab5ce47...6f0f65be - 138 commits from branch
master
- 0d8ce735 - Move "Move to different project" to sidebar
- 5ab5ce47...6f0f65be - 138 commits from branch
assigned to @iamphill
added 72 commits
- 11514336...cbaa015c - 71 commits from branch
master
- 65e09cbc - Move "Move to different project" to sidebar
- 11514336...cbaa015c - 71 commits from branch
@MadLittleMods I'm cool with it not having infinite scrolling & having remote filtering instead
- Resolved by Grzegorz Bizon
mentioned in issue #37253
assigned to @grzesiek
mentioned in merge request !13436 (merged)
added 332 commits
- 65e09cbc...dceb2112 - 331 commits from branch
master
- 6710a8f8 - Move "Move to different project" to sidebar
- 65e09cbc...dceb2112 - 331 commits from branch
added 304 commits
- 6710a8f8...a3af6830 - 303 commits from branch
master
- 642ca987 - Move "Move to different project" to sidebar
- 6710a8f8...a3af6830 - 303 commits from branch
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 frommaster
, https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/31176876mentioned in commit 9e820ae3
Thanks @MadLittleMods and others involved!
Looks good to me! Confirmed that pipeline failure is present on
master
, so let's merge this!