datatracker/ietf/group
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
..
management chore: remove management commands already removed in main 2023-12-05 13:14:52 -06:00
migrations fix: better archive search links for group documents (#6835) 2024-01-09 15:17:11 -06:00
templatetags fix: Return NomComs, not Groups, from active_nomcoms filter (#5726) 2023-05-31 15:05:59 -05:00
__init__.py Move new schema models from redesign/ to ietf/ 2012-01-24 17:17:24 +00:00
admin.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
factories.py Simpler fix 2023-10-02 11:43:11 +03:00
feeds.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
forms.py fix: Don't allow group chair to change group parent (#6496) 2023-11-05 12:32:03 +01:00
mails.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
milestones.py refactor: Do not use canonical_name() for charters (#5818) 2023-06-14 08:32:21 -05:00
models.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
resources.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
tests.py feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
tests_appeals.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
tests_info.py chore: merge branch 'main' into feat/rfc 2023-12-05 09:12:11 -06:00
tests_js.py chore: Replace unmaintained bootstrap-datepicker with vanillajs-datepicker (#5259) 2023-03-09 10:12:26 -06:00
tests_review.py feat: Allow review rejections to be undone (#6312) 2023-09-27 08:57:34 -05:00
urls.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
utils.py feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
views.py fix: no dups on stream documents view (#6804) 2023-12-18 10:45:51 -06:00