Re: [Django] #34247: Cannot resolve operation dependencies

2023-01-10 Thread Django
#34247: Cannot resolve operation dependencies
+--
 Reporter:  Mike Schem  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Migrations  |  Version:  4.1
 Severity:  Normal  |   Resolution:  needsinfo
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  1   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by Tim Graham):

 We can't add code for a problem we don't fully understand, or else Django
 would quickly become a mess. Without a test, we can't be sure the problem
 is fixed and that the behavior won't regress in the future.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701859d273048-ad7d7ab5-d77d-4240-bc8e-1265c06da258-00%40eu-central-1.amazonses.com.


Re: [Django] #34247: Cannot resolve operation dependencies

2023-01-10 Thread Django
#34247: Cannot resolve operation dependencies
+--
 Reporter:  Mike Schem  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Migrations  |  Version:  4.1
 Severity:  Normal  |   Resolution:  needsinfo
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  1   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by Mike Schem):

 Replying to [comment:1 Tim Graham]:
 > You'll need to provide a minimal example to reproduce the issue so we
 can better understand it. The patch also requires a regression test based
 on that.

 Yea, I've tried to come up with something, but no luck so far.  I've only
 been able to get this to fail on my project, and like I said, it has
 hundreds of objects with complex relations.  The code does fix the problem
 and I see no downside to ordering proxy model and model creates at the top
 before the sort, any reason not to just accept the PR?

 Not sure if I'll be able to come up with something here.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701859cce83fb-c68c44e1-5848-44bc-b6a8-a79ecda397c5-00%40eu-central-1.amazonses.com.


Re: [Django] #34247: Cannot resolve operation dependencies

2023-01-09 Thread Django
#34247: Cannot resolve operation dependencies
+--
 Reporter:  Mike Schem  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Migrations  |  Version:  4.1
 Severity:  Normal  |   Resolution:  needsinfo
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  1   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => needsinfo


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701859a77f012-945e34e3-e7e1-4167-9df7-0e44182777fc-00%40eu-central-1.amazonses.com.


Re: [Django] #34247: Cannot resolve operation dependencies

2023-01-09 Thread Django
#34247: Cannot resolve operation dependencies
+--
 Reporter:  Mike Schem  |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  1   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by Tim Graham):

 * needs_tests:  0 => 1
 * easy:  1 => 0


Comment:

 You'll need to provide a minimal example to reproduce the issue so we can
 better understand it. The patch also requires a regression test based on
 that.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018597fee41a-3691b23c-19e8-45bd-88fe-4189cb6fbfbf-00%40eu-central-1.amazonses.com.


[Django] #34247: Cannot resolve operation dependencies

2023-01-09 Thread Django
#34247: Cannot resolve operation dependencies
+
   Reporter:  michaelschem  |  Owner:  nobody
   Type:  Bug   | Status:  new
  Component:  Migrations|Version:  4.1
   Severity:  Normal|   Keywords:
   Triage Stage:  Unreviewed|  Has patch:  1
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  1
  UI/UX:  0 |
+
 I've been having trouble regenerating all my Django migrations from
 scratch. We have hundreds of models and many complex relationships. I kept
 getting the error `Cannot resolve operation dependencies` when generating
 and I noticed that proxy models that were foreign keys of other models
 seemed to be the culprit. I've created a pr to fix the sort method to
 ensure that proxy model based CreateModel and regular model CreateModel
 operations are at the top.

 https://github.com/django/django/pull/16438

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018597fa04a1-bc555d7c-cc53-4c23-b89a-1b2e7dc780f6-00%40eu-central-1.amazonses.com.