Commit graph

12717 commits

Author SHA1 Message Date
Matthew Holloway db7d3074da
feat: Add session recordings (#8218)
* feat: add session recordings

* feat: add session recordings

* feat: deleting recordings

* feat: deleting recordings and initial form values

* feat: use meeting date rather than today for initial title field. Fix delete recording

* feat: confirm delete recordings modal. fix server utils delete recording

* fix: removing debug console.log

* feat: change button name from 'Ok' to 'Delete' for confirm deletion to be clearer

* feat: UTC time in string and delete modal text

* fix: django html validation tests

* fix: django html validation tests

* fix: django html validation tests

* refactor: Work with SessionPresentations

* fix: better ordering

* chore: drop rev, hide table when empty

* test: test delete_recordings method

* fix: debug delete_recordings

* test: test add_session_recordings view

* fix: better permissions handling

* fix: only delete recordings for selected session

* refactor: inline script -> js module

* chore: remove accidental import

*shakes fist at pycharm*

* fix: consistent timestamp format

plus slight rephrase

* style: Black

* chore: remove comment

* test: update test to match

* fix: reversible url pattern for materials

Tests were perturbed in a way that led to a test
getting an interim instead of an IETF meeting.
This exposed a bug reversing the URL for the
materials_document() view. This splits it into
two patterns that are equivalent to the original.

---------

Co-authored-by: Jennifer Richards <jennifer@staff.ietf.org>
2025-01-31 10:28:39 -06:00
Jennifer Richards da858725fd
fix: guard against KeyError (#8485) 2025-01-30 10:21:15 -06:00
Jennifer Richards d3bf0a37dc
refactor: don't template inside <script> (#8480) 2025-01-29 13:11:12 -06:00
Jennifer Richards e91bda7e5e
feat: consolidate HTML sanitizing (#8471)
* refactor: isolate bleach code

* refactor: move html fns to html.py

* refactor: lose the bleach.py module; refactor

* refactor: sanitize_document -> clean_html

Drops <meta charset="utf-8"> addition after cleaning.

* fix: disambiguate import

* feat: restore <meta charset="utf-8"> tag

* chore: comments

* chore(deps): drop lxml_html_clean package

* refactor: on second thought, no meta charset

* refactor: sanitize_fragment -> clean_html

* test: remove check for charset

* chore: fix lint
2025-01-28 11:28:19 -06:00
Robert Sparks 56f723a3bc
chore: remove unreachable code (#8465) 2025-01-25 15:05:01 -06:00
Robert Sparks ac88f73439
chore: remove unreachable code (#8464) 2025-01-24 10:30:02 -06:00
Jennifer Richards d202ebbb91
refactor: single def of dict structure (#8460) 2025-01-22 13:07:06 -06:00
Jennifer Richards 266d5bed3c
feat: cache file investigation results (#8459)
* feat: cache result of investigate_fragment

* test: test caching
2025-01-22 12:19:21 -06:00
Jennifer Richards 9a72cc0d6a
fix: increase investigate time; more feedback (#8457) 2025-01-22 11:52:09 -06:00
Robert Sparks 233e23f40a
fix: correct ftp dir path (#8433) 2025-01-21 10:19:15 -06:00
Jennifer Richards ba1ba6c625
test: fix test_api_upload_bluesheet (#8446)
* test: fix test_api_upload_bluesheet

* chore: delint
2025-01-21 10:17:41 -06:00
Jennifer Richards 3ec94225e3
chore: remove deprecated_api_upload_bluesheet method (#8443)
* chore: remove deprecated_api_upload_bluesheet()

* test: remove test of removed method
2025-01-21 08:59:40 -06:00
Jennifer Richards 65a96948dc
fix: map "Editorial" -> StreamName (#8442) 2025-01-20 11:59:18 -04:00
Jennifer Richards c848a5a00b
feat: async investigate_fragment task; celery results backend (#8428)
* feat: investigate docs asynchronously

* refactor: move script to its own js file

* fix: adjust polling interval/duration

* test: test new task

* fix: extra tag/fix whitespace

* style: restore whitespace (I hope)

* style: black/standard styling

* test: fix test of investigate view

* test: improve/delint tests
2025-01-17 09:16:15 -06:00
Robert Sparks 1ffd205ef0
fix: rsync to the correct dest (#8421) 2025-01-14 08:48:55 -06:00
Jennifer Richards e1af5e7049
chore: remove dumprelated.py and loadrelated.py (#8412)
* fix: correctly disconnect post_save signal

* chore: remove dumprelated.py and loadrelated.py

These have not been used in quite some time and would need
a careful review before trusting. Taking them out to avoid
accidents.
2025-01-10 17:02:47 -06:00
Robert Sparks e5c4a9f298
feat: additional filesystem monitoring (#8405)
* feat: additional filesystem monitoring

* chore: rename setting for tmp directory

* fix: restructure path to new endpoint

---------

Co-authored-by: Jennifer Richards <jennifer@staff.ietf.org>
2025-01-09 13:07:51 -06:00
Robert Sparks 7d464fcc55
fix: keep the ftp dir in sync when the datatracker creates artifacts (#8401)
* chore: fix typo in log message

* fix: write new conflict reviews to the ftp directory

* fix: log exception description

* chore: avoid reusing a name for mypy

* fix: write non-meeting-related slides to ftp/slides

* fix: write status changes to ftp dir

* fix: copy draft yang modules to the ftp dir

the last commit above (see #8401) has no tests :(. There aren't tests of this yang scaffolding to add to. Adding a set of tests should be an independent larger effort.
2025-01-09 11:23:20 -06:00
Robert Sparks 8b7fa1199a
chore: remove single-use repair_dead_on_expire task (#8348)
* chore: remove single-use repair_dead_on_expire task

* fix: remove repair_dead_on_expire

* chore: remove abandoned imports
2024-12-20 08:53:12 -06:00
Robert Sparks d25af5e71b
fix: clean ftp copy of repository when cleaning repository (#8354) 2024-12-19 18:01:33 -06:00
Robert Sparks fdd378390f
feat: copy the 1wg files to so... many... places... (#8347) 2024-12-19 12:06:38 -06:00
Jennifer Richards 427045d456
chore: remove unused method (#8341)
* chore: remove unused method

* chore: adjust another comment
2024-12-17 13:09:44 -06:00
Nicolas Giard 171e50b1cd
fix: homepage logo width (#8338)
* fix: homepage logo width

* fix: make Robert happy
2024-12-17 10:08:35 -06:00
Nicolas Giard 4a1d29e86c
feat: add wiki button to agenda list for hackathon sessions (#8133)
* feat: add wiki button to agenda list for hackathon sessions

* fix: update client/agenda/AgendaScheduleList.vue

Co-authored-by: Matthew Holloway <matthew@holloway.co.nz>

* fix: broken tests

---------

Co-authored-by: Matthew Holloway <matthew@holloway.co.nz>
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2024-12-16 08:51:33 -06:00
Robert Sparks d59e102c9f
fix: cleanup ftp copy of repository on move to archive (#8335) 2024-12-13 15:17:01 -06:00
Robert Sparks 981f7aea3e
chore: remove unused setting (#8336) 2024-12-13 15:14:13 -06:00
Robert Sparks c747e97201
fix: keep draft-iesg state on expiration. Update action holders. (#8321)
* fix: keep draft-iesg state on expiration. Update action holders

* feat: task to repair docs in dead because expiry

* fix: restore all to-date flows through update_action_holders

* fix: Fetch the System user following more regular conventions

* fix: better signal test
2024-12-13 11:48:19 -06:00
Jennifer Richards 70ab711216
refactor: separate concerns / rename notify_events (#8328)
* refactor: separate signal receiver from work

* test: split test to match code structure

* test: fix test

* refactor: reorg signals in community app
2024-12-12 16:48:44 -06:00
Jennifer Richards 9b372a31b4
chore: update import for python-json-logger (#8330)
The "jsonlogger" module became "json" in 3.1.0
2024-12-12 11:40:49 -06:00
Jennifer Richards 6f1c308ab3
chore: drop unused cf-connecting-ipv6 header (#8319)
Only used in certain configurations of Pseudo IPv4.
2024-12-09 12:56:09 -06:00
Robert Sparks 3055d17eb1
fix: remove unreliable statistics (#8307) 2024-12-09 10:33:03 -06:00
Jennifer Richards 167752ba76
feat: log ASN (#8309)
* feat: log ip_src_asnum in nginx

* feat: log asn from gunicorn
2024-12-06 11:17:55 -06:00
Greg Wood 64c5ef16bd
fix: clarify replace wording (#8244)
* Clarify "Replace" in I-D submission form

Update help text In the "Replacement Information" section of
the "Status" tab

* refactor: update node, eslint, neostandard + fix esm (#8083)

* chore: update dependencies

* fix: eslint + neostandard

* fix: add corepack prompt env var to init script

* docs: Update README.md

---------

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

* ci: update base image target version to 20241114T1703

* ci: fix tests.yml workflow

* fix: clarify "Replace" in I-D submission form #8205

update quote syntax issue on previous update help text In the "Replacement Information" section of the "Status" tab to fix #8059

* Revert "refactor: update node, eslint, neostandard + fix esm (#8083)"

This reverts commit 649879efd745470f6e0cc6768d889f45640e1505.

* Revert "ci: update base image target version to 20241114T1703"

This reverts commit f11144017ed788bc7a38a1d028127434f0d50eb4.

* Revert "ci: fix tests.yml workflow"

This reverts commit 39231321c49291565a39608b98740e098c74dda7.

* Update forms.py

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
Co-authored-by: NGPixel <NGPixel@users.noreply.github.com>
2024-12-05 08:50:07 -06:00
Robert Sparks b39b80fe1a
fix: test file existence using metadata (#8292)
* fix: test file existance using metadata

* fix: use Path more

* fix: don't read the file to see if it exists

* fix: more conservative error handling

* chore: remove unused import
2024-12-05 08:46:14 -06:00
Jennifer Richards f76137eaae
fix: disable raw/include in RST (#8300)
* fix: disable raw/include in RST

* fix: suppress warnings
2024-12-05 08:31:09 -06:00
Jennifer Richards c58490bb36
feat: django-rest-framework + Person/Email API (#8256)
* feat: django-rest-framework + Person/Email API (#8233)

* chore: djangorestframework -> requirements.txt

* chore: auth/perm/schema classes for drf

* chore: settings for drf and friends

* chore: comment that api/serializer.py is not DRF

* feat: URL router for DRF

* feat: simple api/v3/person/{id} endpoint

* fix: actually working demo endpoint

* chore: no auth for PersonViewSet

* ci: params in ci-run-tests.yml

* Revert "ci: params in ci-run-tests.yml"

This reverts commit 03808ddf94afe42b7382ddd3730959987389612b.

* feat: email addresses for person API

* feat: email update api (WIP)

* fix: working Email API endpoint

* chore: annotate address format in api schema

* chore: api adjustments

* feat: expose SpectacularAPIView

At least for now...

* chore: better schema_path_prefix

* feat: permissions for DRF API

* refactor: use permissions classes

* refactor: extract NewEmailForm validation for reuse

* refactor: ietfauth.validators module

* refactor: send new email conf req via helper

* feat: API call to issue new address request

* chore: move datatracker DRF api to /api/core/

* fix: unused import

* fix: lint

* test: drf URL names + API tests (#8248)

* refactor: better drf URL naming

* test: test person-detail view

* test: permissions

* test: add_email tests + stubs

* test: test email update

* test: test 404 vs 403

* fix: fix permissions

* test: test email partial update

* test: assert we have a nonexistent PK

* chore: disable DRF api for now

* chore: fix git inanity

* fix: lint

* test: disable tests of disabled code

* test: more lint
2024-11-27 14:54:28 -06:00
Kesara Rathnayake c18900a8e6
feat: Expose important library versions (#7713)
* feat: Expose important library versions

Update `/api/version` to include

```
"other": {
    "xml2rfc": "<version>",
    "weasyprint": "<version>"
},
```

Fixes #3415

* fix: Use importlib

* chore: Reomve additional newline

* fix: Expose libraries that are important for document submission

* fix: Rename IMPORTANT_LIBRARIES as ADVERTISE_VERSIONS
2024-11-26 21:20:24 -06:00
Jennifer Richards ff5b2e12f3
chore: fix is_authenticated logging (#8266)
"o" instead of "i" to check response headers
2024-11-22 16:54:15 -06:00
Jennifer Richards 9681d9f978
fix: revert POST for document search requests (#8263)
* Revert "fix: ensure csrf cookie for searches (#8260)"

This reverts commit 622ded5d2b.

* Revert "refactor: eliminate single-use helper (#8226)"

This reverts commit 6608c9d530.

* Revert "feat: POST for document search requests (#8206)"

This reverts commit b65a37b6e8.

* test: add back test fix

* refactor: eliminate single-use helper
2024-11-22 13:30:54 -06:00
Jennifer Richards 622ded5d2b
fix: ensure csrf cookie for searches (#8260)
Needed on views that include search_form.html in their responses.
2024-11-22 10:38:36 -06:00
Jennifer Richards 394e32e022
fix: lock session requests for new meetings (#8251)
* fix: lock session requests for new meetings

* fix: lint
2024-11-22 08:13:53 -06:00
Nicolas Giard bdf753e052
chore: set gitattributes for normalizing line endings (#8245)
* chore: add proper .gitattributes

* chore: normalize file endings

* chore: fix .gitattributes

* chore: normalize file endings (2)
2024-11-20 16:48:00 -06:00
Robert Sparks 51a76c603d
fix: removew assumption about what pks tests milestones get (#8243) 2024-11-20 11:40:23 -06:00
Robert Sparks bdf503a73b
fix: show meetecho recordings for groups with more than one session (#8238) 2024-11-19 15:06:56 -06:00
Nicolas Giard 71f52bc964
fix: move future meetings button in group meetings page to the left (#8239) 2024-11-19 14:01:20 -06:00
Robert Sparks 952bc90ee0
fix: follow replaces when building list for diff control (#8234) 2024-11-19 08:07:49 -06:00
Robert Sparks fd816c4f41
chore: remove unused activate_this code branch (#8230) 2024-11-18 13:57:33 -06:00
Robert Sparks 1d7be8c98c
chore: remove dead activate_this branches (#8228) 2024-11-18 12:48:47 -06:00
Robert Sparks 48f339194c
chore: remove unused merge-person-records (#8227) 2024-11-18 10:41:40 -06:00
Jennifer Richards 6608c9d530
refactor: eliminate single-use helper (#8226) 2024-11-18 08:53:50 -06:00