Commit graph

6387 commits

Author SHA1 Message Date
Henrik Levkowetz e6121ac0f8 Fixed a bad filter argument found by the Django 1.8 code.
- Legacy-Id: 12408
2016-11-28 21:06:42 +00:00
Henrik Levkowetz 53d68af9cd Adapted the utils template tests to the new template handling in Django 1.8.
- Legacy-Id: 12407
2016-11-28 21:05:17 +00:00
Henrik Levkowetz 554ec2d78c Removed an unused import
- Legacy-Id: 12406
2016-11-28 21:04:15 +00:00
Henrik Levkowetz 671df0492a Fixed an issue where a queryset filter argument didn't have the right datatype.
- Legacy-Id: 12403
2016-11-28 18:05:14 +00:00
Henrik Levkowetz 7c2a1b2ee4 Undid a FK to o2o change we don't want to do (we have instances where the FK is None).
- Legacy-Id: 12402
2016-11-28 17:50:08 +00:00
Henrik Levkowetz 7c23d0c52e Silenced a system check we won't always follow.
- Legacy-Id: 12401
2016-11-28 17:47:08 +00:00
Henrik Levkowetz 7c7e282797 When using select_related, field names are now valiadate. Fixed some invalid names.
- Legacy-Id: 12269
2016-11-04 19:03:58 +00:00
Henrik Levkowetz 1558a52c55 django.admin.utils.get_deleted_objects() changed signature. Fixed.
- Legacy-Id: 12268
2016-11-04 19:02:40 +00:00
Henrik Levkowetz 90bf63f01e Fixed the import path for formtools.
- Legacy-Id: 12263
2016-11-03 20:54:35 +00:00
Henrik Levkowetz c05d53da09 Fixed the import path for some template classes.
- Legacy-Id: 12262
2016-11-03 20:52:02 +00:00
Henrik Levkowetz 8d1aca19cc Rewrote the template coverage loader function to a proper template loader class.
- Legacy-Id: 12261
2016-11-03 20:51:06 +00:00
Henrik Levkowetz f7cf00b7ec Use get_or_create when creating test data, to avoid duplicate key warnings.
- Legacy-Id: 12259
2016-11-03 20:48:38 +00:00
Henrik Levkowetz 4f2eb07fa7 Updated proceedings_templates fixture.
- Legacy-Id: 12258
2016-11-03 20:47:14 +00:00
Henrik Levkowetz 87e1339924 Fixed all the warnings emitted by the check command; mostly use of null=True on ManyToManyFields, which doesn't make sense.
- Legacy-Id: 12256
2016-11-03 20:13:44 +00:00
Henrik Levkowetz cfe4d2f6aa Removed use of the fix_ampersands() function.
- Legacy-Id: 12254
2016-11-03 20:11:49 +00:00
Henrik Levkowetz ca570ae355 Reverted an inadvertent commit of all changes.
- Legacy-Id: 12253
2016-11-03 20:10:09 +00:00
Henrik Levkowetz 276c9c1030 Removed use of the fix_ampersands() function.
- Legacy-Id: 12252
2016-11-03 20:08:44 +00:00
Henrik Levkowetz 7b6407dfed Rewrote the test runner command-line switch declarations to use parser.add_argument() instead of the now unsupported option_list class attribute.
- Legacy-Id: 12251
2016-11-03 20:07:22 +00:00
Henrik Levkowetz 0d62fdeb23 Set version info and settings back to development mode
- Legacy-Id: 12236
2016-10-30 12:15:42 +00:00
Henrik Levkowetz 9c818093b0 Set version info to release version 6.37.0 before branching.
- Legacy-Id: 12234
2016-10-30 12:15:33 +00:00
Henrik Levkowetz 21dfc19441 Added some logging to wsgi.py, to show the virtualenv settings being used.
- Legacy-Id: 12230
2016-10-29 11:44:00 +00:00
Henrik Levkowetz 47681c5924 Tweaks to settings.py, adding information about the use of some settings.
- Legacy-Id: 12229
2016-10-29 11:41:22 +00:00
Henrik Levkowetz 2b2abdbc29 Merged in [12213] from rcross@amsl.com:
Fix bug where interim announcement form was initialized with lists instead of strings.
 - Legacy-Id: 12228
