[Django] #30396: Add a system check for uniqueness of partial indexes and check constraints names.

8 views
Skip to first unread message

Django

unread,
Apr 24, 2019, 5:30:09 AM4/24/19
to django-...@googlegroups.com
#30396: Add a system check for uniqueness of partial indexes and check constraints
names.
------------------------------------------------+------------------------
Reporter: felixxm | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (System checks) | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
`name` is a mandatory field for check constraints and partial indexes that
must be unique in the database scope. We should add a system check for
uniqueness of names.

Based on discussion in #30362.

--
Ticket URL: <https://code.djangoproject.com/ticket/30396>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 24, 2019, 6:42:57 AM4/24/19
to django-...@googlegroups.com
#30396: Add a system check for uniqueness of partial indexes and constraints names.
--------------------------------------+------------------------------------

Reporter: felixxm | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (System checks) | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Description changed by felixxm:

Old description:

> `name` is a mandatory field for check constraints and partial indexes
> that must be unique in the database scope. We should add a system check
> for uniqueness of names.
>
> Based on discussion in #30362.

New description:

`name` is a mandatory field for constraints (check and unique) and partial


indexes that must be unique in the database scope. We should add a system
check for uniqueness of names.

Based on discussion in #30362.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/30396#comment:1>

Django

unread,
Apr 24, 2019, 9:26:11 AM4/24/19
to django-...@googlegroups.com
#30396: Add a system check for uniqueness of partial indexes and constraints names.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: Can
Type: | Sarıgöl
Cleanup/optimization | Status: assigned
Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Can Sarıgöl):

* owner: nobody => Can Sarıgöl
* status: new => assigned


Comment:

[https://github.com/django/django/pull/11278 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/30396#comment:2>

Django

unread,
Apr 25, 2019, 5:07:34 AM4/25/19
to django-...@googlegroups.com
#30396: Add a system check for uniqueness of partial indexes and constraints names.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: Can
Type: | Sarıgöl
Cleanup/optimization | Status: assigned
Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Can Sarıgöl):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/30396#comment:3>

Django

unread,
May 2, 2019, 3:34:04 AM5/2/19
to django-...@googlegroups.com
#30396: Add a system check for uniqueness of partial indexes and constraints names.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: Can
Type: | Sarıgöl
Cleanup/optimization | Status: closed

Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"bceadd2788dc2dad53eba0caae172bd8522fd483" bceadd27]:
{{{
#!CommitTicketReference repository=""
revision="bceadd2788dc2dad53eba0caae172bd8522fd483"
Fixed #30396 -- Added system checks for uniqueness of indexes and
constraints names.

Co-Authored-By: Mariusz Felisiak <felisiak...@gmail.com>
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30396#comment:4>

Reply all
Reply to author
Forward
0 new messages