Jennifer Richards
3220bf3c40
chore: replace last few datetime.date.today() calls with date_today()
2022-10-18 12:45:47 -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
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
83a74c8f92
Tweaked the messages from bin/rfc-editor-index-updates to be slightly more informative.
...
- Legacy-Id: 18278
2020-07-26 14:09:43 +00:00
Henrik Levkowetz
e6e0b16005
Tweaked bin/rfc-editor-* scripts
...
- Legacy-Id: 17439
2020-03-14 18:42:48 +00:00
Henrik Levkowetz
4ecaeab9c6
Tweaked bin/rfc-editor-* scripts
...
- Legacy-Id: 17438
2020-03-14 16:26:21 +00:00
Henrik Levkowetz
db0a57e143
Added some missing imports.
...
- Legacy-Id: 17428
2020-03-13 14:04:55 +00:00
Henrik Levkowetz
6300c359b4
Merged back fixes from production
...
- Legacy-Id: 17413
2020-03-09 17:59:44 +00:00
Henrik Levkowetz
5d824b59c2
Changed some cases of urlopen() to use requests.get()
...
- Legacy-Id: 17374
2020-03-02 15:18:00 +00:00
Henrik Levkowetz
4b35ee43d2
Moved code from a couple of simple urlopen() wrappers used only once into the calling scripts. Removed a case of Py2 virtualenv activation.
...
- Legacy-Id: 17354
2020-02-27 13:35:14 +00:00
Henrik Levkowetz
ac38dba94b
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.
...
- Legacy-Id: 17269
2020-01-30 22:19:42 +00:00
Henrik Levkowetz
ba3010e3b0
Added fetch and use of the RFC-Editor's errata.json file in order to set a new 'verified-errata' document tag, and use that to show the link to inline-errata documents only when there is verified errata. Fixes issue #2861 .
...
- Legacy-Id: 17212
2020-01-10 12:22:33 +00:00
Henrik Levkowetz
d6565f0450
Added exception logging for ietf/bin/rfc-editor-queue-updates. Changed the logging in the ietf/bin/rfc-editor-* scripts to use ietf.utils.log.log(). Reordered some imports.
...
- Legacy-Id: 15318
2018-07-12 12:52:58 +00:00
Henrik Levkowetz
fb4804a4ca
Fixed an incorrect file name in a log message.
...
- Legacy-Id: 15115
2018-05-03 19:32:10 +00:00
Henrik Levkowetz
5e3f3378d3
Updated scripts in ietf/bin/ to look in env/bin/ for the virtualenv activation script.
...
- Legacy-Id: 12560
2016-12-16 17:50:04 +00:00
Henrik Levkowetz
4b0a9360f0
Merged in ^/branch/iola/event-saving-refactor-r10291, which refactors document saving to always use doc.save_with_history(events), and requires accompanying events. This branch also provides refactoring of recurring regexes in url patterns into a dictionary. As part of the merge, also refactored new code which didn't use the save_with_history() method.
...
- Legacy-Id: 11840
2016-08-23 10:52:08 +00:00
Henrik Levkowetz
53506389b3
Make all the scripts under ietf/bin/ set up the environment the same way.
...
- Legacy-Id: 11639
2016-07-12 20:52:09 +00:00
Ole Laursen
e1f0917659
Summary: Add new document saving API, Document.save_with_history(events).
...
The new API requires at least one event and will automatically save a
snapshot of the document and related state. Document.save() will now
throw an exception if called directly, as the new API is intended to
ensure that documents are saved with both an appropriate snapsnot and
relevant history log, both of which are easily defeated by just
calling .save() directly.
To simplify things, the snapshot is generated after the changes to a
document have been made (in anticipation of coming changes), instead
of before as was usual.
While revising the existing code to work with this API, a couple of
missing events was discovered:
- In draft expiry, a "Document has expired" event was only generated
in case an IESG process had started on the document - now it's
always generated, as the document changes its state in any case
- Synchronization updates like title and abstract amendmends from the
RFC Editor were silently (except for RFC publication) applied and
not accompanied by a descriptive event - they now are
- do_replace in the Secretariat tools now adds an event
- Proceedings post_process in the Secretariat tools now adds an event
- do_withdraw in the Secretariat tools now adds an event
A migration is needed for snapshotting all documents, takes a while to
run. It turns out that a single document had a bad foreign key so the
migration fixes that too.
- Legacy-Id: 10101
2015-09-28 14:01:03 +00:00
Henrik Levkowetz
f3b22aa300
Added django.setup() to some additional scripts, as required under Django 1.7.
...
- Legacy-Id: 9069
2015-02-11 06:52:07 +00:00
Henrik Levkowetz
b8cd069070
Merged [7557] from rjsparks@nostrum.com: Update reference relationships (asyncronously) for new rfcs found when syncing with the rfc index. Fixes ticket #1347 .
...
- Legacy-Id: 7572
Note: SVN reference [7557] has been migrated to Git commit 9b43e159623ed1fb53438541b25a1605922943dd
2014-04-06 15:01:12 +00:00
Ole Laursen
e54bd17499
Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE
...
- Legacy-Id: 6985
2013-12-18 15:51:11 +00:00
Henrik Levkowetz
b6098566a9
Fixed missing name change when moving settings from rfceditor module to settings.py.
...
- Legacy-Id: 5787
2013-06-11 10:45:20 +00:00
Henrik Levkowetz
594ca1f256
Changed the logging target of auxiliary IANA and RFC-Ed sync scripts from LOG_LOCAL0 to LOG_USER, matching what we've already used elsewhere for datatracker logging.
...
- Legacy-Id: 5453
2013-02-24 20:14:20 +00:00
Ole Laursen
9c6fd95eab
Add date option to RFC Editor index mirroring script so one can
...
control what the publication cut off date is, also fix crash problem
with some old RFCs not having a page count
- Legacy-Id: 4907
2012-10-10 09:22:26 +00:00
Ole Laursen
09e6203f18
Revamp sync from RFC Editor to include more info, fix a couple of bugs
...
and email the Secretariet when a draft sent to the RFC Editor ends up
in the queue, split it up so it's easier to test; also moved the
location of the binaries to bin/
- Legacy-Id: 4848
2012-09-17 15:45:27 +00:00