•  
     
    story #12456 Cut/Copy/paste items
Summary
Empty
Cut/Copy/paste items
Empty
  • Copying or cutting a document stores it in a way that is persisted after a page refresh and shared between browser tabs
  • On dropdowns, if user has a document currently cut/copied then its name is displayed under the paste action (see live mockup)
    For example: given I'm copying file.txt, then in dropdown option, there will be
    Paste
    |__ file.txt
  • The paste action is disabled by front end opportunistically, if can determine the document can not be pasted the paste action is disabled with a info message. Potential cases where the paste is disabled:
    • same name
    • folder into itself or descendant
    • ...
  • If a user tries to cut and paste an item in a folder but another item has already the same name in it, pasting is not allowed (i.e. the same rule than the creation applies)
  • If a user tries to copy and paste an item in a folder but another item has already the same name in it, the document name is prefixed by "Copy of"
  • As of today, when we copy/cut/paste a document, we are redirected to an intermediate page that allows the user to choose the position of item. This page is not needed anymore (because item order is Folders first, then lexicographic).
  • cut adds an entry in the document history (as of today)
Empty
Status
Done
Development
Empty

The Copy/Paste action is represented as a single POST /docman_folders/{id}/{type} call:

{
  "copy": {
    "item_id": 
  }
}

For each route, you either pass the usual creation representation or this "copy from" representation.

 

The Cut/Paste action is represented as a single PATCH /docman_{type}/{id} call:

{
  "move": {
    "item_id": 
  }
}
Details
#12456
Marie Ange Garnier (marieange)
2019-07-24 14:30
2018-10-26 15:54
3551

References

List of items referenced by or referencing this item.

Artifact Tracker v5

Follow-ups

  • User avatar
    gerrit #15583 integrated into Tuleap 11.3.99.225
  • User avatar
    • Status changed from On going to Done
  • User avatar
    gerrit #15576 integrated into Tuleap 11.3.99.222
  • User avatar
    gerrit #15565 integrated into Tuleap 11.3.99.213
  • User avatar
    gerrit #15567 integrated into Tuleap 11.3.99.210
  • User avatar
    gerrit #15550 integrated into Tuleap 11.3.99.202
  • User avatar
    gerrit #15555 integrated into Tuleap 11.3.99.201
  • User avatar
    gerrit #15526 integrated into Tuleap 11.3.99.193
  • User avatar
    gerrit #15527 integrated into Tuleap 11.3.99.184
  • User avatar
    gerrit #15518 integrated into Tuleap 11.3.99.177
  • User avatar
    gerrit #15507 integrated into Tuleap 11.3.99.174
  • User avatar
    gerrit #15509 integrated into Tuleap 11.3.99.168
  • User avatar
    gerrit #15505 integrated into Tuleap 11.3.99.164
  • User avatar
    gerrit #15465 integrated into Tuleap 11.3.99.162
  • User avatar
    gerrit #15482 integrated into Tuleap 11.3.99.160
  • User avatar
    last edited by: Marie Ange Garnier (marieange) 8 months ago
    gerrit #15501 integrated into Tuleap 11.3.99.158
  • User avatar
    Updating AC: the cut/move operation should be possible even if the document is locked (as of the current document manager UI).

    • Acceptance criteria
  • User avatar
    gerrit #15440 integrated into Tuleap 11.3.99.124
  • User avatar
    gerrit #15423 integrated into Tuleap 11.3.99.108
  • User avatar
    gerrit #15419 integrated into Tuleap 11.3.99.105
  • User avatar
    gerrit #15401 integrated into Tuleap 11.3.99.102
  • User avatar
    Updating AC to let users duplicate documents in the same folder.

    • Acceptance criteria
  • User avatar
    • Status changed from To be done to On going
  • User avatar
    Updating AC and technical info.

    • Acceptance criteria
    • Attachments Image Pasted at 2019-7-1 11-07.png added
    • Technical informations
  • User avatar
    • Acceptance criteria
  • User avatar
    • Acceptance criteria