Re: [Django] #35371: False positive in JS module aggregation export regex when an export declaration precedes an import declaration

16 views
Skip to first unread message

Django

unread,
Sep 23, 2024, 12:19:41 PM9/23/24
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: Calvin Vu
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
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 Calvin Vu):

* cc: Calvin Vu (added)
* owner: nobody => Calvin Vu
* status: new => assigned

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

Django

unread,
Oct 3, 2024, 2:21:25 PM10/3/24
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: Calvin Vu
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
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
-------------------------------------+-------------------------------------
Comment (by Calvin Vu):

An observation: the extra line you add at the beginning of {{{module.js}}}
doesn't even have to be a proper export, if you add even {{{//export}}}
before the imports then it raises the same ValueError
--
Ticket URL: <https://code.djangoproject.com/ticket/35371#comment:5>

Django

unread,
Oct 12, 2024, 2:38:15 PM10/12/24
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: Calvin Vu
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
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 Calvin Vu):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35371#comment:6>

Django

unread,
Oct 24, 2024, 5:21:24 AM10/24/24
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: Calvin Vu
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35371#comment:7>

Django

unread,
Jul 25, 2025, 7:15:00 AM7/25/25
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: Calvin Vu
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by blighj):

This package I've been working on and hoping to get feedback on, takes
care of this ticket as it is no longer using regex's to parse
import/export statements ​https://github.com/blighj/django-
manifeststaticfiles-enhanced
--
Ticket URL: <https://code.djangoproject.com/ticket/35371#comment:8>

Django

unread,
Aug 18, 2025, 2:18:34 PM8/18/25
to django-...@googlegroups.com
#35371: False positive in JS module aggregation export regex when an export
declaration precedes an import declaration
-------------------------------------+------------------------------------
Reporter: Michael | Owner: blighj
Type: Bug | Status: assigned
Component: contrib.staticfiles | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by blighj):

* owner: Calvin Vu => blighj

Comment:

https://github.com/django/django/pull/19561 Will solve this ticket too.
This ticket can be closed if that is approved
--
Ticket URL: <https://code.djangoproject.com/ticket/35371#comment:9>
Reply all
Reply to author
Forward
0 new messages