Jennifer Richards
8d12071bf5
refactor: Move cron jobs to celery tasks ( #6926 )
...
* refactor: Factor out helper from fetch_meeting_attendance.py
* feat: Define fetch_meeting_attendance_task task
Equivalent to the fetch_meeting_attendance management command
* chore: Disable fetch_meeting_attendance in bin/daily
* feat: Log errors in fetch_meeting_attendance_task
* feat: Enable a result backend for celery
Ignore results by default, but enable the backend so we
can manage tasks
* feat: Define daily task in ietf.utils.tasks
* refactor: Make bin/send-review-reminders into a task
* refactor: Make bin/send-scheduled-mail into a task
* chore: Update copyright years
* refactor: Make bin/rfc-editor-index-updates into a task
* refactor: Accept date type in rfc index update fn
* chore: Update comment
* fix: Annotate param as Optional
* fix: Revert treating skip_older_than_date as str
Misunderstood the comment, "fixed" a non-bug. Oops.
* feat: mgmt command to create periodic tasks
* feat: add summary of tasks to mgmt cmd
* style: black
* fix: Remove debug statements
* feat: Enable/disable tasks
* chore: Disable periodic tasks by default
* chore: Revert changes to daily and every15m
* fix: Call intended function
* chore: Add task descriptions
2024-01-22 12:04:16 -06:00
Jennifer Richards
cbe710d3fd
fix: Migrate and handle subseries IprDocRels ( #6745 )
...
* chore: Stash orig IprDocRel document alias
* chore: Point IprDocRel at subseries docs
* fix: Fix IprDocRel.document usage in templates
* fix: Handle subseries in IprDocRel.formatted_name()
* refactor: Better presentation of IprDocRel subseries
* fix: Allow blank originaldocumentaliasname
2023-12-07 15:40:18 -04:00
Jennifer Richards
ab3864e07a
refactor: Minor clean up of rfc index sync ( #6661 )
...
* chore: Remove commented code
* refactor: Drop unneeded local variable
* refactor: Eliminate no-op code branch
2023-11-17 17:09:11 -04:00
Jennifer Richards
4ac1153d7d
fix: Label draft change log with rfc number ( #6659 )
...
* fix: Label draft change log with rfc num
* test: Update test
2023-11-17 15:49:34 -04:00
Robert Sparks
1f82fab2cd
fix: silenced (and explained) several warnings
2023-11-01 15:20:29 -05:00
Robert Sparks
942c4d42af
fix: better message on first import of subseries membership
2023-11-01 13:29:12 -05:00
Robert Sparks
e65c4c3f7f
fix: use clearer descriptions on docevents for initial sync run
2023-10-31 16:36:47 -05:00
Robert Sparks
0afe496aa3
fix: preserve RelatedDocument references to subseries
2023-10-31 15:52:11 -05:00
Robert Sparks
48cb06d20d
fix: subseries specific docevent types. get_or_create contain relationship. remove spurious "
2023-09-21 16:38:41 -05:00
Robert Sparks
0390f1868f
feat: subseries
2023-09-21 12:54:17 -05:00
Robert Sparks
96fae0c436
feat: remove DocAlias
2023-08-19 13:17:21 -05:00
Robert Sparks
3b067a468a
fix: name corrections, flake removal
2023-08-17 16:34:26 -05:00
Robert Sparks
7441413032
chore: merge in and adjust rfceditor.py changes
2023-08-17 16:03:17 -05:00
Jennifer Richards
4706ac2a37
fix: Restore old handling of draft-iesg state
...
Missing state -> idexists, idexists -> idexists, anything
else becomes pub.
2023-08-16 11:53:58 -03:00
Jennifer Richards
cf470a4680
fix: Use correct stream slugs
2023-08-14 14:08:48 -03:00
Jennifer Richards
06adb25e43
fix: Set draft-iesg state to "pub" when a draft is published
2023-08-14 13:37:24 -03:00
Jennifer Richards
92460319d1
refactor: Refactor handling of draft stream states
2023-08-14 13:06:48 -03:00
Jennifer Richards
aff4c2d0db
fix: Drop leading 0s from RFC doc-id
2023-08-11 12:04:15 -03:00
Jennifer Richards
a66457bfaf
test: Remove python lint
2023-08-10 18:01:11 -03:00
Jennifer Richards
ab99972d76
fix: Check state correctly
2023-08-10 17:44:37 -03:00
Jennifer Richards
8b636216d0
feat: describe change as "set" or "changed" as appropriate
2023-08-10 17:35:12 -03:00
Jennifer Richards
39ccea92f9
feat: Set published state on rfc doc
2023-08-10 17:01:06 -03:00
Jennifer Richards
7535df3eeb
feat: Set more fields on rfc doc
2023-08-10 17:00:08 -03:00
Jennifer Richards
fd1d425db6
feat: Log warning if rfc index refers to unknown draft
2023-08-10 16:12:01 -03:00
Jennifer Richards
e898e43bc8
fix: Only consider rfcs for updates/obsoletes targets
2023-08-10 16:09:53 -03:00
Jennifer Richards
542b87209d
chore: Eliminate python lint
2023-08-10 14:59:55 -03:00
Jennifer Richards
eaf8d459ec
fix: Only match draft docs to rfc index draft name
2023-08-10 14:58:32 -03:00
Jennifer Richards
c37e3b4a39
refactor: Consolidate draft handling
2023-08-10 14:29:02 -03:00
Jennifer Richards
4f9a2316ef
style: Run Black and use f-strings / str.format()
2023-08-10 14:10:49 -03:00
Jennifer Richards
87bd9bbd6d
feat: Use rfc doc type when updating from rfc index
2023-08-10 10:36:49 -03:00
Jennifer Richards
f464f3172d
chore: Add type annotation to complex return value
2023-08-09 11:42:36 -03:00
Jennifer Richards
1df5450790
style: Run Black on update_docs_from_rfc_index()
2023-08-09 11:40:00 -03:00
Robert Sparks
db670dadc5
chore: continued refactor
2023-06-30 17:27:27 -05:00
Jennifer Richards
07e26dd52e
refactor: Replace deprecated force_text with force_str
2023-05-09 15:21:50 -03:00
Lars Eggert
f8b48f4c43
fix: use Internet-Draft more consistently across the UI ( #5104 )
...
* s/Internet Draft/Internet-Draft/i
* s/draft/Internet-Draft/i or s/draft/I-D/i
* s/ID/I-D/
* Fix tests
* a -> an
* Undo case-change to ASCII
* Address code review comments
* Add migrations
* Add merged migration
* fix: straighten out migrations
* fix: finish straightening out migrations
---------
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2023-02-11 10:09:28 -06:00
Lars Eggert
220be21998
chore: Use codespell to fix typos in code. ( #4797 )
...
* chore: Use codespell to fix typos in code.
Second part of replacement of #4651
@rjsparks, I probably need to revert some things here, and I also
still need to add that new migration - how do I do that?
* Revert migrations
* Migrate "Whitelisted" to "Allowlisted"
* TEST_COVERAGE_MASTER_FILE -> TEST_COVERAGE_MAIN_FILE
* Fix permissions
* Add suggestions from @jennifer-richards
2022-12-07 15:10:35 -06:00
Jennifer Richards
4084d7d557
fix: record and interpret RFC pub dates in correct timezone ( #4421 )
...
* fix: use PST8PDT for published_rfc event timestamps
* fix: find RFCs by PST8PDT year in RfcFeed
* refactor: add const RPC_TZINFO to represent RFC publication timezone
* chore: remove (rather than fix) unused template tags
* fix: always return RPC_TZINFO-local date from Document.pub_date()
* refactor: convert 'published' flag to a Boolean to reflect its usage
* fix: display doc publication dates in correct time zones
* fix: fix various small issues breaking tests
2022-09-08 14:51:19 -03:00
Jennifer Richards
32054111df
fix: fix failing tests and eliminate naive datetime warnings ( #4402 )
...
* test: fix timestamp construction in several doc tests
* refactor: rename date2datetime to datetime_from_date and clarify code
* chore: helper to get tzinfo for PRODUCTION_TIMEZONE
* fix: fix timezone handling in make_last_call()
* test: fix datetime generation in doc.tests_charter
* refactor: remove PRODUCTION_TIMEZONE setting
Replaces the PRODUCTION_TIMEZONE setting with a constant,
DEADLINE_TZINFO, in ietf.utils.timezone.
* test: be more careful about timezone in tests_charter.py
* test: be more careful about timezone in doc/tests.py
* fix: fix timezone handling affecting doc.tests_draft
* fix: fix timezone handling affecting tests_irsg_ballot.py
* fix: fix timezone handling affecting tests_review.py
* fix: fix timezone handling affecting last ietf.doc tests
* fix: fix timezone handling affecting last ietf.group tests
* fix: fix timezone handling affecting ietf.iesg tests
* fix: handle timezones in get_8989_eligibility_querysets
* fix: handle timezones affecting ietfauth tests
* fix: return tz-aware datetime from utc_from_string
* fix: specify timezone for constants in ipr_rfc_number()
* fix: specify tz for ipr deadlines
* fix: handle timezones affecting liaisons tests
* fix: treat leap day in get_8989_eligibility_querysets()
Manual cherry-pick of 248d6474
* test: treat leap day properly in nomcom tests
* fix: fix timezone handling affecting nomcom tests
* test: fix timezone handling in review tests
* fix: fix timezone handling affecting secr.meetings tests
* fix: handle both pytz and zoneinfo timezones in ietf.utils.timezone
* fix: fix timezone handling affecting secr.proceedings tests
* refactor: use make_aware() helper in secr.meetings tests
* test: fix timezone handling in secr.telechat tests
* fix: fix timezone handling affecting stats tests
* fix: eliminate tz-naive helpers affecting sync email parsing
* fix: include timezone data when serializing DeletedEvent data
* fix: fix timezone handling affecting sync tests
* style: remove unused import
2022-09-01 13:07:28 -03:00
Jennifer Richards
ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now ( #4211 )
...
* refactor: replace datetime.now with timezone.now
* refactor: migrate model fields to use timezone.now as default
* refactor: replace datetime.today with timezone.now
datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.
* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)
This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.
* refactor: revert datetime.today() change to old migrations
* refactor: change a missed datetime.now to timezone.now
* chore: renumber timezone_now migration
* chore: renumber migrations
2022-08-25 13:45:16 -03:00
Jennifer Richards
6f3fb6930f
Add timeouts to requests library calls. Fixes #3498 . Commit ready for merge.
...
- Legacy-Id: 19839
2022-01-13 15:06:28 +00:00
Jennifer Richards
e11583a87f
Allow assignment of Person as "action holder" for a Doc, plus rudimentary automation of assignment. Fixes #3146 . Commit ready for merge.
...
- Legacy-Id: 18829
2021-02-12 20:31:00 +00:00
Robert Sparks
3697180cc1
Reverted merge of timezone-aware migration efforts.
...
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz
774e752a54
Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
...
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz
c9e99e3436
Refined the code in ietf.sync.rfceditor that deals with errata to distinguish between rejected errata and other errata.
...
- Legacy-Id: 18279
2020-07-26 14:11:04 +00:00
Jennifer Richards
fff927b085
Store Auth48 URL as DocumentURL and display in RFC-Editor state. Migrates old data when possible. Alternative to 17563. Fixes #2722 . Commit ready for merge.
...
- Legacy-Id: 18157
2020-07-13 15:34:01 +00:00
Henrik Levkowetz
6d7c5b52ee
Django 2.0 conversion. Test suite passes, except for javascript tests.
...
- Legacy-Id: 17762
2020-05-08 13:07:07 +00:00
Henrik Levkowetz
f10ddadc0e
Merged in changes from trunk up to r17584.
...
- Legacy-Id: 17593
2020-04-07 16:02:52 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
ab173cb2eb
Removed further six usage: six.string_types, six.integer_types, six.moves.urllib instances.
...
- Legacy-Id: 17390
2020-03-05 20:46:58 +00:00
Henrik Levkowetz
e9a37d8ac8
Removed six.text_type(), changed six.moves.urllib to plain urllib, and removed now unused six imports.
...
- Legacy-Id: 17385
2020-03-05 14:41:41 +00:00