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

🔨 migrate images of unpublished gdoc posts that were missing #4281

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Dec 11, 2024

The migration script used to filter for only images that are referenced in posts_gdocs_x_images. The idea was that this would keep only images that are used in any gdoc (regardless of publishing status), but it seems that there is a bug in updating the posts_gdocs_x_images table and it only happens for published posts.

This PR just gets rid of the check on posts_gdocs_x_images. This means that it will maybe transfer a few images to CF images that are actually unused but we can clean these up later (e.g. when we have the flat gdcos components table) and it seems more important to unblock authors today.

After this is merged and deployed the sync script has to be run again.

Copy link
Contributor

@rakyi rakyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@danyx23 danyx23 merged commit 9058fd0 into master Dec 11, 2024
25 of 28 checks passed
@danyx23 danyx23 deleted the migrate-images-of-unpublished-posts branch December 11, 2024 11:13
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

Successfully merging this pull request may close these issues.

2 participants