lsst-epo / craft-canto-dam-integrator

Other
0 stars 0 forks source link

Create a new field to allow for the selection of a Canto album to-be displayed as a gallery (UI/frontend work not in-scope) on the frontend #28

Open ericdrosas87 opened 1 year ago

ericdrosas87 commented 1 year ago
khalwat commented 1 year ago

I'll need to research whether the Canto API has this functionality -- I'm assuming it does.

If so, we can probably have just one field type, with a setting that lets you configure whether it allows the choosing of an asset, or the choosing of a folder (rather than two separate field types)

ericdrosas87 commented 1 year ago

I'll need to research whether the Canto API has this functionality -- I'm assuming it does.

So this is definitely worth testing out again as a frontend-only workflow where our Rubin Obs web client fetches data directly from the Canto API, but the frontend devs ruled it out as it was abysmally slow, apparently.

Let's definitely chat about this on Tuesday - I'd like to chat about how you envision storing the asset data from a folder selection. For instance, one giant JSON stringified object of all asset data from that folder? Etc.

khalwat commented 1 year ago

What I'd probably do here is just have the DAM Asset Picker field store an array of Canto assets, and for a "folder", we'd just grab all of the assets inside it.

Estimate: 2 hours