-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ensure all content models have Drupal migration metadata #729
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to avoid duplicate definitions of the DrupalFields
model, let's create a new common
app:
python manage.py startapp common
Then, move the DrupalFields
model to common/models.py
and inherit from the common model in other apps.
We will also need database migrations, which are generated from the following command:
python manage.py makemigrations
Please generate the migrations and commit them to this branch.
Goodmorning @brylie I did the following:
Makemigrations works, but then migrate leads to an error message: |
Go ahead and push your changes to GitHub, so we can review them more closely. Note that the Similarly, none of the
|
…importer Fix articles importer
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #729 +/- ##
==========================================
+ Coverage 67.76% 68.33% +0.57%
==========================================
Files 98 100 +2
Lines 2975 2994 +19
==========================================
+ Hits 2016 2046 +30
+ Misses 959 948 -11
☔ View full report in Codecov by Sentry. |
Thanks for the heads up. Now only the list of models you have indicated inherit from |
I’ll check out this branch ASAP |
Co-authored-by: Brylie Christopher Oxley <[email protected]>
Co-authored-by: Brylie Christopher Oxley <[email protected]>
Co-authored-by: Brylie Christopher Oxley <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Code Climate has analyzed commit 5e9c4b1 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 68.3% (0.5% change). View more on Code Climate. |
Closes #719
An abstract class has been added with the three fields to the following models:
All classes in this files that inherit from Page also inherit from this new class DrupalFields.
I did not find other models with
drupal_node_id
ordrupal_body_migrated
.Please let me know if this is is what you expected. As I am a beginner, feel free to request changes or reject it if this solution does not solve the issue sufficiently. Feedback to improve is very much appreciated.