owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.4k stars 228 forks source link

Google Drive images can't be updated without changing the filename #3969

Open ikesau opened 2 months ago

ikesau commented 2 months ago

Deleting the original image and uploading a new one is an intuitive way for authors to update an image if the first version has an error in it, but it doesn't update the image correctly in the admin preview or the baked site. The "Manage versions" workflow isn't working correctly, either.

Reproduction

  1. Upload an image to google drive
  2. Embed it in an article using an {.image} archie block
  3. Load the article preview and see the image
  4. Delete the image in google drive and upload a new image with the same name
  5. Reload the preview

Or

  1. Upload an image to google drive
  2. Embed it in an article using an {.image} archie block
  3. Load the article preview and see the image
  4. Use Google Drive's "Manage Versions" option (Right click the file > File information > Manage versions) to upload a new version of the image
  5. Reload the preview

Expected outcome:

The new image is displayed

Actual outcome

The old image is displayed

danyx23 commented 1 month ago

We'll very likely solve this another way - through the CF images project #2485