Commit graph

47 commits

Author SHA1 Message Date
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 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 d98054c103 Added a new yang checker, 'yanglint', to the existing Yang checker class, in
addition to the existing 'pyang' checker.

Added modal overlay displays showing the yang check results every place the
yin/yang symbol is shown (red or green) to indicate the presencee and result
of yang checks.  Added a Yang Validation: line in the document
meta-information section on the document's page in the datatracker.

Added the result of the xym extaction to the yang check results, to make
extration failures visible.

Added the version of the used xym, pyang, and yanglint commands to the check
results.

Added an action to move successfully extracted and validated modules to the
module library directories immediately on submission.

Added the xym and pyang repositories as svn:external components, rather than
listing them in requirements.txt, as there has been delays of many months
between essential features in the repositories, and an actual release.  We may
get occasional buildbot failures if broken code is pulled in from the
repository, but better that than the functionality failure of severely
outdated componets.

Added a new management command to re-run yang validation for active drafts for
which yang modules were found at submission time, in order to pick up imported
models which may have arrived in the model libraries after the draft's
submission.  Run daily from bin/daily.

Added a table to hold version information for external commands.  The yang
checker output should include the version information of the used checkers,
but seems unnecessary to run each command with its --version switch every
time we check a module...

Added a new management command to collect version information for external
commands on demand.  To be run daily from bin/daily.

Added tests to verify that xym, pyang and yanglint information is available
on the submission confirmation page, and updated the yang module contained in
the test document to validate under both pyang and yanglint.

Updated admin.py and resource.py files as needed.
 - Legacy-Id: 13630
2017-06-15 16:09:28 +00:00
Henrik Levkowetz 27374cf52d Changed alignment for the RFC 'Errata' label within the document name and title column to consistently put it at the right side of the column, for a tidier appearance.
- Legacy-Id: 13294
2017-05-10 09:54:56 +00:00
Henrik Levkowetz 13a377e92c Reverted the search result rows to the pre-6.48.0 state.
- Legacy-Id: 13195
2017-04-12 11:56:42 +00:00
Henrik Levkowetz c832ba2fb7 Tweaked the info symbol on search results rows slightly.
- Legacy-Id: 13042
2017-03-20 15:12:48 +00:00
Henrik Levkowetz 814e1315b5 Added a new document tab for some documents, showing htmlized drafts and RFCs
using the htmlization code previously developed for tools.ietf.org.  As the
generation of the htmlized page is a bit too costly to do on the fly for
often-referenced drafts and RFCs, the part of each page which contains the
htmlized document is cached on file with a cache time of 2 weeks.

Changed all links which pointed to the htmlized version on tools to instead
point at the datatracker htmlized document.

Tweaked some URLs which didn't permit retrieval of intermediate-rev-charters.

Narrowed the pattern for document names to disallow dots in names, and
instead explicitly enumerated the few historical draftw with dots in the
name.

Added a file-system cache for the htmlized documents, and specified a
max_entries value for caches, overriding the default 300 entries.

Tweaked the code for new author email entries to provide a time if missing
in an updated entry.

Changed links in various email templates which pointed at tools.ietf.org
pages to instead point at datatracker pages, where appropriate.

Changed the search result rows to provide links to both the current meta-
information document pages (with a (i) info symbol) and to the new htmlized
document pages.
 - Legacy-Id: 13040
2017-03-20 14:08:52 +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 c6a633885c Changed another class name that might trigger adblock. Related to issues #2016 and #2027.
- Legacy-Id: 12120
2016-10-12 15:39:19 +00:00
Ole Laursen b6d4c5ffe8 Drop naming community URL patterns, just reverse them directly from
the view
 - Legacy-Id: 11175
2016-05-06 18:10:37 +00:00
Ole Laursen 9faae5e915 Merged community list branch with trunk
- Legacy-Id: 11174
2016-05-06 17:36:04 +00:00
Henrik Levkowetz 3012a8ceb6 Submission check symbols should only be shown when the check returned a result, not otherwise.
- Legacy-Id: 10995
2016-03-28 19:08:02 +00:00
Henrik Levkowetz be2a2285bc Added small orange or green yang symbols to draft info- and list-pages, signifying fail or pass for the submission yang validation.
- Legacy-Id: 10994
2016-03-28 18:47:53 +00:00
Ole Laursen c061caaf04 Merge in changes from community-list-cleanup
- Legacy-Id: 10968
2016-03-23 13:31:24 +00:00
Ole Laursen 5f4082d595 Overhaul of the community list code.
From a user perspective: Use friendlier URLs for lists. Reuse the
search results table for displaying lists. Simplify the management
pages and improve the search rule UI to help fill in the values and
validating them, instead of just providing a text field. Fixes #1874.
Add an explicit button for adding individual documents. Include all
changes in the document change streams, not just some changes. Fix a
concurrency issue that allows changed documents to escape the search
rules. Don't create an empty list just be logging in.

