Opened 8 years ago
Closed 3 years ago
#28135 closed Cleanup/optimization (fixed)
simplify_regex() doesn't handle non-capturing groups
Reported by: | German M. Bravo | Owned by: | Ayush Joshi |
---|---|---|---|
Component: | contrib.admindocs | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
While using Django REST Framework's Schema generator, I found out they're using simplify_regex()
; however, current version has a few shortcomings, namely non-capturing groups are broken.
Change History (21)
comment:1 by , 8 years ago
Component: | Uncategorized → contrib.admindocs |
---|---|
Has patch: | set |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 8 years ago
Patch needs improvement: | set |
---|
comment:3 by , 4 years ago
Easy pickings: | set |
---|
comment:5 by , 4 years ago
Has patch: | unset |
---|---|
Patch needs improvement: | unset |
comment:6 by , 3 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:7 by , 3 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
I have opened a pull request that allows simplify_regex()
to handle non-capturing groups and additional tests for them in test_simplify_regex()
.
comment:8 by , 3 years ago
Description: | modified (diff) |
---|
comment:9 by , 3 years ago
Patch needs improvement: | set |
---|
comment:10 by , 3 years ago
Owner: | changed from | to
---|
comment:11 by , 3 years ago
I've submitted a patch here https://github.com/django/django/pull/15256.
follow-up: 13 comment:12 by , 3 years ago
Patch needs improvement: | unset |
---|
You need to uncheck "Patch needs improvement" so the ticket appears in the review queue. Please don't use mass @ mentions on the PR to request a review.
comment:13 by , 3 years ago
Replying to Tim Graham:
You need to uncheck "Patch needs improvement" so the ticket appears in the review queue. Please don't use mass @ mentions on the PR to request a review.
Sorry, Felisiak never came so I have to ask someone else lol
follow-up: 15 comment:14 by , 3 years ago
Patch needs improvement: | set |
---|
comment:15 by , 3 years ago
Patch needs improvement: | unset |
---|
Replying to Mariusz Felisiak:
Okay I updated that PR to only include feature, I'll create new PR for code refactor :thumbsup:.
comment:17 by , 3 years ago
Has patch: | unset |
---|
comment:19 by , 3 years ago
Has patch: | set |
---|
comment:20 by , 3 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
I left comments for improvement on the PR. Please uncheck "Patch needs improvement" after updating.