Commit graph

47 commits

Author SHA1 Message Date
Henrik Levkowetz 6f285a12f4 Changed the handling of some test directory creation and removal code, to be more consistent. Fixed a problem where a test didn't create and remove a test directory it used.
- Legacy-Id: 9203
2015-03-15 16:01:15 +00:00
Henrik Levkowetz 86997e1e95 Turned the api.py file into a module. Moved the makeresources management command to the api module. Added some api tests. Added crawling of api files to the test-crawler. Adjusted some resource files discovered by the test suite and test-crawler. Removed a bunch of empty model files.
- Legacy-Id: 9144
2015-03-03 20:23:36 +00:00
Henrik Levkowetz cebffd36d8 Added django.setup() to some additional scripts, as required under Django 1.7.
- Legacy-Id: 9068
2015-02-10 22:09:22 +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
Henrik Levkowetz 8c42989d5d Pyflakes cleanup compliant with pyflakes 0.8.1, which seems to find things 0.8.0 didn't fin.
- Legacy-Id: 7558
2014-04-01 16:25:18 +00:00
Henrik Levkowetz 02031a01b9 Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz ab069c4570 Made ietf/idindex/ pyflakes-clean.
- Legacy-Id: 7466
2014-03-15 17:17:25 +00:00
Ole Laursen 591e90a7a0 Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too
- Legacy-Id: 7107
2014-01-12 16:55:42 +00:00
Ole Laursen be8eb96bec Get rid of a bunch of DB queries in all_id2_txt
- Legacy-Id: 7106
2014-01-12 14:16:37 +00:00
Ole Laursen defb116721 Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related)
- Legacy-Id: 6992
2013-12-18 16:58:34 +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
Ole Laursen 9457669310 Merge in changes from the old shimfree branch
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Henrik Levkowetz e4f4467725 Changed tests to use our own subclassed TestCase, and changed almost all fixtures to be perma_fixtures.
- Legacy-Id: 6320
2013-09-30 20:36:20 +00:00
Ole Laursen c191a691e0 Remove "names" fixture from all tests, since it's now loaded once just
after creating the test database through the global test fixture
mechanism - this speeds up multiple tests considerably
 - Legacy-Id: 6305
