Lars Eggert
6eabd4a3a1
chore: Use codespell
to fix typos in comments. ( #4794 )
...
First part of replacement of #4651
2022-11-28 10:36:36 -06:00
Jennifer Richards
cbc6d159a5
fix: convert LastCallDocEvent.expires to DEADLINE_TZINFO to get date
2022-10-25 10:03:18 -03:00
Jennifer Richards
3220bf3c40
chore: replace last few datetime.date.today() calls with date_today()
2022-10-18 12:45:47 -03:00
Jennifer Richards
da70acfdff
Merge branch 'feat/tzaware' into jennifer/yet-more-tz-fixes
...
# Conflicts:
# ietf/ietfauth/utils.py
# ietf/meeting/tests_views.py
# ietf/stats/tests.py
2022-10-17 16:39:45 -03:00
Jennifer Richards
f3bdbf0ed4
Merge branch 'feat/tzaware' into jennifer/main-for-tzaware-merge
...
# Conflicts:
# ietf/meeting/tests_js.py
# ietf/meeting/tests_models.py
# ietf/meeting/tests_views.py
# ietf/meeting/views.py
# ietf/name/fixtures/names.json
# ietf/templates/meeting/agenda.html
# ietf/templates/meeting/session_buttons_include.html
# ietf/templates/meeting/timeslot_start_end.html
2022-10-14 16:35:57 -03:00
Robert Sparks
50668c97cd
feat: apis for attaching chatlogs and polls to session materials ( #4488 )
...
* feat: apis for attaching chatlogs and polls to session materials
* fix: anticipate becoming tzaware, and improve guard against attempts to provide docs for sessions that have no official timeslot assignment.
* fix: get chatlog upload to actually work
Modifications to several initial implementation decisions.
Updates to the fixtures.
* fix: test polls upload
Refactored test to reduce duplicate code
* fix: allow api keys to be created for the new endpoints
* feat: add ability to view chatlog and polls documents. Show links in session materials.
* fix: commit new template
* fix: typo in migration signatures
* feat: add main doc page handling for polls. Improve tests.
* feat: chat log vue component + embedded vue loader
* feat: render polls using Vue
* fix: address pug syntax review comments from Nick.
* fix: repair remaining mention of chat log from copymunging
* fix: use double-quotes in html attributes
* fix: provide missing choices update migration
* test: silence html validator empty attr warnings
* test: fix test_runner config
* fix: locate session when looking at a dochistory object for polls or chatlog
Co-authored-by: Nicolas Giard <github@ngpixel.com>
2022-10-13 09:20:36 -05:00
Jennifer Richards
56505147e0
fix: handle timezones in a bunch of places
2022-09-23 16:11:49 -03:00
Jennifer Richards
c5e5a00ff3
fix: fill in tzinfo for datetime.fromtimestamp() calls
...
Unix timestamp is defined to be UTC and fromtimetamp correctly turns
it into whatever timezone you request. In most cases, just need to
specify *something* to avoid creating naive datetimes.
2022-09-22 12:36:35 -03: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
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
Robert Sparks
9c236ea2a2
chore: remove unneeded logging and code marked unreachable that has not been reached. ( #4305 )
...
* chore: remove unneeded logging and code marked unreachable that has not been reached.
* fix: remove noop save override
2022-08-04 11:25:31 -05:00
Russ Housley
74d30529b6
fix: Include blocked charters in AD dashboard that are in external review ( #3689 )
2022-03-19 11:59:04 -05:00
Jennifer Richards
66687a5a37
Update any_email_sent() to use balloters instead of old ad field. Add tests to catch the otherwise quiet failure. Fixes #3438 . Commit ready for merge.
...
- Legacy-Id: 19837
2022-01-12 20:21:41 +00:00
Robert Sparks
b1585124d6
Improve robustness of pdfization. Tune the test crawler. Commit ready for merge.
...
- Legacy-Id: 19813
2022-01-06 20:17:55 +00:00
Robert Sparks
adbf8acb81
Provide pdfs of htmlized (pdfized) documents to replace tools.ietf.org/pdf/ at /doc/pdf. Commit ready for merge.
...
- Legacy-Id: 19753
2021-12-07 23:49:58 +00:00
Jennifer Richards
05870adeeb
Refactor get_related_meeting to simplify / correctly handle recording doctype
...
- Legacy-Id: 19339
2021-09-05 13:02:33 +00:00
Jennifer Richards
2060173f3a
Improve proceedings display with new title block, configurable host logos, and additional PDF or URL materials. Fixes #3147 . Commit ready for merge.
...
- Legacy-Id: 19306
2021-08-30 17:02:49 +00:00
Robert Sparks
805d1f4a7e
Use BOF consistently.
...
- Legacy-Id: 19212
2021-07-14 17:33:14 +00:00
Robert Sparks
f5a04263e5
Added the notion of responsible leadership.
...
- Legacy-Id: 19202
2021-07-07 17:49:35 +00:00
Robert Sparks
6b383255ad
Staging for merge forward
...
- Legacy-Id: 19199
2021-07-06 18:05:54 +00:00
Jennifer Richards
b08110b838
Allow external resources to be set/suggested during submission process. Fixes #3068 . Commit ready for merge.
...
- Legacy-Id: 18960
2021-04-19 20:21:19 +00:00
Robert Sparks
d13d878103
Only log an error for is_rfc vs canonical_name mismatch for Document objects - it's OK for DocHistory to have the mismatch given how DocHistory computes is_rfc()
...
- Legacy-Id: 18903
2021-03-06 16:18:01 +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
15c5a0ab8b
Modified the document.save...() logging to give the document name
...
- Legacy-Id: 18702
2020-11-17 05:08:42 +00:00
Robert Sparks
ec061deef6
Add logging for times to save a document with history. Commit ready for merge.
...
- Legacy-Id: 18698
2020-11-16 17:17:00 +00:00
Henrik Levkowetz
088033d843
Added matching indexes to a number of models with ordering by multiple keys.
...
- Legacy-Id: 18664
2020-11-09 19:41:12 +00:00
Henrik Levkowetz
6d36990446
Changed the cache-filling code for doc.get_state() to avoid a period where the cache is seen as valid but empty. Addresses an issue where documents occasionally appear to be in an unexpected state.
...
- Legacy-Id: 18564
2020-10-05 14:55:16 +00:00
Henrik Levkowetz
51806b1964
Updated log.assertion() to provide an exception object (under Py3, it seems that logging.Logger instances ignore the traceback if there isn't also an exception object). Added a check for unset draft-iesg state to Document.set_state().
...
- Legacy-Id: 18503
2020-09-18 14:15:02 +00:00
Henrik Levkowetz
d6d3d82434
Merged in [18198] from rjsparks@nostrum.com:
...
Return the right reference for interim meeting materials.
- Legacy-Id: 18200
Note: SVN reference [18198] has been migrated to Git commit 9bcd64455a
2020-07-20 18:09:16 +00:00
Robert Sparks
9bcd64455a
Return the right reference for interim meeting materials. Commit ready for merge.
...
- Legacy-Id: 18198
2020-07-20 17:39:33 +00:00
Henrik Levkowetz
606cedd796
Merged in the ExtResource work from rjsparks@nostrum.com, based on a feature request and contributions from rsalz@akamai.com. This provides external resource models for Person, Group, and Document models, as a generalisation of the previous related-URL concept. This provides a consistent labelling and classification of URLs and other resources related to a Group, Document, or Person. The GroupURL (and similar) classes will be removed in a later step. Some DocumentURL instances (such as auth48 URLs) remain to convert, as they have come in with other merged-in work while the ExtResource work was in transit.
...
- Legacy-Id: 18192
2020-07-20 01:58:26 +00:00
Henrik Levkowetz
2d6925f02f
Fixed an UnboundLocalError issue.
...
- Legacy-Id: 18167
2020-07-14 12:06:14 +00:00
Henrik Levkowetz
a7b3d9c83b
Merged in [18157] from jennifer@painless-security.com:
...
Store Auth48 URL as DocumentURL and display in RFC-Editor state. Migrates old data when possible. Alternative to 17563. Fixes #2722 .
- Legacy-Id: 18166
Note: SVN reference [18157] has been migrated to Git commit fff927b085
2020-07-14 11:22:11 +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
Robert Sparks
53f7bc3ce6
migrated forward
...
- Legacy-Id: 18144
2020-07-09 21:07:05 +00:00
Henrik Levkowetz
dc7581fef4
Changed NullBoleanField() to BooleanField(null=True), according to the 2.1 upgrade recommendations.
...
- Legacy-Id: 18051
2020-06-24 20:33:57 +00:00
Robert Sparks
8a0578040e
Added better self-descriptive __str__ functions to PersonExtResource, GroupExtResource, and DocExtResource
...
- Legacy-Id: 17871
2020-05-21 20:59:44 +00:00
Robert Sparks
7e57be2bd3
merged forward ^/personal/rjs/explore-extref
...
- Legacy-Id: 17840
2020-05-19 18:47:47 +00:00
Henrik Levkowetz
02804ba163
Fixed a case of too few format string parameters.
...
- Legacy-Id: 17768
2020-05-10 14:14:50 +00:00
Robert Sparks
fa492c3947
Remove "point raised - writup needed" from the set of substates the IESG can use with a document. Fixes #2968 . Commit ready for merge.
...
- Legacy-Id: 17708
2020-04-29 20:32:31 +00:00
Henrik Levkowetz
9aeda11a29
Removed some Py2 compatibility decorators.
...
- Legacy-Id: 17673
2020-04-21 13:54:31 +00:00
Robert Sparks
672f9bce26
Added display-name. Refined migrations.
...
- Legacy-Id: 17646
2020-04-15 19:54:29 +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
37f39163d1
Prevent an exception on missing author.email.person when listing author emails.
...
- Legacy-Id: 17554
2020-03-27 16:14:29 +00:00
Robert Sparks
c055d37dcb
Removed extref app. Refined population migrations.
...
- Legacy-Id: 17509
2020-03-22 19:27:28 +00:00
Robert Sparks
db5d11ea32
Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Commit ready for merge.
...
- Legacy-Id: 17496
2020-03-21 22:11:33 +00:00
Robert Sparks
8583a0a098
Use current email addresses when we have them when listing document authors. Fixes #1902 . Commit ready for merge.
...
- Legacy-Id: 17494
2020-03-21 21:36:58 +00:00
Robert Sparks
316dd183d9
first run at external resources
...
- Legacy-Id: 17470
2020-03-19 23:32:24 +00:00