Commit graph

15016 commits

Author SHA1 Message Date
Jennifer Richards 828071a582
chore: Unpin oidc-provider, update its patch 2023-05-12 17:09:32 -03:00
Jennifer Richards 87fdfaa713
chore: Update django-tastypie requirement 2023-05-12 17:09:32 -03:00
Jennifer Richards aa4c04126c
chore: Use re_path() instead of url(), its deprecated synonym, 2023-05-12 17:09:32 -03:00
Jennifer Richards 00118f7807
chore: Update requirements.txt for Django 3.2 2023-05-12 17:09:31 -03:00
Jennifer Richards 2f6da9ee3b
Merge pull request #5612 from jennifer-richards/django31
chore: Upgrade to Django 3.1
2023-05-12 17:07:39 -03:00
Jennifer Richards d0cb46d320
fix: Use TruncDate instead of QuerySet.extra() 2023-05-12 15:47:37 -03:00
Jennifer Richards addc967134
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-12 15:47:37 -03:00
Jennifer Richards ccb7d666ce
chore: Remove add-django-http-cookie-value-none.patch
Fixed upstream
2023-05-12 15:47:37 -03:00
Jennifer Richards c4f99d0b1d
chore: Update django-stubs and mypy requirements for Django 3.1 2023-05-12 15:47:36 -03:00
Jennifer Richards b2534fdf32
chore: Update requirements.txt for Django 3.1 2023-05-12 15:47:36 -03:00
Jennifer Richards 1419a0e7c8
test: Remove ScheduleEditTests.testUnschedule (#5607)
* test: Remove ScheduleEditTests.testUnschedule

Has been disabled under Django 2. Simple refactoring does not make it
functional under Django 3. Probably because we know that Selenium does
not handle HTML5 drag-and-drop well. Discarding until we move to a
better JS testing framework.

* test: Remove unused imports
2023-05-12 13:18:15 -03:00
Jennifer Richards 96396b833c
Merge pull request #5611 from ietf-tools/main
chore: merge main into feat/django4
2023-05-12 11:05:57 -03:00
Robert Sparks 6b4115a52b
test: ignore irrelevant difference in list element order (#5609) 2023-05-12 09:03:13 -05:00
Robert Sparks 1afdb0b7cc
fix: show htmlized views of draft revisions without DocHistory (#5599)
* fix: show htmlized views of draft revisions without DocHistory

* fix: handle htmlized views of rfcs corectly
2023-05-11 17:15:01 -05:00
Nicolas Giard 2590ab226c
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 16:35:27 -04:00
Nicolas Giard 94fad6edd4
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 16:20:40 -04:00
Nicolas Giard 7a801c3c75
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 16:13:32 -04:00
Nicolas Giard 6fe0c513d2
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 15:44:45 -04:00
Nicolas Giard a3459b438d
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 15:36:50 -04:00
Nicolas Giard 1ed87475d3
ci: build workflow - deploy to legacy sandbox (wip) 2023-05-11 15:15:20 -04:00
Nicolas Giard 492309b9fe
ci: fix skip tests build workflow (take 4) 2023-05-11 14:38:42 -04:00
Nicolas Giard 19ddfd6397
ci: fix skip tests build workflow (take 3) 2023-05-11 14:33:48 -04:00
Nicolas Giard b767733f89
ci: fix skip tests build workflow (take 2) 2023-05-11 14:18:11 -04:00
Nicolas Giard 02f3606c00
ci: fix skip tests build workflow 2023-05-11 14:12:42 -04:00
Robert Sparks bb9ef65bd7
ci: merge from main for next release (#5605)
* feat: Easy extraction of qualified volunteer list for nomcom chair (#5578)

* feat: Easy extraction of qualified volunteer list for nomcom chair

* fix: tune test setup to years where eligibility calculations can return nonempty

* chore: revert unintended change

* feat: default string when no affiliation is provided

* chore: pin django-oidc-provider (#5588)

* fix: add a link to the simplified volunteer view (#5583)

* chore: add bibxml-ids dir to container build. (#5590)

* chore: add bibxml-ids dir to container build. (#5590)

* feat: Process uploaded submissions asynchronously (#5580)

* fix: Use relative URL for submission status link

* refactor: Refactor/rename process_uploaded_submission async task

* feat: Add async task to process but not accept a submission

* feat: Replace upload_submission() with an async implementation (WIP)

* fix: Do not put Submission in "uploaded" state if an error occured

* refactor: Improve text/XML draft processing flow

* feat: Extract authors from text in async processing

* fix: Fix call signatures and abort submission on failed validation

* feat: Validate submission name format

* fix: Correctly validate emails from text submission

* fix: Clean up submission validation

* fix: Better display errors on upload_submission page

* feat: Reload submission status page when awaiting validation

* test: Fix call signatures; remove unused imports

* chore: Add type hint

* test: Update tests to match renamed task

* fix: Fix typo in error message

* test: Fix failing Api- and AsyncSubmissionTests

* Rename process_uploaded_submission to process_and_accept_...
* Remove outdated tests

Does not yet test new behavior.

* refactor: Break up submission_file() helper

* test: Refactor tests to run the async processing (wip)

* test: Drop test of bad PDF submission

The PDF submission field was removed, so no need to test it.

* test: Update more tests

* test: Bring back create_and_post_submission() and fix more tests

* fix: Drop to manual, don't cancel, on revision inconsistency

Fixes remaining failing SubmitTest tests

* style: Restyle upload_submission() with black

* test: Verify that async submission processing is invoked on upload

* test: Bring back old do_submission and fix tests

Properly separating the upload and async processing stages of submission
is a bigger refactoring than will fit right now. This better exercises
the submission pipeline.

* fix: Accept only XML for API submissions

* test: Test submission processing utilities

* feat: Improve status display for "validating" submissions

* chore: Remove obsolete code

* test: Update test to match amended text

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>

* chore(deps): update all Yarn dependencies (#5564)

* chore(deps): update all Yarn dependencies

* chore: fix yarn cache

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: NGPixel <github@ngpixel.com>

* chore(deps): update all npm dependencies for dev/deploy-to-container (#5587)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* chore: Remove mysqlclient dependency (#5589)

* fix: close open things (#5593)

* fix: close open things

* fix: clean up test created files

* fix: remove one close too many

* chore: add git safe directory to docker init script

* chore: move git safe directory command to top

* chore: remove debugging file write from test (#5598)

---------

Co-authored-by: NGPixel <github@ngpixel.com>
Co-authored-by: Jennifer Richards <jennifer@staff.ietf.org>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-05-11 12:45:40 -05:00
Jennifer Richards f8a9efc5a4
ci: run tests on feat/django4 PRs (#5604) 2023-05-11 12:39:12 -03:00
Jennifer Richards 264ff60cd2
Merge pull request #5601 from jennifer-richards/django4
chore: Upgrade to Django 3.0
2023-05-11 11:04:36 -04:00
Robert Sparks 6089d4726c
chore: remove debugging file write from test (#5598) 2023-05-11 09:37:02 -05:00
Jennifer Richards 477a2decb5
chore: Merge main into feat/django4 2023-05-10 18:28:04 -04:00
Jennifer Richards 0d070597b4
style: Double backslashes in strings
Not sure why, but if I change the DeprecationWarning filter to
"error", I get a SyntaxError from the \[ because it is an invalid
escape sequence. Not sure why that change triggers it, but
"\[" and "\\[" are the same, so this is a no-op.
2023-05-10 19:21:47 -03:00
Jennifer Richards eee145ee67
fix: Explicitly order GroupTypeNames in active_group_types
Relying on Meta.ordering to order querysets involving GROUP BY queries
is deprecated and will be dropped in Django 3.1.
2023-05-10 19:19:39 -03:00
Jennifer Richards 406ba7bf0b
style: Apply Black style to active_group_types() view 2023-05-10 19:18:30 -03:00
Jennifer Richards e6259a5218
chore: Remove filter on staticfiles DeprecationWarning 2023-05-10 18:52:52 -03:00
Jennifer Richards 1015cf83f8
fix: Finish refactoring LiaisonModelForm subclasses without BetterModelForm 2023-05-10 18:47:36 -03:00
Jennifer Richards 4f443cc445
refactor: Explicitly allow name=None for a couple of views 2023-05-10 17:16:20 -03:00
Jennifer Richards 163479bc06
refactor: Replace obsolete staticfiles template lib with static 2023-05-10 17:12:34 -03:00
Jennifer Richards 85d0934ba0
refactor: Refactor LiaisonForm without BetterModelForm 2023-05-10 17:03:31 -03:00
Jennifer Richards a75dbd4f40
chore: Remove accidentally reverted removal of form_utils app 2023-05-10 16:50:42 -03:00
Jennifer Richards 21ac8c067d
chore: Fix cookie-delete patch to work with Django 3.0 2023-05-10 16:50:11 -03:00
Nicolas Giard 2163a01adc
chore: move git safe directory command to top 2023-05-10 15:40:22 -04:00
Nicolas Giard 871afb1b86
chore: add git safe directory to docker init script 2023-05-10 15:20:48 -04:00
Jennifer Richards 57026bbb5f
Revert "chore: Remove django-cookie-delete-with-all-settings.patch"
This reverts commit 2cf2a3dee6.
2023-05-10 15:55:25 -03:00
Jennifer Richards 69eb6340fd
test: Do not misuse django.conf.settings for HTML validation params 2023-05-10 15:41:36 -03:00
Robert Sparks f8113cb862
fix: close open things (#5593)
* fix: close open things

* fix: clean up test created files

* fix: remove one close too many
2023-05-10 11:19:34 -05:00
Jennifer Richards ed571ae50b
chore: Rename DB engine to drop the deprecated "_psycopg2" suffix 2023-05-10 12:40:37 -03:00
Jennifer Richards 9fa54270e6
chore: Remove mysqlclient dependency (#5589) 2023-05-09 15:24:17 -05:00
depfu[bot] c53d7836ed
chore(deps): update all npm dependencies for dev/deploy-to-container (#5587)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-05-09 15:23:33 -05:00
depfu[bot] 5b091a0558
chore(deps): update all Yarn dependencies (#5564)
* chore(deps): update all Yarn dependencies

* chore: fix yarn cache

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: NGPixel <github@ngpixel.com>
2023-05-09 15:23:14 -05:00
Jennifer Richards a0f6cdb661
feat: Process uploaded submissions asynchronously (#5580)
* fix: Use relative URL for submission status link

* refactor: Refactor/rename process_uploaded_submission async task

* feat: Add async task to process but not accept a submission

* feat: Replace upload_submission() with an async implementation (WIP)

* fix: Do not put Submission in "uploaded" state if an error occured

* refactor: Improve text/XML draft processing flow

* feat: Extract authors from text in async processing

* fix: Fix call signatures and abort submission on failed validation

* feat: Validate submission name format

* fix: Correctly validate emails from text submission

* fix: Clean up submission validation

* fix: Better display errors on upload_submission page

* feat: Reload submission status page when awaiting validation

* test: Fix call signatures; remove unused imports

* chore: Add type hint

* test: Update tests to match renamed task

* fix: Fix typo in error message

* test: Fix failing Api- and AsyncSubmissionTests

* Rename process_uploaded_submission to process_and_accept_...
* Remove outdated tests

Does not yet test new behavior.

* refactor: Break up submission_file() helper

* test: Refactor tests to run the async processing (wip)

* test: Drop test of bad PDF submission

The PDF submission field was removed, so no need to test it.

* test: Update more tests

* test: Bring back create_and_post_submission() and fix more tests

* fix: Drop to manual, don't cancel, on revision inconsistency

Fixes remaining failing SubmitTest tests

* style: Restyle upload_submission() with black

* test: Verify that async submission processing is invoked on upload

* test: Bring back old do_submission and fix tests

Properly separating the upload and async processing stages of submission
is a bigger refactoring than will fit right now. This better exercises
the submission pipeline.

* fix: Accept only XML for API submissions

* test: Test submission processing utilities

* feat: Improve status display for "validating" submissions

* chore: Remove obsolete code

* test: Update test to match amended text

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2023-05-09 15:21:46 -05:00
Jennifer Richards 31fd43184c
chore: Tweak add-django-http-cookie-value-none.patch for Django 3.0 2023-05-09 15:39:12 -03:00