PRX / cms.theworld.org

Wordpress CMS for The World
Apache License 2.0
0 stars 2 forks source link

WIP: Remove ACF migration blocks #207

Closed gtenaschuk closed 1 month ago

gtenaschuk commented 4 months ago
rpeterman-gp commented 4 months ago

@gtenaschuk Is removing the files supposed to remove the field groups from the admin? I am still seeing them even after a sync. Do we have to manually remove them via the admin as well?

gtenaschuk commented 4 months ago

Hey @rpeterman-gp sorry for my late reply here. Yes, i forgot to mention that i would wait for the deploy to delete them in the database. When you have a group in the database but does not have a JSON file stored in the filesystem you will see the groups with the status "Awainting save". Like in the image attached, that happens because i removed the field from the git repo. Captura de pantalla 2024-05-03 a la(s) 12 06 02

rpeterman-gp commented 3 months ago

@gtenaschuk Will removing the fields from the database also remove the meta data records for them? We still rely on some of these fields, such as the media original_uri meta data.

gtenaschuk commented 3 months ago

Hey @rpeterman-gp no, they are not going to delete the meta data. For that we will run these queries when the code is in live and no more fields will be available to store data in the database. https://docs.google.com/document/d/1_xJZBj9iSNsS7VcukuJS5gOUph_AboVPUk5NXABNpbM/edit

gtenaschuk commented 3 months ago

We are going to work on other post types next week, because Episodes need more attention since we are using migrated fields in other groups using the same meta key and we need to keep them in the db.