#31546 closed Cleanup/optimization (fixed)
Replace Command.requires_system_checks = True by something like Command.required_system_checks = '__all__'
Description ¶
Created based on Simon comment on the PR
This makes me wonder if we want to replace Command.requires_system_checks = True
by something like Command.required_system_checks = '__all__'
that can be set to an empty list to achieve required_system_checks = False
and allow subclasses that want only a subset to specify tags through it e.g. required_system_checks = ['staticfiles']
. That would prevent having do to the manual and error prone options['skip_checks'] dance
. In all cases that should be done in a different PR.
Change History (10)
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 5 years ago
Triage Stage: | Unreviewed → Accepted |
---|
follow-up: 4 comment:3 by , 5 years ago
I created a PR for start.
Should we go for deprecating the requires_system_checks = True/False
?
comment:4 by , 5 years ago
Replying to Hasan Ramezani:
I created a PR for start.
Should we go for deprecating therequires_system_checks = True/False
?
Yes.
comment:5 by , 5 years ago
Has patch: | set |
---|
comment:6 by , 5 years ago
Patch needs improvement: | set |
---|
comment:7 by , 5 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
OK, accepting based on the discussion on the PR. Thanks!