Skip to content

Adds command to check for circular migration dependencies#49

Draft
kingbuzzman wants to merge 48 commits into
masterfrom
add-circular-migration-finder
Draft

Adds command to check for circular migration dependencies#49
kingbuzzman wants to merge 48 commits into
masterfrom
add-circular-migration-finder

Conversation

@kingbuzzman

@kingbuzzman kingbuzzman commented Feb 2, 2024

Copy link
Copy Markdown
Owner
pip install git+https://github.com/kingbuzzman/django-squash.git@add-circular-migration-finder
python manage.py shell -c 'from django.core.management import call_command; from django_squash.management.commands.circularmigrations import Command; call_command(Command())'

Advanced.

Get the apps that are problematic, and needs to be ignored.

python manage.py shell -c 'from django.core.management import call_command; from django_squash.management.commands.circularmigrations import Command; call_command(Command())' | grep '*' | awk '{for(i=1;i<=NF;i++) print $i}' | grep -v '>\|<\|*' | grep -vE "\(" | sort | uniq

…n/django-squash into add-circular-migration-finder
@codecov-commenter

codecov-commenter commented Jul 30, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.00000% with 153 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.69%. Comparing base (0bb5705) to head (fc9cef7).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...ent/commands/restructure_migration_dependencies.py 0.00% 89 Missing ⚠️
...o_squash/management/commands/circularmigrations.py 0.00% 56 Missing ⚠️
django_squash/db/migrations/autodetector.py 33.33% 2 Missing and 2 partials ⚠️
django_squash/db/migrations/utils.py 88.88% 1 Missing and 1 partial ⚠️
django_squash/db/migrations/writer.py 33.33% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (0bb5705) and HEAD (fc9cef7). Click for more details.

HEAD has 38 uploads less than BASE
Flag BASE (0bb5705) HEAD (fc9cef7)
39 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #49       +/-   ##
===========================================
- Coverage   89.96%   67.69%   -22.27%     
===========================================
  Files          23       25        +2     
  Lines        1385     1523      +138     
  Branches      154      192       +38     
===========================================
- Hits         1246     1031      -215     
- Misses        115      469      +354     
+ Partials       24       23        -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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