datatracker/ietf/bin
Jennifer Richards fa56223939
feat: API to replace email alias generation commands (#7012)
* feat: DraftAliasGenerator class

Encapsulates logic from generate_draft_aliases.py

* refactor: Avoid circular imports

* feat: Add draft_aliases API endpoint

* feat: Add @requires_api_token decorator

Stolen from feat/rpc-api

* feat: Add token auth to draft_aliases endpoint

* feat: draft-aliases-from-json.py script

Parses output from the draft_aliases API call

* chore: Remove unused cruft

* refactor: Avoid shadowing "draft" name

* fix: Suppress empty lists from DraftAliasGenerator

* refactor: Use a GET instead of POST

* feat: GroupAliasGenerator class

* feat: group aliases API view

* fix: Handle domains array correctly

* fix: Suppress empty group aliases

* refactor: Generalize aliases-from-json.py script

* refactor: Same output fmt for draft and group alias apis

* feat: Sort addresses for stability

* fix: Add "anything" virtual alias

* test: Test requires_api_token decorator

* feat: Harden is_valid_token against misconfig

* test: Test is_valid_token

* test: Test draft_aliases view

* test: Test group_aliases view

* test: Test DraftAliasGenerator

* fix: ise group is type "ise" in test data

* test: Fix logic in testManagementCommand

The test was incorrect - and fails when fixed. :-(

* test: Test GroupAliasGenerator

Test currently fails

* fix: Suppress empty -ads alias

* test: Fix group acronym copy/paste error

I *think* this must be what had been intended. The
code does not look like it ever dealt with GroupHistory,
so I'm pretty sure it wasn't meant to have the same
acronym used by two different Groups at different
times.

* test: Check draft .notify alias generation

* test: Cover get_draft_notify_emails()
2024-02-07 10:15:50 -06:00
..
aliases-from-json.py feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
expire-ids fix: use tzaware today while expiring drafts (#4759) 2022-11-15 10:02:31 -06:00
expire-last-calls Ran scripts invoked from bin/hourly and bin/daily through pyflakes3 and test invocation, and tweaked the code (with an added comment) to consistently require virtualenv to be set up before script invocation. 2020-01-30 22:19:42 +00:00
expire-submissions Updated scripts in ietf/bin/ to look in env/bin/ for the virtualenv activation script. 2016-12-16 17:50:04 +00:00
iana-changes-updates refactor: accept tz name in timezone util methods and refactor iana-changes-updates script (#4444) 2022-09-13 13:16:36 -03:00
iana-protocols-updates fix: supply tzinfo to datetime in iana-protocols-updates script (#4753) 2022-11-14 14:51:24 -06:00
iana-review-email Updated scripts in ietf/bin/ to look in env/bin/ for the virtualenv activation script. 2016-12-16 17:50:04 +00:00
merge-person-records chore: remove unneeded logging and code marked unreachable that has not been reached. (#4305) 2022-08-04 11:25:31 -05:00
notify-expirations Updated scripts in ietf/bin/ to look in env/bin/ for the virtualenv activation script. 2016-12-16 17:50:04 +00:00
rfc-editor-index-updates fix: Label draft change log with rfc number (#6659) 2023-11-17 15:49:34 -04:00
rfc-editor-queue-updates Add timeouts to requests library calls. Fixes #3498. Commit ready for merge. 2022-01-13 15:06:28 +00:00
send-review-reminders fix: handle timezones in a bunch of places 2022-09-23 16:11:49 -03:00
send-scheduled-mail refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00