From a code maintenance perspective: Clean up the models. Replace the
background caching scheme with direct queries. Get rid of a big chunk
of code. Speed up the code that adds track buttons to search results.
Add tests of all community views. Fixes #1422. Also fix some minor
bugs and oddities here and there.

There's still some work to do with respect to integrating the group
lists better.
 - Legacy-Id: 10921
2016-03-14 10:44:57 +00:00
Ole Laursen 540ef748f7 Fix community list track/untrack on document page, also fix the
attached Javascript which had a split personality regarding how to
deal with a repeated click
 - Legacy-Id: 10714
2016-01-19 11:27:47 +00:00
Ole Laursen b7232d0ab7 Revamp tracked/not tracked icons in search results to not do one query
per document, and make them work on all search result pages, move the
utility function to community/
 - Legacy-Id: 10690
2016-01-14 18:04:05 +00:00
Henrik Levkowetz 1f4f9cc25d Merged in [10685] from lars@netapp.com:
Commit r10578 broke search result table display due to the added column. Fix
this.  (Also update vnu.jar. Unrelated, but wasn't careful when committing.)
 - Legacy-Id: 10689
Note: SVN reference [10685] has been migrated to Git commit 820d406e33
2016-01-14 17:47:27 +00:00
Ole Laursen cd5c60ccf1 Clean up permission checking in community lists, fix split in
track/untrack between personal/group lists, get rid of remove_document
 - Legacy-Id: 10680
2016-01-13 17:37:22 +00:00
Ole Laursen e807115e81 Fix community list track/untrack to use POST rather than GET
- Legacy-Id: 10660
2016-01-13 10:15:38 +00:00
Henrik Levkowetz b010a9c7c0 Merged in [10622] from lars@netapp.com:
The previous fix for the search result table width was incorrect.
 - Legacy-Id: 10649
Note: SVN reference [10622] has been migrated to Git commit b23952c615
2016-01-12 17:00:44 +00:00
Henrik Levkowetz 2bab09b6f4 Added a coloured bar at the right-hand side of the ADs' view of iesg/agenda/documents/, in order to make it easier to distinguish between the 'yes' and 'no-objection' colour codes.
- Legacy-Id: 10578
2015-12-11 11:34:23 +00:00
Henrik Levkowetz e367c9e4ea Merged in [9855] from lars@netapp.com:
Fix bugs in adding/removing documents to personal ID list.
 - Legacy-Id: 9866
Note: SVN reference [9855] has been migrated to Git commit 0293061c3f
2015-07-23 08:54:46 +00:00
Henrik Levkowetz 615a12485c Merged in [9852] from lars@netapp.com:
Fix display of AD and shepherd names, and also fix the respective mailto: links.
 - Legacy-Id: 9865
Note: SVN reference [9852] has been migrated to Git commit 573496df73
2015-07-23 08:25:02 +00:00
Henrik Levkowetz 5dca6d4ef0 Added a 'pull-right' class to 'new' labels in document search lists, for a more consistent look.
- Legacy-Id: 9709
2015-07-09 13:17:40 +00:00
Henrik Levkowetz 919a63a9b5 Merged in [9637] from rjsparks@nostrum.com:
Color agenda/documents rows with position taken when viewing as an AD. Fixes bug #1679.
 - Legacy-Id: 9657
Note: SVN reference [9637] has been migrated to Git commit edcaf46138
2015-06-03 14:17:05 +00:00
Henrik Levkowetz 2fa307aa3f Tweaked the document list display slightly, to sqeeze in a little bit more info on a page. Addresses issue # 1663.
- Legacy-Id: 9642
2015-05-22 20:01:19 +00:00
Robert Sparks edcaf46138 Color agenda/documents rows with position taken when viewing as an AD. Fixes bug #1679. Commit ready for merge.
- Legacy-Id: 9637
2015-05-13 18:00:09 +00:00
Henrik Levkowetz 8365a36c2f Fixed an issue where the https: schema inadvertently had been included in RFCDIFF_PREFIX, causing duplicate schema specifications in some places. Changed name to RFCDIFF_BASE_URL and cleaned out the duplicate schema specifiers.
- Legacy-Id: 9593
2015-04-30 22:00:49 +00:00
Henrik Levkowetz 0d08fff0ac Updated a bunch of links from http: to https: based on a patch from lars@netapp.com.
- Legacy-Id: 9555
2015-04-24 21:45:04 +00:00
Henrik Levkowetz ec0321e0da Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate.
- Legacy-Id: 9551
2015-04-24 20:40:01 +00:00
Henrik Levkowetz fb38bf16e2 Shaved off some more vertical space in the document tables. Builds on [9494], addresses #1660, #1663, #1665.
- Legacy-Id: 9495
Note: SVN reference [9494] has been migrated to Git commit 43e16f1516
2015-04-14 19:03:52 +00:00
Henrik Levkowetz 43e16f1516 Introduced a couple of changes to the document list row format to make rows take up less vertical space: Moved the page count in under the date, so it won't add vertical space, and made shepherd email addresses break across lines if needed, instead of squashing the column widths of the other columns.
- Legacy-Id: 9494
2015-04-14 18:27:21 +00:00
Henrik Levkowetz 20d35e0ad8 Updated the search_result_row template to refer to doc.related_ipr instead of the now eliminated extra search-result attribute doc.iprs. Updated the facelift todo list.
- Legacy-Id: 9449
2015-04-11 19:45:21 +00:00
Henrik Levkowetz 3f33c7033d Added a missing <td/> and removed dead template code.
- Legacy-Id: 9370
2015-04-03 13:32:49 +00:00
Ole Laursen a589115ff4 Summary: Reindent all HTML files to follow the previous convention (no
tabs) and kill the scripts block in favour of just using a js block with
a script tag (which is easier to understand for context-sensitive
modes such as web-mode in Emacs). Also fix a couple of details, e.g.
missing semicolons in JS snippets.
 - Legacy-Id: 9096
2015-02-17 18:01:04 +00:00
Ole Laursen 93ee2e669c Summary: Simplify HTML a bit for document errata label, fixes odd
rendering problem spotted by Warren Kumari
 - Legacy-Id: 9089
2015-02-17 09:20:24 +00:00
Ole Laursen 703d9995ea Summary: Fix bugs in implementation of add/remove from community list JS
- Legacy-Id: 8967
2015-02-04 14:25:53 +00:00
Ole Laursen d0999c8b5e Merge facelift-r8510 branch with trunk. The IPR tool still has some non-facelifted parts and ideosyncracies. Fix a couple of minor bugs (including infamous empty licensing choice) in the IPR code, and port the IPR views to use the render shortcut.
- Legacy-Id: 8896
2015-01-22 17:38:05 +00:00
Ryan Cross 1d92f940ce Fixes #1570. Fixes document search result row and IESG agenda documents row links to IPR. Commit ready for merge.
- Legacy-Id: 8842
2015-01-06 19:42:32 +00:00
Ole Laursen 41cb195f52 Rebase /personal/lars/5.6.4-facelift/ on trunk
- Legacy-Id: 8520
2014-10-30 14:31:07 +00:00
Lars Eggert a4daf2630c Merge branch 'lars/5.6.3-facelift' into lars/5.6.4-facelift
Conflicts:
	ietf/doc/templatetags/ietf_filters.py
	ietf/doc/views_charter.py
	ietf/templates/doc/charter/edit_notify.html
	ietf/templates/doc/charter/edit_telechat_date.html
	ietf/templates/doc/document_ballot_content.html
	ietf/templates/doc/document_history.html
	ietf/templates/doc/edit_notify.html
	ietf/templates/doc/edit_telechat_date.html
	ietf/templates/doc/notify.html
	ietf/templates/group/concluded_groups.html
 - Legacy-Id: 8429
2014-10-14 11:48:57 +00:00
Ole Laursen f291a466d7 Change Document.shepherd to point to the email address rather than the
person, add migration to fix the existing shepherds, fix wording and
max entries on change shepherd page to be more self-explanatory
 - Legacy-Id: 8268
2014-08-13 11:40:01 +00:00
Shane Kerr ea05042d12 Provide "untrack" option in the search results page.
- Legacy-Id: 8139
2014-07-19 21:00:22 +00:00
Shane Kerr 4d71417817 Untrack this document button added to draft document view.
- Legacy-Id: 8130
2014-07-19 19:44:30 +00:00
Ole Laursen 7a86afe1ab Port templates to new {% url %} syntax with quotes around the first parameter
- Legacy-Id: 6877
2013-12-11 16:33:40 +00:00
Ole Laursen 6ac0920af0 Move idrfc/ templates to doc/ and subdirectories in doc/, move ported ballot_icon template tag, delete dead code
- Legacy-Id: 6052
2013-08-14 14:10:46 +00:00
Renamed from ietf/templates/idrfc/search_result_row.html (Browse further)