Skip to content
Snippets Groups Projects

Add issues to boards list

Merged Phil Hughes requested to merge add-issues-to-boards into master
All threads resolved!

What does this MR do?

Removes the backlog list from issue boards & instead places this list into a modal window. From here the user can add multiple issues at a time into a list of their choosing.

Few things to note:

  • The add issues button is disabled if no lists exist in the board
  • De-selecting issues on the selected tab keeps them there until the tab changes
  • Removing issues from the board is done by button in sidebar (visible by clicking issue card)

Screenshots (if relevant)

Screen_Shot_2017-01-30_at_16.45.35

Screen_Shot_2017-01-30_at_16.45.36

Screen_Shot_2017-01-30_at_16.45.38

Screen_Shot_2017-01-30_at_16.45.44

Screen_Shot_2017-01-30_at_16.46.46

Screen_Shot_2017-01-30_at_16.47.39

What are the relevant issue numbers?

Closes #26205 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Phil Hughes added 1 commit

    added 1 commit

    • c278c6d3 - Removed backlog frontend code

    Compare with previous version

  • added 1 commit

    • b5ad538e - Reuse endpoint to list issues for a list instead of create a new one

    Compare with previous version

  • @felipe_artur Could you review the backend stuff for me, please? Thanks :)

  • @iamphill @cperessini

    1. I add issues to the board. I refresh the board. The issues are not on the board. (No label was actually persisted to the issues.)

    2. When there is no list on the board. I can still click add issues, but cannot complete the modal submit. How can we improve that experience? Maybe don't even show the add issues button if there are no lists on the board?

    1. We should have the same dropdown filters in the add issues modal.
  • Author Maintainer
    1. We should have the same dropdown filters in the add issues modal.

    This will be done in a different merge request, this one is already pretty big as it is.

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • @dbalexandre Looks good!!! Just left a small comment.

  • @victorwu Good catch on 2). I think it's probably better to show both buttons and disable the Add issues one. We can show a tooltip Please add a list to your board first on hover/click/tap.

  • Phil Hughes added 1 commit

    added 1 commit

    • 01f0d57f - Fixed issue with issue not persisting in list

    Compare with previous version

  • added 1 commit

    • 2e673f94 - Remove unnecessary include from RemoveBacklogListsFromBoards migration

    Compare with previous version

  • @felipe_artur Thank you :hearts: I fixed your comment :thumbsup:

  • Phil Hughes added 1 commit

    added 1 commit

    • 3a758fb3 - Disabled add issues button if no lists exist

    Compare with previous version

  • Author Maintainer

    @dbalexandre had to make a little change to return the issue id as well as the iid. This is needed for the bulk_update method to work.

  • Phil Hughes resolved all discussions

    resolved all discussions

  • Phil Hughes resolved all discussions

    resolved all discussions

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    • 93c414bd - Add optional id property to the issue schema

    Compare with previous version

  • @dbalexandre had to make a little change to return the issue id as well as the iid. This is needed for the bulk_update method to work.

    @iamphill I pushed one commit fixing the specs related to the boards' controllers, otherwise, they will fail.

  • Phil Hughes added 439 commits

    added 439 commits

    • 93c414bd...d6450bb2 - 402 commits from branch master
    • e37ad076 - Add issues to boards list
    • 746f568d - Styling fix for list
    • dd8e26e9 - Added masonry layout
    • 652095c0 - Selected issues show with checkmark
    • 4e00b133 - Fixes layout issue on selected tab
    • 5bd6fefe - Mobile sizes
    • cbfaf8e3 - Added selectable list before adding issues
    • eb9cb833 - Changed where data gets loaded
    • 5a3b97f4 - Search bar now returns data
    • 16866bac - Created a modal store
    • 643b1974 - Started tests
    • 015193ca - Cleaned up some code
    • 80cb9cf1 - Added empty state
    • daf05fd6 - Reloads issues when re-opening modal
    • 04f6c0b9 - Added more tests
    • 5d817dfc - Used issue bulk update instead of different endpoint
    • d652956e - Remove backlog lists from boards
    • 7d793b2f - Remove backlog lists from board services
    • 40935276 - Fix spec for Projects::Boards::ListsController
    • 1edf36b9 - Update the API endpoint to get the lists of a project board
    • 0463a6a1 - Remove backlog lists from factories
    • 46b6978b - Fix feature spec to create new issue on issue boards
    • b0f410fe - Fix feature spec for issue sidebar on issue boards
    • c7464166 - Boards spec update to take into account removed backlog
    • ae4aa57d - Fixed masonry re-triggering when it didnt need to
    • a170ff8f - Infinite scrolling
    • 607e765b - Fixed some failing lint tests
    • 93e09c02 - Some styling updates
    • ed1caa25 - Lists dropdown drops up
    • 92366d2d - Removed backlog frontend code
    • f1f36163 - Reuse endpoint to list issues for a list instead of create a new one
    • c8a77231 - Fixed up JS tests
    • 0b65716e - Fixed issue with issue not persisting in list
    • 0dcd6ade - Remove unnecessary include from RemoveBacklogListsFromBoards migration
    • 5368803a - Disabled add issues button if no lists exist
    • cbb8059b - Fixed issue link href
    • e4111ecb - Add optional id property to the issue schema

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Phil Hughes added 64 commits

    added 64 commits

    • 90b74f35...fef6f52b - 26 commits from branch master
    • b1a3e9bd - Add issues to boards list
    • 043d8dff - Styling fix for list
    • 7e43cca1 - Added masonry layout
    • 987537ec - Selected issues show with checkmark
    • 8c0ec5da - Fixes layout issue on selected tab
    • fd7cd3ae - Mobile sizes
    • 06e9a446 - Added selectable list before adding issues
    • f70a517d - Changed where data gets loaded
    • e2efe81e - Search bar now returns data
    • e225094c - Created a modal store
    • f85bbd92 - Started tests
    • d171ab7b - Cleaned up some code
    • 708a02ed - Added empty state
    • a6ba669d - Reloads issues when re-opening modal
    • e9f7478d - Added more tests
    • b890b7bb - Used issue bulk update instead of different endpoint
    • 4c72601f - Remove backlog lists from boards
    • 1e9a1c3a - Remove backlog lists from board services
    • f29c4ee3 - Fix spec for Projects::Boards::ListsController
    • 50ad2b41 - Update the API endpoint to get the lists of a project board
    • aece36f0 - Remove backlog lists from factories
    • ca4dc0b3 - Fix feature spec to create new issue on issue boards
    • bb5853e7 - Fix feature spec for issue sidebar on issue boards
    • d8acb3f8 - Boards spec update to take into account removed backlog
    • 6689df81 - Fixed masonry re-triggering when it didnt need to
    • bcd841b6 - Infinite scrolling
    • e105c264 - Fixed some failing lint tests
    • 02d12fda - Some styling updates
    • c6012e7d - Lists dropdown drops up
    • f5a945bb - Removed backlog frontend code
    • 6f4f3ad0 - Reuse endpoint to list issues for a list instead of create a new one
    • 1227f177 - Fixed up JS tests
    • 66b52308 - Fixed issue with issue not persisting in list
    • c44d5381 - Remove unnecessary include from RemoveBacklogListsFromBoards migration
    • 23cfb408 - Disabled add issues button if no lists exist
    • 2cfee8c9 - Fixed issue link href
    • 40d8d956 - Add optional id property to the issue schema
    • 75e1d469 - Added remove button

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    • ba5ebad3 - Fixed bug where 2 un-selected issues would stay on selected tab

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    • 1912c69f - Fixed bug with empty state showing after search

    Compare with previous version

  • Author Maintainer

    Hey @fatihacet could you review the frontend please? Sorry the amount of changes :disappointed:

  • Phil Hughes unmarked as a Work In Progress

    unmarked as a Work In Progress

  • assigned to @fatihacet

  • Phil Hughes added 1 commit

    added 1 commit

    • 36118cd5 - Added webkit CSS properties

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Thanks @iamphill + @cperessini . Here are a few bugs / edge cases I found so far:

    1. Add issue to board. Move it around to different columns. Click Remove from board. The issue is closed (and sent to the Done column). This is incorrect. The issue should remain open. And all the current board labels associated with the issue should be removed so that the issue no longer is on the board.

    2. Open the add issues modal. Add some issues. Open the add issues modal again. The all issues count is not the updated one. It should be updated. (It is updated after a page refresh.) Consequently, if there are no more issues to add, the empty state is not there currently.

    3. When there are no more issues to add, and when there are no issues in the project at all. These two situations share the same empty state. That's okay. We should just have a more generic empty state message that captures that. @cperessini: Could you work with @pedroms to find that messaging? I think @pedroms updated the empty state for issues list earlier and had the latest messaging. And could you check that it makes sense? We want to convey that there are no more open issues to add to the board. I think we have an empty state message for that already.

    4. For the empty state, let's use New issue as the button text instead of Create issue. @awhildy is that what you want?

    5. Right now we have Un-select all. I think it should be at least Unselect all. Or should it be Deselect all? @awhildy thoughts?

  • @iamphill assinging back to you since @victorwu's comment requires some fixes.

  • Phil Hughes added 1 commit

    added 1 commit

    • ab9c80f6 - Removes labels instead of closing issue when clicking remove button

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    • fda7ea43 - Props use objects with required & type values

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    • 540ae958 - Uses mixins for repeated functions

    Compare with previous version

  • Phil Hughes resolved all discussions

    resolved all discussions

  • username-removed-502136
  • Thanks all!

    @victorwu: It should be New issue, and Deselect all. Thanks!

  • username-removed-502136
  • Phil Hughes resolved all discussions

    resolved all discussions

  • Phil Hughes added 1 commit

    added 1 commit

    • 349314bf - Removed Masonry, instead uses groups of data

    Compare with previous version

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • Thanks @iamphill for fixing those bugs I found above. Tested them again and they look good!

  • assigned to @fatihacet

  • Thanks @pedroms . The copy looks a bit weird if applied to the issue board though. Let's fix it later. @iamphill : Let's not worry about this for now for this issue. We can re-visit once we have things in place, and we can review everything together. Issues list, issue boards, etc. etc.

  • @iamphill when I add a new issue to I see some issues in DevTools. See the gif below.

    _issue-boards

  • Author Maintainer

    @fatihacet ah nice spot! Will fix that now :smiley:

  • Phil Hughes added 1 commit

    added 1 commit

    • 61d2f225 - Fixed remove btn error after creating new issue in list

    Compare with previous version

  • added 326 commits

    • 61d2f225...52ea5051 - 275 commits from branch master
    • a132b7d8 - Add issues to boards list
    • 94c07c21 - Styling fix for list
    • 1fae4d81 - Added masonry layout
    • 48b3623f - Selected issues show with checkmark
    • 7d0feab3 - Fixes layout issue on selected tab
    • e786ba98 - Mobile sizes
    • 97fbb3d1 - Added selectable list before adding issues
    • 38d84c13 - Changed where data gets loaded
    • acd86c12 - Search bar now returns data
    • 240d8c8d - Created a modal store
    • 6adb6cae - Started tests
    • d9894a2f - Cleaned up some code
    • ff98a743 - Added empty state
    • 76264cc0 - Reloads issues when re-opening modal
    • 54461ce2 - Added more tests
    • 3aabf0c6 - Used issue bulk update instead of different endpoint
    • 682d213f - Remove backlog lists from boards
    • 860fafee - Remove backlog lists from board services
    • 79a132a3 - Fix spec for Projects::Boards::ListsController
    • 158173a1 - Update the API endpoint to get the lists of a project board
    • a3edd5f1 - Remove backlog lists from factories
    • 8a2ecebe - Fix feature spec to create new issue on issue boards
    • f99a1edf - Fix feature spec for issue sidebar on issue boards
    • c4fc17f2 - Boards spec update to take into account removed backlog
    • ac7949db - Fixed masonry re-triggering when it didnt need to
    • 0904e9b1 - Infinite scrolling
    • 8b977b29 - Fixed some failing lint tests
    • a9432410 - Some styling updates
    • 26d61113 - Lists dropdown drops up
    • 7f58fc0e - Removed backlog frontend code
    • 274987d5 - Reuse endpoint to list issues for a list instead of create a new one
    • 8323bc49 - Fixed up JS tests
    • c368b28c - Fixed issue with issue not persisting in list
    • b1291872 - Remove unnecessary include from RemoveBacklogListsFromBoards migration
    • 6c828906 - Disabled add issues button if no lists exist
    • e140675e - Fixed issue link href
    • ffeb3200 - Add optional id property to the issue schema
    • 954deefa - Added remove button
    • d5c9d7e7 - Fixed DB schema
    • 1b01386a - Fixed bug where 2 un-selected issues would stay on selected tab
    • 39fbd189 - Fixed bug with empty state showing after search
    • 1b840452 - Added webkit CSS properties
    • a51aa6ab - Fixed issue card spec
    • 32a97ef1 - Fixed JS lint errors
    • 103c78f1 - Removes labels instead of closing issue when clicking remove button
    • 00b835ba - Props use objects with required & type values
    • cf5396d4 - Fixed up specs
    • b4113dba - Uses mixins for repeated functions
    • 4428bb27 - Removed Masonry, instead uses groups of data
    • e85cd9ee - Removed duplicated test
    • 8c5e50e1 - Fixed remove btn error after creating new issue in list

    Compare with previous version

  • @iamphill I tested this deeply and everything works great. Very solid job here. Congrats :thumbsup: Also thanks for the quick fix for the bug I found above. :sunglasses:

    I just cancelled previous build because this MR was 250+ commits behind of the master. Rebased and force pushed. I will take another quick look to the code and then I will probably enable auto merge.

    Once again, great job @iamphill :thumbsup: :100:

  • username-removed-502136 enabled an automatic merge when the pipeline for 8c5e50e1 succeeds

    enabled an automatic merge when the pipeline for 8c5e50e1 succeeds

  • username-removed-502136 canceled the automatic merge

    canceled the automatic merge

  • @iamphill Last minute bug I found. When you delete a board, modal still shows that board in the List dropdown.

    _issue-boards-delete

  • Phil Hughes added 1 commit

    added 1 commit

    • fee064be - Fixed modal lists dropdown not updating when list is deleted

    Compare with previous version

  • Author Maintainer

    @fatihacet Fixed with fee064be

  • assigned to @fatihacet

  • username-removed-502136 enabled an automatic merge when the pipeline for fee064be succeeds

    enabled an automatic merge when the pipeline for fee064be succeeds

  • @iamphill Thanks for the quick fix :thumbsup: Enabled auto merge.

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • username-removed-502136 enabled an automatic merge when the pipeline for aea7e700 succeeds

    enabled an automatic merge when the pipeline for aea7e700 succeeds

  • Phil Hughes added 1 commit

    added 1 commit

    Compare with previous version

  • mentioned in commit 3213dfd7

  • @victorwu @iamphill what is the state of adding documentation for this new feature?

  • Please register or sign in to reply
    Loading