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

🐛 fix missing type field in some posts_gdocs rows #3046

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Dec 28, 2023

With the introduction of data-insights, the type field of the content json blob became more important to the point where the admin refuses to show the content of a gdoc that does not have this field set. Most gdocs had it set in the db already but some only had it in the gdoc document. The admin now breaks if the type is missing which leads to a bind since if the DB does not already have the type set, there is no way for the user to get it set.

This PR just assigns the type article to all (12 or so) posts_gdocs that do not have the type set. Even if the page is actually a topic page, the next time it is opened in the admin, the correct type will overwrite the field in the db. I checked that none of the 12 documents that will be influenced by this are currently published AND are non-articles, so this should not break anything in baking either (i.e. there are no published topic-page entries or similar that would be wrongly baked as articles)

@danyx23 danyx23 merged commit 8a99b1e into master Dec 28, 2023
13 checks passed
@danyx23 danyx23 deleted the assing-type-to-all-gdoc-documents branch December 28, 2023 16:02
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.

1 participant