Skip to content

Sanity does not sync to changes in image attributes (Metadata) #69

Open
@Brettkgamble

Description

@Brettkgamble

Describe the bug
This may be a feature request as I am sure the plug-in works as intended.

When an assets metadata is updated in Cloudinary, Sanity does not update with the changes.

A clear and concise description of what the bug is.
To work around this issue the user must remove the image and re-add, then re-publish. This is fine as a part of a simple workflow (one image in one document), but when an image appears in multiple documents it becomes very difficult to even find which documents require this remove/add update.

To Reproduce

Steps to reproduce the behavior:

  1. Select an image in your document using the plugin.
  2. Publish the document
  3. Go back into Cloudinary and update some metadata, title for example, or structured metadata.
  4. Sanity does not update the asset with the changed data
  5. In the document, remove the asset
  6. Re-add the asset and publish
  7. The asset now has the changes/additional data available.

I like this plug-in, and see a problem with workflow (and am happy for any workarounds to this). We have our logo appearing in literally thousands of documents so performing this kind of update is not feasible. The only alternative is to fall back on Sanity's media assets which can be structured with what ever content we like, but then we miss out on all of the advantages that Cloudinary provides such as transformations, storage, etc

Expected behavior
The plugin hooks into changes made to the asset in Cloudinary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions