Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

  •  
     
    story #12458 DnD on an existing file creates a new version
Summary
Empty
DnD on an existing file creates a new version
Empty
  • User can not create a new version if he drops more than one file.
    • For instance, I have two exiting files in Tuleap: File A and File B
    • On my user computer I have two files: File B and File C
    • => the drag and drop of B & C will be refused. Dropping won't be accepted.
  • If user tries to perform the action and is not authorized (Someone locked the file after page load, he does not have admin permission of folder after a permission update) then an error will be displayed.
  • There is a spinner displayed until the file is totally uploaded.
  • When another user tries to download a document that has a new version currently uploading, the user downloads the last complete version of the document (and not the currently uploading one).
  • The document version creation is not displayed in history until the upload is not finished with success.
  • If there is an existing approval table on the file, an error is displayed, and the link to the corresponding approval table is shown to the user.
  • There is an error if a user tries to create a version when an other user is already creating a new version of the same file.
  • If the document is locked by the user who is dropping himself, then when we upload a new version of the file, it creates a new version, and the lock is kept on the new version.
  • Given I have a file a.txt in my docman, when I drop B.txt on a.txt, then it creates a new version of a.txt, content of b.txt will replace existing content (same behaviour as now)

To do this we use a new REST route PATCH docman_files/:id

 

if two uploads are launched in the same time then user shoud have a conflit

Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#12458
Marie Ange Garnier (marieange)
2019-02-27 14:29
2018-10-26 16:04
4086

References

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes