•  
     
    story #13463 Split PATCH docman_items_type/id route and add new routes for updating metadata on type that can not be updated with the modal
Summary
Empty
Split PATCH docman_items_type/id route and add new routes for updating metadata on type that can not be updated with the modal
Empty
docman_items_type PATCH route should be deprecated

-rename update button into "create new version" in overview view

existing route behaviour is now spli int two:
- POST docman_item_type/id/version
this route will be used to create a new version of a document

- PUT docman_items_type/id/metadata
this route will be used to update the metadata of document
at the end of epic it should accept following representation:
{
"title": "..."
"description": "...",
"status",
"obsoclesence _date"
"owner"
"custom_metadata: [
{ ... }
]
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?

For folder, we need to distinguish metadata that directly concerns the folder from metadata who will be recursively applied on its children

Proposition of route:

{ "properties" : {"title": "somethign", "description": "xsxsxsxs"}, "default_properties": {"status":"draft", "apply_on": "none|folders|all_items"} }

Details
#13463
Clarck Robinson (robinsoc)
2019-07-18 17:58
2019-06-06 10:44
4142

References
Referencing story #13463

Git commit

tuleap/tuleap/stable

Refactoring our file test build aef5378049
Create the route POST docman_files/:id/version 7ec6522404
"Create new version" is the new "Update" button 7a24dac772
Introduce the PUT route docman_files/:id/metadata b7a306b079
User should be able to update legacy properties of a document cc8a249b00
Use POST docman_file/:id/version instead of PATCH 29870e94c9
correct wrong namespace for PUTMetadataRepresentation 78d2da3441
Add Title/description/owner in DocmanItemRepresentation 5d6aee0364
Refactoring rest test embedded section 0fd572c99d
Add route POST docman_embedded/id/version 20f0eeaaab
Add PUT docman_embedded_files/id/metadata c416f945c0
Refactoring rest test link section 37fa147ff3
An unknown owner ID is properly rejected by the REST API 69d6d3d223
POST docman_link/id/version + deprecation warning 8fa06f9247
Status and obsolesence date are no more displayed in document preview 83a4e54a89
PUT docman_link/id/metadata 73dc57e43f
check title existence in rest route for PUT/PATCH routes 7d43371609
Refactoring rest test wiki section 526e15b0dc
Add missing options route for PUT link/id/metadata 288788478c
POST docman_wiki/id/version + deprecation warning 6f21b1b4b4
PUT docman_wiki/id/metadata d9b7d99439
Date metadata are always formatted as a date or set to null when there is no value 453cd1fd05
Refactoring rest test empty section b90b719e55
We should not depends on translated string to make vue comparisons bcb335518e
PUT docman_empty/id/metadata 9f34d03c0c
Refactoring rest test folder section d0427d2246
Extract recursivity core logic into a dedicated unit tested object e97c5bffcf
Route put /docman_folders/{id}/metadata 481d3fd03f
Copy of document is rejected when a file is being uploaded with the same updated metadata title 319643044b
Notices are raised in history when we update the status item via REST f73b183a78

Follow-ups

User avatar
  • Technical informations
    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
  • I want to
    -Split PATCH docman_items_type/id route 
    +Split PATCH docman_items_type/id route and add new routes for updating metadata on type that can not be updated with the modal