Ticket #449 (closed defect: ready_for_review)

Opened 2 years ago

Last modified 2 years ago

[workflow] creating a node without an video upload

Reported by: peter Owned by: Robert
Priority: major Milestone: WLE modules into D6
Component: WLE Version:
Keywords: Cc:
MoSCoW: Should Have Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 0

Description

Current situation: A node that has a cck video field is optional. So you can create a node without an upload. After saving no asset will be created in MediaMosa.

Problem: It is possible to add metadata (#417, #418) to that node without a video. So no asset has been created, so DB & QDC metadata can not be saved to MediaMosa.

Desired situation: Create a asset even when no mediafile has been uploaded.

Change History

Changed 2 years ago by peter

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

Changed 2 years ago by robert

My notes on implementation of this ticket;

  • Use /asset/create to create the asset.
  • Remember that assets can be deleted by other means than this module.
  • Build a function that retrieves the asset for the node and create the asset if the asset is no longer in MediaMosa. Then at any point in the code where you need or create the asset, call that function.
  • Do not store the asset_id in the node, use reference_id in the asset to reference back to the node.
  • You can only be sure that the node exists, but never that the asset exists.

Changed 2 years ago by peter

  • owner changed from Robert to t1mm1

Changed 2 years ago by peter

  • owner changed from t1mm1 to Robert

Changed 2 years ago by forgacs

@Robert:

Ready for review.

Situation after development: Asset is always created for node. If there is a node without asset, then the application create one for it.

PS. "Do not store the asset_id in the node, use reference_id in the asset to reference back to the node."
The embedded field stores the asset_id now (not the mediafile_id).

Changed 2 years ago by forgacs

  • status changed from assigned to closed
  • resolution set to ready_for_review
Note: See TracTickets for help on using tickets.