datatracker/ietf
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
..
api feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
bin feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
community feat: replace references to User with references to Person (#6024) 2024-01-24 11:00:19 -06:00
cookies chore: remove unnecessary .gitignore files (#6262) 2023-08-31 17:12:01 -05:00
database-notes chore: remove unnecessary .gitignore files (#6262) 2023-08-31 17:12:01 -05:00
dbtemplate chore: Add type annotations to satisfy linter (#5435) 2023-03-29 09:06:14 +09:00
doc feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
group feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
help chore: remove unused view (#6304) 2023-09-14 17:10:26 -05:00
idindex feat: celery tasks to replace ietf/bin scripts (#6971) 2024-01-31 15:24:20 -06:00
iesg chore: merge main and fix new views 2023-11-16 15:58:22 -06:00
ietfauth chore: clean away unused views/tests related to the Allowlisted model (#7027) 2024-02-06 09:39:09 -06:00
ipr test: unpin django-stubs and update mypy (#6901) 2024-01-10 09:53:43 -06:00
liaisons test: unpin django-stubs and update mypy (#6901) 2024-01-10 09:53:43 -06:00
mailinglists chore: clean away unused views/tests related to the Allowlisted model (#7027) 2024-02-06 09:39:09 -06:00
mailtrigger test: unpin django-stubs and update mypy (#6901) 2024-01-10 09:53:43 -06:00
meeting chore: remove unused code (#6963) 2024-01-23 18:24:25 -06:00
message chore: add task tests; move message task to message app (#6964) 2024-01-24 08:53:42 -06:00
name test: unpin django-stubs and update mypy (#6901) 2024-01-10 09:53:43 -06:00
nomcom feat: replace references to User with references to Person (#6024) 2024-01-24 11:00:19 -06:00
person feat: replace references to User with references to Person (#6024) 2024-01-24 11:00:19 -06:00
redirects chore: remove unnecessary .gitignore files (#6262) 2023-08-31 17:12:01 -05:00
release feat: reflect breaking change in internal release description (#3826) 2022-04-14 15:04:09 -05:00
review chore: add task tests; move message task to message app (#6964) 2024-01-24 08:53:42 -06:00
secr fix: Replace joint session field with instructions (#6997) 2024-01-30 14:34:09 -06:00
static fix: Adjust dark theme to make range slider more visible (#6885) 2024-01-05 07:47:39 -06:00
stats chore: add task tests; move message task to message app (#6964) 2024-01-24 08:53:42 -06:00
submit chore: merge branch 'main' into feat/rfc 2023-12-05 09:12:11 -06:00
sync feat: celery tasks to replace ietf/bin scripts (#6971) 2024-01-31 15:24:20 -06:00
templates chore: clean away unused views/tests related to the Allowlisted model (#7027) 2024-02-06 09:39:09 -06:00
utils feat: API to replace email alias generation commands (#7012) 2024-02-07 10:15:50 -06:00
.gitignore chore: update .gitignore 2023-06-05 18:10:50 -04:00
.yarnrc Preliminary work on converting bower management of web resources to yarn. New management command, replacing bower_install will be needed. 2019-07-25 20:28:18 +00:00
__init__.py feat!: Version 11 based on Django 4 2023-05-23 11:25:28 -05:00
celeryapp.py feat: Scout monitoring for celery workers (#6342) 2023-09-21 14:43:19 -05:00
checks.py refactor: use statics.ietf.org for all statics 2024-01-18 16:51:09 -06:00
context_processors.py feat: Improve links to meeting tools from group pages (#5130) 2023-02-11 10:00:30 -06:00
feed_urls.py Changed urlpattern order to list the more specific of overlapping patterns first, and made the rfc feed per year pattern more permissive. 2017-12-04 16:32:58 +00:00
LICENSE
manage.py Moved warnings settings from manage.py and test_runner.py to one single place, settings.py. Decreased the verbosity level when invoking 'loaddata' from the test runner. 2016-12-15 13:25:20 +00:00
middleware.py Updated a middleware function to use the correct Py3 idiom to access exception arguments. 2020-09-21 12:39:00 +00:00
settings.py fix: restore explicit STATIC_ROOT (#6970) 2024-01-25 17:03:36 -06:00
settings_test.py chore: merge main and fix conflicts 2023-08-30 16:35:20 -05:00
settings_testcrawl.py chore: improve ALLOWED_HOSTS in settings (ports are not useful there) (#4232) 2022-07-20 15:16:14 -05:00
urls.py feat: iab workshops (#6684) 2023-11-27 08:09:30 -06:00
virtualenv-manage.py More Py2/3 adaptations fetched from production. 2020-02-23 16:27:30 +00:00
wsgi.py Update internal references to trac.tools.ietf.org to point to trac.ietf.org. Remove several links into tools.ietf.org. Commit ready for merge. 2021-10-13 21:43:44 +00:00