You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "machristie (via GitHub)" <gi...@apache.org> on 2023/09/25 17:53:58 UTC

[GitHub] [airavata-django-portal] machristie opened a new pull request, #186: AIRAVATA-3698 management command to fix up the content type id in page revision json

machristie opened a new pull request, #186:
URL: https://github.com/apache/airavata-django-portal/pull/186

   The content type id in the wagtailcore_pagerevision.content_json column doesn't match the page's actual content type. when the page was imported from a wagtail export. The reason is that the content type ids were different in the Django instance where the Wagtail pages were developed and exported from. This causes at least a couple problems:
   
   - it causes an issue when migrating from wagtail 3.0 -> 4.0 (see [comment on AIRAVATA-3698](https://issues.apache.org/jira/browse/AIRAVATA-3698?focusedCommentId=17735463&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17735463))
   - it causes an issue with saving revisions, causing them to sometimes fail to save which can result in history and data loss.
   
   This PR adds a management command (fix_page_revision_content_type) that will programmatically look for and fix up any content_json that has a content_type id that doesn't match the page's actual content type. Additionally, this PR automatically calls fix_page_revision_content_type after loading a Wagtail export. This should prevent this issue from resurfacing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-django-portal] machristie merged pull request #186: AIRAVATA-3698 management command to fix up the content type id in page revision json

Posted by "machristie (via GitHub)" <gi...@apache.org>.
machristie merged PR #186:
URL: https://github.com/apache/airavata-django-portal/pull/186


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org