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
bac162d0d0
Reduced the max number of results returned by document searches from 500 to 200, for a better user experience. A faster return and a search term tweak to pinpoint the desired search result is better than a long wait and then maybe having to tweak the search terms anyway.
...
- Legacy-Id: 15027
2018-04-07 10:12:13 +00:00
Henrik Levkowetz
96e4059e43
Undid some memoization; these values can change during an object's lifetime.
...
- Legacy-Id: 15025
2018-04-07 10:07:57 +00:00
Henrik Levkowetz
5446ae642a
Changed the signature of some document methods to not accept lists (but still accept tuples) in order to make caching possible. Added @memoize to some methods.
...
- Legacy-Id: 15024
2018-04-06 21:25:56 +00:00
Henrik Levkowetz
d44c2dc92c
Added another prefetch to search doc query results.
...
- Legacy-Id: 15023
2018-04-06 21:24:07 +00:00
Henrik Levkowetz
6b27daa58a
Imposed sort order (most recent docs first) on document search results, in order to retain the most recent docs in case we have to chop the result list due too many hits.
...
- Legacy-Id: 15022
2018-04-06 21:23:14 +00:00
Henrik Levkowetz
248c2dd055
Added back the on-agenda calendar links to document lists, now in an implementation with better performance characteristics.
...
- Legacy-Id: 15020
2018-04-06 15:17:18 +00:00
Henrik Levkowetz
583d8882c5
Fixed an issue where the change of slide naming between IETF 96 and 97 caused the datatracker to not provide correct link to pre-IETF-97 materials. Thanks to tjw.ietf@gmail.com for the heads-up.
...
- Legacy-Id: 15017
2018-04-05 20:34:56 +00:00
Henrik Levkowetz
6a32a363cc
Merged in [15012] from ford@isoc.org:
...
Add IRTF State option to Additional Search Criteria pulldown.
- Legacy-Id: 15016
Note: SVN reference [15012] has been migrated to Git commit cd912600e6
2018-04-05 14:50:40 +00:00
Mat Ford
cd912600e6
Add IRTF State option to Additional Search Criteria pulldown. Commit ready for merge.
...
- Legacy-Id: 15012
2018-04-05 11:56:37 +00:00
Henrik Levkowetz
421621eb51
Another round of iesg page optimizations. Reduced additional instances of individual lookups to a single lookup followed by annotation of document objects. Reduced several instances of repeating the same work multiple times (queries for telechat documents, queries for telechat dates).
...
- Legacy-Id: 15010
2018-04-05 11:03:26 +00:00
Henrik Levkowetz
67a17bb227
Fixed a number of tests to deal correctly with model method caching.
...
- Legacy-Id: 15009
2018-04-05 10:55:27 +00:00
Henrik Levkowetz
15d45b4d22
Changed the ballot_icon template tag to use an already found ballot if available, rather than doing lookups to find it (twice!).
...
- Legacy-Id: 15007
2018-04-04 17:12:08 +00:00
Henrik Levkowetz
1ec98fdd59
Added @memoize to two Document methods
...
- Legacy-Id: 15006
2018-04-04 17:10:06 +00:00
Henrik Levkowetz
43a9291053
Added an index for (doc, type) on DocEvent to speed up latest_event() queries.
...
- Legacy-Id: 14990
2018-04-01 19:33:16 +00:00
Henrik Levkowetz
675c652052
Additional changes to speed up the IESG agenda docs page: Changed telechat_page_count() to accept a list of documents if that's already been generated, to avoid double work. Changed the reviewed_by_teams list to provide acronyms directly, to avoid group lookups during template rendering. Provided page counts directly to the template instead of repeated (costly) filtering through telechat_page_count, with new document lookups. Removed the telechat_page_count template filter, due to its cost. Tweaked some lookups in fill_in_document_table_attributes() . Added to the select_related() list for documents in IESG agenda_documents().
...
- Legacy-Id: 14988
2018-04-01 18:51:48 +00:00
Henrik Levkowetz
60a60de94b
Replaced inline database lookups with get_active_ads().
...
- Legacy-Id: 14987
2018-04-01 18:38:50 +00:00
Henrik Levkowetz
db3a4eb20e
Changed some instances of .slug to _id
...
- Legacy-Id: 14985
2018-04-01 18:32:27 +00:00
Henrik Levkowetz
4c297ba4c0
Changed settings so that cache keys used by memcached includes the release version, in order to avoid stale and incorrect cache content on new release deployment. Made it easier to pick out cache key composition by normalizing the variable name. Adjusted cache prefix and the composition of some keys to have a unique and consistent cache key prefix.
...
- Legacy-Id: 14943
2018-03-26 21:26:20 +00:00
Henrik Levkowetz
c0eb9e3aa6
Merged in [14899] from rjsparks@nostrum.com:
...
Cleaner charter factory simplifies test code.
- Legacy-Id: 14914
Note: SVN reference [14899] has been migrated to Git commit 8026f86cd3
2018-03-24 21:24:03 +00:00
Henrik Levkowetz
cc717946f5
Merged in [14896] from rjsparks@nostrum.com:
...
Improved test coverage for ietf/doc/views_charter.py.
- Legacy-Id: 14912
Note: SVN reference [14896] has been migrated to Git commit f11907b6a0
2018-03-24 17:54:14 +00:00
Henrik Levkowetz
6d5f604d5b
Tweaked the document list iCalendar links to not show for presentations on days in the past.
...
- Legacy-Id: 14908
2018-03-24 15:29:10 +00:00
Henrik Levkowetz
f48669a8e4
Merged in [14884] from adam@nostrum.com:
...
Adding page count to last call page.
- Legacy-Id: 14907
Note: SVN reference [14884] has been migrated to Git commit e7b984dfa7
2018-03-24 15:09:50 +00:00
Henrik Levkowetz
bd205ae29b
Merged in [14849] from ben@nostrum.com:
...
Give ADs the red Clear Ballot button
- Legacy-Id: 14904
Note: SVN reference [14849] has been migrated to Git commit 7bf02077fd
2018-03-24 13:31:48 +00:00
Robert Sparks
8026f86cd3
Cleaner charter factory simplifies test code. Commit ready for merge.
...
- Legacy-Id: 14899
2018-03-22 14:01:24 +00:00
Robert Sparks
f11907b6a0
Improved test coverage for ietf/doc/views_charter.py. Commit ready for merge.
...
- Legacy-Id: 14896
2018-03-21 21:59:45 +00:00
Adam Roach
e7b984dfa7
Adding page count to last call page. Commit ready for merge.
...
- Legacy-Id: 14884
2018-03-21 09:12:34 +00:00
Ben Campbell
cc96709957
Give ADs the red Clear Ballot button
...
- Legacy-Id: 14848
2018-03-17 16:35:35 +00:00
Henrik Levkowetz
a04e187f0f
Removed some old debug print statements.
...
- Legacy-Id: 14823
2018-03-14 22:11:06 +00:00
Henrik Levkowetz
1fd4a4d1a7
Added session ical links to document lists (WG docs, search results, etc.) for documents on upcoming meeting agendas. Reduced the query and rendering times of document lists some more through additional prefetch_related().
...
- Legacy-Id: 14799
2018-03-14 19:16:50 +00:00
Henrik Levkowetz
fdba464808
Added result caching for a couple of Document methods.
...
- Legacy-Id: 14795
2018-03-14 19:11:18 +00:00
Henrik Levkowetz
6e9bb00f13
Changed html cleaning to differentiate between fragment cleaning and document cleaning. Added an lxml-based cleaner for document cleaning, also permitting <style> tags (but not external style sheets).
...
- Legacy-Id: 14775
2018-03-13 12:48:22 +00:00
Henrik Levkowetz
2c0348cc7a
Found that django's urlize() does not deal well with adjacent parantheses. Replaced it with a filter based on bleach.linkify, which does better.
...
- Legacy-Id: 14752
2018-03-09 15:07:04 +00:00
Henrik Levkowetz
1df3c715d0
Replaced the use of (at least in Django 1.11) buggy urlize() with bleach.linkify(), to avoid some exceptions caused by malformed urlize output, exposed by the new sanitize_html(). Also removed some dead code.
...
- Legacy-Id: 14751
2018-03-09 12:00:15 +00:00
Robert Sparks
975522af35
Make a more appropriate review message when a BoF has an initial charter under consideration. Fixes #2458 . Commit ready for merge.
...
- Legacy-Id: 14715
2018-02-28 20:54:56 +00:00
Henrik Levkowetz
6e1d4d45d8
Added some missing migrations
...
- Legacy-Id: 14697
2018-02-25 20:08:37 +00:00
Henrik Levkowetz
1389775488
Added some missing migrations.
...
- Legacy-Id: 14696
2018-02-25 20:06:50 +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
6184170828
Changed import path from a deprecated path to the kosher one.
...
- Legacy-Id: 14667
2018-02-22 00:01:01 +00:00
Henrik Levkowetz
26bf387356
Replaced direct assignment to m2m fields with .clear() and .set()
...
- Legacy-Id: 14666
2018-02-21 23:58:25 +00:00
Henrik Levkowetz
36b5e2ef8e
Changed name from .rel to .remote_field for remote accessors.
...
- Legacy-Id: 14665
2018-02-21 23:56:36 +00:00
Henrik Levkowetz
a4768bb514
Removed unused imports. Added some explicit orderings to avoid pagination issues.
...
- Legacy-Id: 14664
2018-02-21 23:54:31 +00:00
Henrik Levkowetz
06362ec046
Got rid of old migrations and created new initial migrations.
...
- Legacy-Id: 14662
2018-02-21 23:46:22 +00:00
Henrik Levkowetz
5638cf3da3
Changed all usage of ForeignKey and OneToOneFiled in model.py files to the compatibility versions from ietf.utils.models.
...
- Legacy-Id: 14661
2018-02-20 15:36:05 +00:00
Henrik Levkowetz
cdc295bab8
Merged in [14655] from housley@vigilsec.com:
...
Strip the HTML tags around the new values in the mail produced by email_iesg_processing_document. Also, provide the previously missing URL at the end of the message. Fixes 2455.
- Legacy-Id: 14657
Note: SVN reference [14655] has been migrated to Git commit 6ea0881a89
2018-02-19 17:36:09 +00:00
Russ Housley
6ea0881a89
Strip the HTML tags around the new values in the mail produced by email_iesg_processing_document. Also, provide the previously missing URL at the end of the message. Fixes 2455.
...
- Legacy-Id: 14655
2018-02-18 20:40:49 +00:00
Henrik Levkowetz
3dd66eba65
Fixed an UnboundLocalError (only partial variable initialization) bug.
...
- Legacy-Id: 14620
2018-02-07 06:13:19 +00:00
Henrik Levkowetz
a00532694d
Merged in [14549] from rjsparks@nostrum.com:
...
Allow those people who can make a review request to edit the request deadline. Send mail to other directorate secretaries when one secretary makes a change to a request. Fixes #2233 .
- Legacy-Id: 14555
Note: SVN reference [14549] has been migrated to Git commit ba8b4d3a38
2018-01-23 19:24:39 +00:00
Henrik Levkowetz
535cd0bccf
Expanded the fields that the 'author' entry of the document search form is applied to, from just author name, to author name, email addresses, and affiliation. Fixes issue #2415 .
...
- Legacy-Id: 14552
2018-01-23 18:12:10 +00:00