Note: SVN reference [12213] has been migrated to Git commit ab945b16e5
2016-10-29 10:56:34 +00:00
Henrik Levkowetz aec77c2385 Rewrote Document.href() to not do database queries when possible, as that has a big performance impact. Fixed a number of tests which relied on href() not doing the right thing for simplified test data. Added caching of canonical_name(), which can be quite heavy. Additional refactoring in a number of places, to use better test data and avoid test failures for good code :-)
- Legacy-Id: 12226
2016-10-28 16:59:42 +00:00
Henrik Levkowetz a1934d1713 Refined the sql debug view at the bottom of each page. Added a column showing the WHERE clause, as that is quite helpful in working out where a given query is coming from. Added an sql_debug template variable to make it easier to switch between the sql debug view and using the django-debug-toolbar.
- Legacy-Id: 12225
2016-10-28 16:46:05 +00:00
Henrik Levkowetz 7f9fa7b02a Tweaked SQL a debug table header.
- Legacy-Id: 12221
2016-10-26 20:21:09 +00:00
Henrik Levkowetz 534a8d3e12 Reverted last commit as it leads to test failures. Doubtful if these actually can occur in production, but tests will have to be re-written before using the added caching.
- Legacy-Id: 12220
2016-10-26 20:20:37 +00:00
Henrik Levkowetz e1cadcb119 Added caching to avoid calling the meat of each of the Session minutes(), recordings(), bluesheets(), slides(), drafts() methods more than once per session. This removes another 3*#sessions sql queries when the materials are all in place (less when the first invocation reurns nothing).
- Legacy-Id: 12219
2016-10-26 19:17:41 +00:00
Henrik Levkowetz af584c6a1f Removed caching of the materials page (edit buttons are different for different users), and used select_related() and code re-write to reduce the sql query count from ~1900 to ~600, query time from ~2s to ~0.5s. More can be done, but the page response time is more acceptable now.
- Legacy-Id: 12218
2016-10-26 19:06:06 +00:00
Henrik Levkowetz 681395ff8e Added a column to the debug view of sql queries which indicate whether a query originated in view code or template rendering.
- Legacy-Id: 12217
2016-10-26 18:49:58 +00:00
Henrik Levkowetz 6a905897f8 Fixed a bad link to uploaded session agendas.
- Legacy-Id: 12214
2016-10-25 21:38:46 +00:00
Ryan Cross ab945b16e5 Fix bug where interim announcement form was initialized with lists instead of strings. Commit ready for merge
- Legacy-Id: 12213
2016-10-25 20:25:54 +00:00
Henrik Levkowetz a2c8fa0178 Added a Document.pub_date() method which returns the RFC publication datetime or other documents' new-revision datetime. Changed the generated bibtex entries to use pub_date(). Added tests for bibtext entries. Added 'bibtexparser' to requirements.txt. Fixes issue #2032.
- Legacy-Id: 12212
2016-10-25 18:07:48 +00:00
Henrik Levkowetz cae4ab0024 Added caching of Document.href() values.
- Legacy-Id: 12210
2016-10-25 00:14:21 +00:00
Henrik Levkowetz 0656d0daa5 Changed the agenda template to provide links to video recordings on youtube if available, instead of pointing at meetecho's archive.
- Legacy-Id: 12209
2016-10-25 00:13:03 +00:00
Henrik Levkowetz 17bf44af3c To minimize what seems to be an increased risk of segfaults when using virtualenv with system packages, this commit introduces an alternative, which does away with the general system package availability, but adds symlinks to two svn related system packages when running checks.
- Legacy-Id: 12208
2016-10-25 00:11:31 +00:00
Henrik Levkowetz 669627b53e Set version info and settings back to development mode
- Legacy-Id: 12203
2016-10-21 15:15:06 +00:00
Henrik Levkowetz 3e4bb71dba Set version info to release version 6.36.0 before branching.
- Legacy-Id: 12201
2016-10-21 15:14:59 +00:00
Henrik Levkowetz 2bb65e7d1b Changed svn:ignore
- Legacy-Id: 12198
2016-10-21 14:48:16 +00:00
Henrik Levkowetz 5b6ffbcbd5 Fixed a bug in the API cache key construction which could make the key longer than necessary.
- Legacy-Id: 12196
2016-10-21 14:27:18 +00:00
Henrik Levkowetz 8e2259ebac Added a test for meeting/agenda-utc.
- Legacy-Id: 12195
2016-10-21 14:02:49 +00:00
Henrik Levkowetz a6db502108 Removed some dead code.
- Legacy-Id: 12194
2016-10-21 13:58:36 +00:00
Henrik Levkowetz 38245c6323 Fixed the javascript code in the floor-plan template that adds room links. It didn't handle rooms without assinged floor-plans well.
- Legacy-Id: 12192
2016-10-20 21:44:47 +00:00
Henrik Levkowetz 27cd21155c Fixed a bug in testing for directory existence in the test setup.
- Legacy-Id: 12185
2016-10-19 22:38:28 +00:00
Henrik Levkowetz e1f0477ec8 Make sure that the svn component is enabled, even if we can't find the Trac inherit-from settings file.
- Legacy-Id: 12184
2016-10-19 22:36:42 +00:00
Henrik Levkowetz c22842a7c4 Made the wiki glue test skippable, in case the python subversion bindings are unavailable. Added creation of temporary directories also for the svn repositores created for wikis during testing.
- Legacy-Id: 12183
2016-10-19 21:14:20 +00:00
Henrik Levkowetz ba5c17ecfd Merged in a management command which provides glue code for creation and maintenance of Trac issue tracker and wiki installations per group. New groups of type wg, rg, and area will autmatically receive a Trac instance.
- Legacy-Id: 12182
2016-10-19 18:08:05 +00:00
Henrik Levkowetz f9b4955880 Tweaked the settings a bit, to avoid problems if changing TRAC_WIKI_DIR_ROOT after TRAC_WIKI_DIR_PATTERN has been set. Added a --wiki-dir-pattern switch to the management command.
- Legacy-Id: 12181
2016-10-19 14:56:57 +00:00
Henrik Levkowetz d400b88239 Added a test for the create_group_wikis management command.
- Legacy-Id: 12180
2016-10-19 14:53:58 +00:00
Henrik Levkowetz 41945d5525 Reverted unintended commit
- Legacy-Id: 12179
2016-10-19 14:47:17 +00:00