Ticket #332 (closed enhancement: fixed)

Opened 3 years ago

Last modified 22 months ago

/assets + /asset calls should return collection data differently

Reported by: robert Owned by: robert
Priority: major Milestone: MediaMosa 3.0
Component: Core Version:
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 0

Description

/asset and /assets calls have the 'show_collections' setting. This will include extra information about the collections if the assets are in collections;

<collection_q2NkrUdqL4QvDYjWjb4dDXol>Upload collection of Sun, 07/18/2010 - Set 5</collection_q2NkrUdqL4QvDYjWjb4dDXol>

However output better would be:

<collections>
  <collection id="q2NkrUdqL4QvDYjWjb4dDXol">
    <title>Upload collection of Sun, 07/18/2010 - Set 5</title>
  </collection>
</collections>

Change History

Changed 2 years ago by Frans

  • owner set to michiel
  • status changed from new to assigned

Michiel, we would like to fix this.
Will it break your SURFmedia?

Changed 2 years ago by Michiel.Schok

  • owner changed from michiel to Frans

Go ahead, we use the /asset/{id}/collection call to get all the information we want.
After your fix, we probably take the opportunity to implement this call into SURFmedia.

Changed 2 years ago by Frans

  • moscow changed from Should Have to Must Have
  • milestone changed from MediaMosa X.X to MediaMosa 3.0

Also for mediafile id's
Fix will be more generic than only this issue
Tom K. will be pleased.... ;-)

Changed 2 years ago by forgacs

  • owner changed from Frans to forgacs

Changed 2 years ago by forgacs

  • status changed from assigned to closed
  • resolution set to fixed

I have fixed this in the asset, assets and asset/$asset_id REST calls.
The output is depend on the active version of client application. If it is < 3.0, it gives back the old format, otherwise the new one.

Old format:

<collection_q2NkrUdqL4QvDYjWjb4dDXol>Upload collection of Sun, 07/18/2010 - Set 5</collection_q2NkrUdqL4QvDYjWjb4dDXol>

New format:

<collections>
  <collection id="q2NkrUdqL4QvDYjWjb4dDXol">
    <title>Upload collection of Sun, 07/18/2010 - Set 5</title>
  </collection>
</collections>

Changed 2 years ago by robert

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 2 years ago by robert

  • owner changed from forgacs to robert
  • status changed from reopened to assigned

Changed 2 years ago by robert

  • status changed from assigned to closed
  • resolution set to fixed

Changed 22 months ago by forgacs

App_id = 1

POST: /collection/4Pdwv2IYk5trl0nhVKUBjwK1/asset_relation
Parameters: asset_id[]=N1jVTFWebDSaDMZdZJcCAHx1

GET: /asset/N1jVTFWebDSaDMZdZJcCAHx1?show_collections=TRUE

You can change the MediaMosa version (for changing the output) on this page:
 https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/config/app/16/edit?destination=admin/mediamosa/config/app

Note: See TracTickets for help on using tickets.