Sangho Na
80599f29f0
fix: Include missing related drafts in IPR searches ( #7836 )
...
* fix: Include missing related drafts in IPR searches
* refactor: extract drafts, sort docs
* chore: indent loop and conditionals to improve readability
* test: handle whitespaces added to IPR search result page
---------
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2024-09-10 17:22:45 -05:00
Robert Sparks
621528ad03
ci: Merge branch 'main' into feat/rfc
2023-09-15 11:48:44 -05:00
Jennifer Richards
18a1af22f8
fix: Reject nul characters in ipr search parameters ( #6292 )
...
* fix: Reject nul characters in ipr search parameters
Really ought to rework this as a form, but in the meantime
this should prevent 500s. Could probably reduce the number
of places we check the value.
* fix: Guard against absent parameters
* fix: Remove stray junk
* fix: Use correct response code (400, not 405)
* test: Test handling of null chars in IPR search
* refactor: Simplify branch statements
This helps my code validator see that "start" is
always set.
2023-09-12 08:32:16 -05:00
Paul Selkirk
febdeff85f
feat: Capture that IPR disclosures are removed under the Objectively False IPR Disclosure Policy ( #6231 )
...
* feat: Capture that IPR disclosures are removed under the Objectively False IPR Disclosure Policy (#6088 )
* chore: Move PUBLISH_IPR_STATES from settings_local to settings
* fix: Add migration for removed_objfalse in IprEventTypeName
* fix: De-conflict migration
* fix: De-conflict migration
* style: Move PUBLISH_IPR_STATES ahead of not-production block
2023-09-11 13:14:46 -05:00
Robert Sparks
1ae0c0b838
fix: follow became_rfc in ipr searches
2023-08-19 09:33:04 -05:00
Robert Sparks
c631cb17cb
chore: more bulk change damage repair
2023-08-18 16:48:01 -05:00
Robert Sparks
22dc5b6dc7
chore: cleanup typos
2023-08-17 16:24:22 -05:00
Robert Sparks
383899c5c4
chore: checkpoint: docalias mostly removed
2023-08-15 16:49:17 -05:00
Robert Sparks
4946430159
chore: checkpoint: halfway through removing docalias
2023-08-15 09:11:53 -05:00
Jennifer Richards
dcdc4af3e0
feat: Use case-insensitive matching for document searches ( #5166 )
...
* fix: Use case insensitive match for group acronym in doc search
* fix: Use case insensitive match for doc.search_by_name view
* fix: Use case insensitive match for doc names in ipr.search view
* test: Test case insensitivity in doc search/search_for_name
2023-02-21 10:21:29 -06:00
Jennifer Richards
de62fd72d9
fix: Allow additional draft forms to be added to IPR disclosure edit form ( #4952 )
...
* chore: Remove commented-out template content
* fix: Correctly number newly added draft_form inputs on IPR edit form
* fix: Initialize select2 when adding a new field instance
2023-01-06 15:24:08 -06:00
Jennifer Richards
7b1b7f5273
Merge branch 'feat/tzaware' into dev/tzaware-main-merge
2022-10-11 14:57:34 -03:00
Jennifer Richards
cb9e576fb4
fix: return False from has_role() when role_names is the empty list ( #4541 )
...
* fix: return False from has_role() when role_names is the empty list
* chore: add comments clarifying the effect of Q()
2022-10-07 16:05:37 -05:00
Jennifer Richards
1366b6de38
Merge branch 'feat/tzaware' into jennifer/main-to-tzaware-conflicts
2022-09-14 12:36:33 -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
Lars Eggert
088d953e7e
fix: provide settings to render_to_string for IPR notification emails ( #4357 )
...
* Pass settings into the context
Fixes #4340
* fix: test changes to the ipr notification message content
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2022-08-26 14:27:37 -05: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
10396d6f01
chore: remove more tools.ietf.org server only related things. ( #4103 )
...
* chore: remove more tools.ietf.org server only related things.
* chore: remove use of tools.ietf.org floorplans\n\nThe data will move into the FloorPlan models instead.
2022-06-22 14:11:46 -05:00
Lars Eggert
c68446ae93
More select2 and test fixes.
...
- Legacy-Id: 19781
2021-12-14 18:19:12 +00:00
Ryan Cross
93d5d193e5
Change view /ipr/by-draft-recursive to use static content
...
- Legacy-Id: 19488
2021-10-28 18:45:07 +00:00
Robert Sparks
550c1233fe
Change ipr pages to say General rather than Generic, and to change the text to note email submissions are not accepted. Fixes #3209 . Commit ready for merge.
...
- Legacy-Id: 18886
2021-03-03 20:15:57 +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
0c4d58a9f7
Based on feedback from the Secretariat, changed the 404 for IPR declarations in other states than 'posted' to a 403 with a login link.
...
- Legacy-Id: 18333
2020-07-31 12:36:50 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +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
Henrik Levkowetz
bdc73e771a
Python2/3 compatibility: replaced six.ensure_text() with either six.text_type or django's force_text(), depending on the case, and fixed a variable scope issue.
...
- Legacy-Id: 16461
2019-07-16 13:20:05 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
426870b766
Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
...
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz
a2cafded25
Changed DocAlias to be many-to-many, in order to be able to handle STD aliases referring to multiple RFCs.
...
- Legacy-Id: 16249
2019-06-14 20:38:14 +00:00
Henrik Levkowetz
f6461d531c
Added html escaping of initial text-area content in a view function to avoid mangling.
...
- Legacy-Id: 15989
2019-03-04 20:10:16 +00:00
Henrik Levkowetz
ea7728b501
Changed calls to .related_that*() and .relations_that*() to use tuples rather than lists (a slight optimization).
...
- Legacy-Id: 15029
2018-04-07 10:47:16 +00:00
Henrik Levkowetz
9547646f81
Added a test for IPR edit.
...
- Legacy-Id: 14951
2018-03-27 17:55:11 +00:00
Henrik Levkowetz
e830f0f976
Fill in the IPR edit form, section V, with patent information derived from the patent_info field, the same way we do for the IPR update form.
...
- Legacy-Id: 14950
2018-03-27 10:40:59 +00:00
Henrik Levkowetz
1ed8e967e7
Merged in ^/personal/henrik/6.72.1-django-1.11@14676: Upgrade to Django 1.11
...
- Legacy-Id: 14695
2018-02-25 19:55:16 +00:00
Henrik Levkowetz
dc90fa3940
Changed user.is_authenticated and .is_anonymous from method calls to attribute access.
...
- Legacy-Id: 14668
2018-02-22 00:03:30 +00:00
Henrik Levkowetz
d07411c62f
Fixed an issue which could arise when updating IPR declarations with no value for patent_info.
...
- Legacy-Id: 14638
2018-02-10 22:37:16 +00:00
Henrik Levkowetz
46472401ad
Changed the IPR disclosure page for IPR disclosure updates to show both the previous and current disclosure details side-by-side. Fixes issue #2414 .
...
- Legacy-Id: 14581
2018-01-27 21:34:52 +00:00
Henrik Levkowetz
717868cae2
Rewrote text_to_dict() and dict_to_text() to support unicode without RFC2822 encoding issues. Added initial values in IPR update forms, from the original disclosure, in order to make updates easier. Addresses issue #2413 .
...
- Legacy-Id: 14531
2018-01-17 00:21:34 +00:00
Henrik Levkowetz
d7e1d258e5
Added a new section for IPR disclosures on related documents to the IPR document search result page. Fixes issue #2412 .
...
- Legacy-Id: 14514
2018-01-11 18:03:29 +00:00
Russ Housley
6d616855bc
Show which RFC was in force when the IPR disclosure was submitted. Fixes #2309 .
...
- Legacy-Id: 14062
2017-08-21 14:30:20 +00:00
Ole Laursen
5b677dc6ba
Merge author stats branch into new branch from trunk
...
- Legacy-Id: 13159
2017-03-28 14:36:40 +00:00
Lars Eggert
8a70e9773d
Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
...
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Henrik Levkowetz
5f053ad21a
Cleaned up the remaining explicit url names, using dotted-paths to view
...
functions instead. In all almost 700 changes.
- Legacy-Id: 12923
2017-02-26 23:21:49 +00:00
Henrik Levkowetz
876d4c93a4
Removed another explicit url() name which blocked a dotted-path reverse, causing 500 for ipr// urls.
...
- Legacy-Id: 12882
2017-02-19 19:52:56 +00:00
Henrik Levkowetz
aa5e61d958
Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
...
in order to autogenerate dotted path url pattern names. Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.
Changed some imports to prevent import of ietf.urls before django
initialization was complete.
Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.
Started converting old-style middleware classes to new-style middleware
functions (incomplete).
Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.
Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.
Rewrote the filename argument handling in a management command which had
broken with the upgrade.
- Legacy-Id: 12818
2017-02-11 14:43:01 +00:00
Henrik Levkowetz
7dea44e626
Added a change password page, and linked to it from the account profile page and user menu. Added zxcvbn-based browser-side password strength estimation on the various password setting, re-setting, and changing forms. Added a change password test. Changed ietfauth/urls.py to not use the deprecated string form for views in urlpatterns.
...
- Legacy-Id: 12798
2017-02-09 17:03:44 +00:00
Henrik Levkowetz
6c3a4015c5
Tweaked the IPR Details page to show the possible a), b), and c) choices under section 'V' when licensing declaration to be provided later has been chosen.
...
- Legacy-Id: 12793
2017-02-08 18:04:34 +00:00
Henrik Levkowetz
db1cc15f1f
Undid last commit
...
- Legacy-Id: 12792
2017-02-08 18:03:29 +00:00