Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Brettkgamble opened this issue Feb 7, 2024 · 0 comments
Open

Comments

@Brettkgamble
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant