Re: Do people actually squash migrations?

2021-05-17 Thread René Fleschenberg
Hi,

I agree that it would be good to extend the docs and to describe how to
reset a project's migrations. Some prior art on this:

https://geekchick77.dreamwidth.org/5560.html

https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html


Regards,
René

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/9d103a6d-1301-1a37-ef35-29b6f1521f51%40fleschenberg.net.


Re: Fellow Reports - May 2021

2021-05-17 Thread Mariusz Felisiak
Week ending May 16, 2021 

Released Django 3.2.3, 3.1.11, and 2.2.23. 

*Triaged:* 
   https://code.djangoproject.com/ticket/32730 - jsonify() method for Q 
class in django.db.models.query_utils (wontfix) 
   https://code.djangoproject.com/ticket/32732 - MySQL backend uses 
deprecated "db" and "passwd" kwargs. (accepted) 
   https://code.djangoproject.com/ticket/32731 - makemigrations reports "No 
changes detected" if a property exists with the same name (invalid) 
   https://code.djangoproject.com/ticket/32728 - Primary key column is 
duplicated in the admin changelist when it's in ModelAdmin.list_editable. 
(duplicate) 
   https://code.djangoproject.com/ticket/32719 - Re-allow path components 
in `name` for Storage backends which allow it. (accepted) 
   https://code.djangoproject.com/ticket/32726 - Enforce database level 
constraints for fields with limited choices (wontfix) 
   https://code.djangoproject.com/ticket/32735 - DateFormat.Y() is not 
zero-padded. (accepted) 
   https://code.djangoproject.com/ticket/32741 - Tutorial Part 2 throws 
models.W042 warnings when making migrations (worksforme) 
   https://code.djangoproject.com/ticket/32711 - MySQL performance 
regression in forms.models.apply_limit_choices_to_to_formfield (worksforme) 
   https://code.djangoproject.com/ticket/32742 - Running migrations when 
updating default_auto_field only updates primary key. (needsinfo) 
   https://code.djangoproject.com/ticket/32743 - Migrations don't alter 
foreign key data types when referencing primary keys in MTI models. 
(created) 
   https://code.djangoproject.com/ticket/32719 - Re-allow path components 
in `name` for Storage backends which allow it. (duplicate) 
   https://code.djangoproject.com/ticket/32745 - Django 3.2 is auto 
reloading when template files are changed (duplicate) 
   https://code.djangoproject.com/ticket/32746 - Unexpected test failures 
in 3.3.2 when running the whole testsuite (needsinfo) 
   https://code.djangoproject.com/ticket/32747 - CacheHandler initialize 
unused caches. (accepted) 
   https://code.djangoproject.com/ticket/32744 - Template changes cause dev 
server to reload (accepted) 

*Reviewed/committed: *
   https://github.com/django/django/pull/14373 - Fixed #32735 -- Made 
DateFormat.Y() return a zero-padded year. 
   https://github.com/django/django/pull/14370 - Refs #24121 -- Added 
__repr__() to StaticNode. 
   https://github.com/django/django/pull/14376 - Fixed #32732 -- Removed 
usage of deprecated 'db' and 'passwd' connection options in MySQL backend. 
   https://github.com/django/django/pull/13447 - Fixed #32031 -- Added 
model class for each model to AdminSite.each_context(). 
   https://github.com/django/django/pull/14387 - Fixed #32717 -- Fixed 
filtering of querysets combined with the | operator. 
   https://github.com/django/django/pull/14364 - Fixed #32721 -- Fixed 
migrations crash when adding namespaced spatial indexes on PostGIS. 
   https://github.com/django/django/pull/14382 - Fixed #32734 -- Fixed 
validation of startapp's directory with trailing slash. 

*Authored: *
   https://github.com/django/django/pull/14372 - Fixed #32718 -- Relaxed 
file name validation in FileField. 
   https://github.com/django/django/pull/14384 - Refs #32718 -- Corrected 
CVE-2021-31542 release notes.

Best,
Mariusz

>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8712acbf-356a-46f7-9134-29795b8366bdn%40googlegroups.com.


Re: Do people actually squash migrations?

2021-05-17 Thread 'Mike Lissner' via Django developers (Contributions to Django itself)
Thanks for those links. I went ahead and filed a PR that describes a new
"Migration Trimming" process. I'd love comments and suggestions if folks
are interested and able:

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

Mike

On Mon, May 17, 2021 at 8:27 AM René Fleschenberg 
wrote:

> Hi,
>
> I agree that it would be good to extend the docs and to describe how to
> reset a project's migrations. Some prior art on this:
>
> https://geekchick77.dreamwidth.org/5560.html
>
>
> https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html
>
>
> Regards,
> René
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-developers/xpeFRpMTBZw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/9d103a6d-1301-1a37-ef35-29b6f1521f51%40fleschenberg.net
> .
>


-- 
Mike Lissner
Executive Director
Free Law Project
https://free.law

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAKs1xOF%3DnfPaHmRfoQJ5pXrJ1SGejke8SH1k5Rm6CLmU6v3mvA%40mail.gmail.com.