2013-09-29 17:35:59 +00:00
Ole Laursen d2b9adf3cb Move ietf_filters templatetag from idtracker/ to doc/
- Legacy-Id: 6053
2013-08-14 15:11:24 +00:00
Henrik Levkowetz cbfe489ff5 Merged in more shim-layer removals from olau@iola.dk
(-r5465:HEAD from branch/iola/shimfree).  Copying relevant
commit messages here:

 - Deleted dead code in many places.

 - Renamed id-something to draft-something, make the "is
   this eligible for expiration" logic clearer

 - Added a name for IPR search URL

 - Revamped the ballot popup view

 - URL reversed the IPR search link instead of hardcoding it

 - Cleaned up search views and remove dead code, port them to the new DB
   schema, hack related views in iesg/ and wginfo/ to use the new search
   interfaces, avoid camelCase in search GET parameters (with
   backwards-compat fallback), add some simple search unit tests, remove
   caching from views_search.py index pages as they're now pretty fast to
   generate, rewrite ballot popup JS, regularize some CSS classes to use
   hyphen-notation rather than camelCase, move some of the search
   templates to doc/.

   idrfc/ now mostly contains some wrapper code still in use by other
   subdirs, some ported code not yet moved, and dead code.

 - Fixed output bug in test crawler and print referrer upon errors so it's
   easier to figure out where a link came from

 - Added /doc/in-last-call/ to crawler, report original page as referrer in
   a redirect chain rather than intermediate URL

 - Ported idindex to new schema, speed them up, add tests, refactor index
   page in views_search to share code with the text index file, get rid
   of some special-case idindex filters from ietf_filters, move
   "/drafts/" redirects to a file in /doc/

 - Ported /idtracker/status/ and /idtracker/status/last-call/ overview of
   drafts in IESG process to new schema in /doc/iesg/ and
   /doc/iesg/last-call/

 - Added redirects for all of /idtracker/*, removed all view code and other
   dead code from idtracker/

 - Removed the idtracker sitemap indexing drafts - in its current form,
   it adds nothing of value to the HTML-based /doc/all/ view, and it's
   pretty slow

 - Ported idtracker feeds to new schema, move them to doc/, cleaned up
   idtracker/ - only templatetags/ietf_filters and proxy code is left
 - Legacy-Id: 5836
2013-07-17 20:52:39 +00:00
Ole Laursen 851107ce8e Add comment to explain what the idindex module is for
- Legacy-Id: 5637
2013-04-11 10:23:16 +00:00
Ole Laursen 3d1eb07afe Port idindex to new schema, speed them up, add tests, refactor index
page in views_search to share code with the text index file, get rid
of some special-case idindex filters from ietf_filters, move
"/drafts/" redirects to a file in /doc/
 - Legacy-Id: 5634
2013-04-10 11:48:07 +00:00
Henrik Levkowetz 6f5ae2edcd Added a new field, #16: draft AD (name and email) to all_id2.txt
- Legacy-Id: 5128
2012-12-15 22:43:10 +00:00
Henrik Levkowetz ae551935da Add shepherd field to all_id2.txt
- Legacy-Id: 4837
2012-09-11 16:21:10 +00:00
Henrik Levkowetz 356552dac9 Fixed id_abstracts to include drafts assigned directly to areas, not only individual and WG drafts.
- Legacy-Id: 4620
2012-07-19 14:03:21 +00:00
Henrik Levkowetz 0e8ab0dbfd In all_id2.txt, set the WG field as empty for AD-sponsored documents which have group set to an area. Fixes a problem with draft alias generation.
- Legacy-Id: 4066
2012-03-07 10:36:39 +00:00
Ole Laursen 6afceb835e Port idindex to new schema, fixes #770.
- Legacy-Id: 3985
2012-02-27 18:46:27 +00:00
Ole Laursen 980d4e6444 Move new schema models from redesign/ to ietf/
- Legacy-Id: 3855
2012-01-24 17:17:24 +00:00
Ole Laursen 03bed41630 Merged in changes from the conversion branch
- Legacy-Id: 3187
2011-06-28 18:20:20 +00:00
Henrik Levkowetz 0af05ca7fd Catch bad or missing area when generating the all_id2 file.
- Legacy-Id: 2487
2010-08-19 13:52:28 +00:00
Henrik Levkowetz 266b7820d0 Merged from log:branch/2.00@2363: Current release branch head to trunk.
- Legacy-Id: 2365
2010-07-21 12:48:05 +00:00
Henrik Levkowetz fa77ac30d5 Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py
- Legacy-Id: 841
2007-07-04 21:17:57 +00:00
Bill Fenner 0a7b45a9f4 Fix exception when given a bad numeric ID for a WG (return 404 instead).
Add a testurl for the case that was failing on datatracker.
 - Legacy-Id: 744
2007-06-28 12:02:12 +00:00
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00
Henrik Levkowetz 6b80966beb Adding some missing tests. The /drafts/dead/ diff need to be checked up.
- Legacy-Id: 673
2007-06-26 23:31:24 +00:00
Henrik Levkowetz e80bb3b76f Add sort to the the name sorted rfc list -- .cgi and .django sort may be different.
- Legacy-Id: 660
2007-06-26 19:18:58 +00:00
Bill Fenner 8d6b0bae97 Moves:
* announcements -> ann
 * liaisons -> liaison
 * idindex -> drafts
 * mailinglists -> list

I checked the tests and used a link checker locally, so hopefully
the fallout will be minimal.
 - Legacy-Id: 657
2007-06-26 18:29:55 +00:00
Henrik Levkowetz ec1b40849d Skip the diff of one of the /idindex/ entries -- the stored diff can't match both, since the diffed URLs are specified at the top of the diff.
- Legacy-Id: 612
2007-06-22 09:01:49 +00:00
Bill Fenner f1f94506f8 Don't diff view_related_docs. We've determined that the diffs are
OK, but it's silly to have a stored diff file that's basically
the whole page.
 - Legacy-Id: 611
2007-06-22 01:56:40 +00:00
Bill Fenner 0a3cee08a0 Skip the mailinglists/request/help redirect tests; those are only
served by the mailing list form so bookmarks to them are extremely
unlikely.

Remove trailing "?" from /idtracker/ entry; the redirect tool
strips off empty query strings.

Add ?cat=bugs to the send_email entry so the redirect will pass.

Skip the redirect test for the ballot, since there's an extra
(unused) query argument, filename=.

Add in all the query args that will get passed through the
redirect when searching for bgp-m, to make sure that they work
and to make the redirect test pass.
 - Legacy-Id: 609
2007-06-22 01:46:47 +00:00
Henrik Levkowetz 361ccbb9d1 A testurl tweak, and an additional acceptable diff file for /idindex/? .
- Legacy-Id: 605
2007-06-21 23:32:15 +00:00
Bill Fenner 61dbe770e2 Other than the 5 documents listed in #147, all_id.txt and all_id.html
are the same as their cgi counterparts.  Differences:

 * The sections are ordered differently; the cgi has Active, Published, Expired, Withdrawn; the django has Active, Expired, Published, Withdrawn by IETF, Withdrawn by Submitter.  Since the explicit ordering by the cgi was why it missed the "Withdrawn by Submitter" documents, I chose to keep the database-influenced ordering.
 * The revision numbers for published documents are of the version that was published, not of the tombstone.
 - Legacy-Id: 590
2007-06-21 17:38:56 +00:00
Bill Fenner 02933825ef Tweak ordering to be like the cgi version.
Remove debugging and leftover bits from related_docs function.

Handle unexpected exceptions in related_docs related to schema
oddities described in #98:
* There might not be a row in the RFC table for a given rfc_number of an I-D
* There might be multiple documents published as the same RFC

Don't skip anything when recursing from our equivalents of
get_rfcs_obsoleted and get_rfcs_obsoleted_by.
 - Legacy-Id: 521
2007-06-18 22:37:24 +00:00
Bill Fenner 7fa51e03cd Change the idindex search to use GET to allow bookmarking searches.
Use request.REQUEST to allow backwards-compatible searching.
 - Legacy-Id: 486
2007-06-18 14:24:56 +00:00
Henrik Levkowetz 054d04443f Commenting out some noisy debug print statements.
- Legacy-Id: 433
2007-06-16 15:05:30 +00:00
Bill Fenner 16b718c917 Add some URLs for the idindex tool.
- Legacy-Id: 416
2007-06-15 18:35:15 +00:00
Bill Fenner 7fec55b633 Initial implementation of view_related. The related_docs() function
is still a work in progress.  I've been using
draft-ietf-dnsext-dnssec-protocol as a test case; related_docs()
returns the same 137 documents as the cgi code but some of the
relationships are different.  Right now, the skip argument is
ignored.
 - Legacy-Id: 246
2007-06-06 02:14:29 +00:00
Henrik Levkowetz 03c18bd33d Fixing a bunch of nits pyflakes were complaining about, in order to get a clean run. There are still at least 2 cases of using undefined values which needs scrutiny.
- Legacy-Id: 235
2007-06-05 16:58:58 +00:00
Bill Fenner 0eb450cab7 Finish the poorly-thought-through and poorly-implemented
GroupIETF->IETFWG rename.
 - Legacy-Id: 179
2007-05-29 13:39:32 +00:00
Bill Fenner 6396c8ee73 Use (some) new class functions to generate choices
Defer choice generation from database until object instantiation.
 - Legacy-Id: 124
2007-05-10 22:09:27 +00:00
Henrik Levkowetz 5872696834 Moving ietf to trunk/ietf
[[Split portion of a mixed commit.]]
 - Legacy-Id: 96.1
2007-05-04 12:37:28 +00:00