Commit graph

207 commits

Author SHA1 Message Date
Ole Laursen 602feff7c9 Add tests for new material code
- Legacy-Id: 7850
2014-06-04 13:10:55 +00:00
Ole Laursen 6e83335f0f Fix a bunch of mistakes found by PyFlakes in the new materials code
- Legacy-Id: 7839
2014-06-03 11:28:27 +00:00
Ole Laursen 88cf68d43f Move group material handling code to doc/material/ now that the view of the material is integrated into /doc/, fix a bunch of bugs
- Legacy-Id: 7834
2014-06-03 09:42:16 +00:00
Ole Laursen c94757405d Add a /doc/ page for materials (slides, agendas, minutes), link to that from the group materials page
- Legacy-Id: 7825
2014-06-02 12:18:42 +00:00
Ole Laursen 7df4de78e3 Throw a validation error when uploading a material with an already used name, asking uploader to either choose a new title or revise the previous material
- Legacy-Id: 7808
2014-05-31 14:16:59 +00:00
Ole Laursen 63dabff779 Fix some bugs in previous commit
- Legacy-Id: 7806
2014-05-30 16:17:21 +00:00
Ole Laursen 976d0b9d68 Turn charter page for non-chartering groups into about page, fix a bunch of potentially broken links due to the split between group-type prefixed URLs and /group/ ones
- Legacy-Id: 7805
2014-05-30 15:59:02 +00:00
Ole Laursen 544cd702bb Drop the material doc type, instead present a choice of doc types for uploading materials (currently only slides) and use that, introduce a DOCUMENT_PATH_PATTERN setting for storing the files and only look in proceedings/ for documents that are actually meeting related
- Legacy-Id: 7802
2014-05-30 14:07:16 +00:00
Ole Laursen 252db0dffb Fix some bugs, add correct document events in materials upload
- Legacy-Id: 7780
2014-05-26 15:40:51 +00:00
Ole Laursen 3bfb6dcd43 Added support data for a tentative new material document type, add a upload/edit/revise page for uploading and revising group materials, still missing a couple of details and tests
- Legacy-Id: 7776
2014-05-23 16:26:56 +00:00
Ole Laursen 17cf1095c7 Fix cosmetic problem with label_suffix and the delete labels on the milestones page
- Legacy-Id: 7770
2014-05-22 16:10:37 +00:00
Ole Laursen 0bd82434c8 Fix problem with milestones editing claiming that all resolved
milestones have been changed when you click the review changes button
(by removing work-around for bug in previous version of Django)
 - Legacy-Id: 7769
2014-05-22 15:55:15 +00:00
Ole Laursen 9579525ca4 Add simple materials page, tie up some of the loose ends in group generalization work
- Legacy-Id: 7768
2014-05-22 15:53:20 +00:00
Ole Laursen 0144ef366b Add description field on group, enable most group info page views to
work without a group type to pave the way for /group/<acronym>/ URLs,
make charter page more generic, enable it to handle descriptions and
walk over all personnel instead of picking out specific types
of roles, add a redirect view on /group/<acronym>/ to lead to either
documents/ or charter/, add simple group.features() class to be able
to condition on group features rather than specific group types,
adjust group pages menu accordingly
 - Legacy-Id: 7758
2014-05-20 10:19:26 +00:00
Ole Laursen 43e472b647 Remove IETFWG_DESCRIPTIONS_PATH which is no longer useful as all charter files will soon have been moved
- Legacy-Id: 7582
2014-04-08 14:15:49 +00:00
Ole Laursen 357f88c0d6 Add simple overview page with links to concluded groups, use that instead of the tools page for the left menu link
- Legacy-Id: 7567
2014-04-03 11:49:05 +00:00
Ole Laursen 25d37c04f3 Make sure BoF states don't show up for RGs
- Legacy-Id: 7564
2014-04-02 11:44:17 +00:00
Ole Laursen 8dabf4cd79 Fix bug in displaying charter new group links
- Legacy-Id: 7563
2014-04-02 11:40:20 +00:00
Robert Sparks 1221f79af9 Updates and bugfixes to the agenda editing features
* Removes the pattern of using ScheduledSession m2m objects with one of the relationships left as None
* Improves scheduled session state handling
* Simplifies sending email to scheduled session requestors
* Improved timeslot purpose and room editing
* Improved access controls to editing forms
* Better test coverage for the meeting views
* Improvements to the javascript driven by prototyping automated tests
* Better initialization of a new meeting
On the session request form:
  - Allows specifiying room resources (projectors, meetecho)
  - Allows specifying what people must be present
On the schedule editing page:
  - correctly calculates conflict levels
  - displays conflicts in and out of each session separately
  - italicizes BoFs
  - shows resource and people conflicts
Adds automated placement as a management command

Commit ready for merge.
 - Legacy-Id: 7561
2014-04-01 22:17:18 +00:00
Ole Laursen f52e676793 Move chartering groups to /group/chartering/ (with a redirect from the old location), list RGs there too, and amend the previous fix to the chartering process for non-WGs so they have internal and external review states instead of just approved. Also move the code in wginfo/ to group/ as it is no longer just about info for WGs.
- Legacy-Id: 7556
2014-04-01 11:59:08 +00:00
Ryan Cross 0fafe56381 allow edit of timeslots, changes to scheduled notifications, support non-official schedules
- Legacy-Id: 7554
2014-03-28 23:16:41 +00:00
Ole Laursen c125ca1c64 Fix edit pages and milestones functionality to work with RGs - currently the IRTF Chair takes the same role as the AD
- Legacy-Id: 7541
2014-03-25 11:50:24 +00:00
Henrik Levkowetz 2a551bb35b Made ietf/group/ pyflakes-clean.
- Legacy-Id: 7465
2014-03-15 17:02:52 +00:00
Henrik Levkowetz 5bef5d11ae Made doc/ pyflakes-clean.
- Legacy-Id: 7462
2014-03-15 16:09:47 +00:00
Robert Sparks ad2784962f ported forward from personal/rjs/trunk-7174. Still one existing test failing
- Legacy-Id: 7449
2014-03-08 10:37:24 +00:00
Henrik Levkowetz bcbc22f45b Only show a link to the tools page for a group if the tools page is likely to exist, i.e., the group is a WG and it is or has been active.
- Legacy-Id: 7264
2014-02-19 14:41:29 +00:00
Ole Laursen 1fb05041cc Fix duplicate name in recently added stream tests
- Legacy-Id: 7093
2014-01-09 18:11:12 +00:00
Ole Laursen be475b8996 Add missing tests of stream document pages
- Legacy-Id: 7090
2014-01-09 17:51:05 +00:00
Ole Laursen c7a2c64c10 Get rid of fixtures that were added for the meeting tests previously, they are not used anymore, and incomplete so will not load with Django 1.6
- Legacy-Id: 7070
2013-12-24 16:14:05 +00:00
Ole Laursen 083b3138c6 Rename group AJAX URL parameter to acronym instead of groupname since
it is in fact the acronym, not the name of the group
 - Legacy-Id: 7064
2013-12-24 12:49:25 +00:00
Ole Laursen ce3e6c59de ._meta.module_name -> ._meta.model_name
- Legacy-Id: 6978
2013-12-18 12:07:04 +00:00
Ole Laursen 7f277a8fbb Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5
- Legacy-Id: 6968
2013-12-18 10:13:40 +00:00
Ole Laursen d66ac15fc2 Rewrite a bunch of HttpResponseRedirect + url reverse calls to instead
take advantage of the redirect shortcut (introduced in Django 1.1)
 - Legacy-Id: 6960
2013-12-17 10:23:42 +00:00
Ole Laursen 84a9f49053 mimetype -> content_type (mimetype is deprecated)
- Legacy-Id: 6945
2013-12-16 16:53:47 +00:00
Ole Laursen 77e03c7355 Fix bugs in stream edit test
- Legacy-Id: 6933
2013-12-16 11:55:15 +00:00
Ole Laursen 3d7b349e20 Remove group/tests/, it only contains two tests (on a fixture, not
really on any IETF code) and it clashes with the tests in group/tests.py
 - Legacy-Id: 6932
2013-12-16 11:53:10 +00:00
Ole Laursen 7f25469c6b Drop the group/person/role global fixtures, the fixture loader in
Django 1.6 refuses to load them because they have dangling foreign
keys, and in rewriting them it turns out it is easier to do so in code
- so refactor the test data generation code to have a separate
function with the unchanging base data and call that from the global
fixture setup
 - Legacy-Id: 6917
2013-12-13 15:58:36 +00:00
Ole Laursen 99aa5e98f3 Import update_wrapper from functools instead of from Django
- Legacy-Id: 6886
2013-12-11 17:10:26 +00:00
Ole Laursen 6a98fec2c3 Use built-in json module in Python instead of simplejson bundled with Django
- Legacy-Id: 6883
2013-12-11 16:59:19 +00:00
Ole Laursen cfa0d47ca0 Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django
- Legacy-Id: 6878
2013-12-11 16:36:09 +00:00
Ole Laursen b92a49b216 Remove verify_exists=False from URLField, it is now obsolete
- Legacy-Id: 6875
2013-12-11 15:31:18 +00:00
Ole Laursen 185149c46b Strip out all ADs from the working group fixtures, apparently they are not included in another permafixture so cause trouble in some tests
- Legacy-Id: 6841
2013-12-07 19:28:13 +00:00
Ole Laursen 3e709e3f24 Remove proxies
- Legacy-Id: 6826
2013-12-07 12:01:57 +00:00
Ole Laursen e63ac36b8f Remove shim layer from ietfauth, delete some dead code and migrate
remaining importers of ietfauth.decorators to ietfauth.utils
 - Legacy-Id: 6797
2013-12-05 16:24:03 +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 3863b0def3 Added another state to the possible IETFWG states in the group proxy models file, to avoid exceptions.
- Legacy-Id: 6484
2013-10-23 05:51:04 +00:00
Henrik Levkowetz a3c8adfdf6 Merged in the contents of commit [6337] from mcr@sandelman.ca, with some changes to take out dead code that inadvertently came back in.
- Legacy-Id: 6344
Note: SVN reference [6337] has been migrated to Git commit d0d1d949a9328da6c4e30d8f5e0d14ffb204e678
2013-10-02 21:53:28 +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
Henrik Levkowetz 4805b4b12e Updated fixtures, built to be more internally consistent in order to be able to pre-load them for the test suite.
- Legacy-Id: 6317
2013-09-30 19:02:53 +00:00
Henrik Levkowetz 083f60dd93 Renamed model .url() methods to .json_url() or .base_url(), depending on function. Replaced the use of custom django method request.get_host_protocol() with standard request.build_absolute_uri(). Removed an uncaught Http403 exception. Fixed a typo /venus_addr/venue_addr/. Removed relurl() methods; no longer needed. Removed some debug functions.
- Legacy-Id: 6309
2013-09-29 21:14:07 +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 8145d688de Remove references to ietfworkflows/urls.py
- Legacy-Id: 6296
2013-09-28 18:57:59 +00:00
Henrik Levkowetz 6154b9922d This commit isn't tested. It captures the state after merging in branch/ssw/agenda/v4.70.
- Legacy-Id: 6273
2013-09-26 19:56:17 +00:00
Ole Laursen 5ba00a9362 Move stream views to views_stream.py
- Legacy-Id: 6266
2013-09-26 09:48:37 +00:00
Ole Laursen f0eddecf6b Add test for stream management page
- Legacy-Id: 6262
2013-09-25 11:43:23 +00:00
Ole Laursen 5f6f966355 Add stream edit page for setting delegates
- Legacy-Id: 6254
2013-09-24 16:55:23 +00:00
Ole Laursen 5924024513 Swap the arguments to group.has_role so they match the arguments to
the existing has_role
 - Legacy-Id: 6218
2013-09-20 13:46:47 +00:00
Ole Laursen 0eed4ad9e5 Add has_role(role_name, user) utility to group, used like
group.has_role("chair", request.user). Remove the NomCom specific
group utilities, apparently they're not actually used.
 - Legacy-Id: 6217
2013-09-20 11:23:17 +00:00
Ole Laursen 019ca2ae03 Merge changes from attic/shimfree into new branch to complete rebasing shimfree on trunk
- Legacy-Id: 6215
2013-09-20 09:48:58 +00:00
Henrik Levkowetz 23cdddf696 Added overview pages for non-ietf-stream documents (ise, iab, irtf).
- Legacy-Id: 6202
2013-09-19 18:21:16 +00:00
Ole Laursen a871d6e19e Remove wgchairs app, all of its functionality is now superceded by wginfo/ and other recent developments in doc/
- Legacy-Id: 6198
2013-09-19 15:22:59 +00:00
Henrik Levkowetz 175a9dba80 Refactored group membership code, adding advisors and liaisons to the membership list. Needed for the nomcom code.
- Legacy-Id: 5996
2013-08-08 12:29:59 +00:00
Henrik Levkowetz 676d8504f0 Reverted an unneded 'fix' for RG chair document access, which caused 1wg-summary.txt to erroneously include RGs.
- Legacy-Id: 5995
2013-08-08 12:29:00 +00:00
Henrik Levkowetz c6b688e0af Added migrations which should have been part of release 4.70.
- Legacy-Id: 5954
2013-08-06 17:37:47 +00:00
Henrik Levkowetz 6baea429aa Merged in the nomcom app from ejimenez@yaco.es and esanchez@yaco.es, and accompanying dbtemplate app and the (standard) docutils module. Added some tweaks to get all tests to pass and migrations to run.
- Legacy-Id: 5948
2013-08-06 10:09:29 +00:00
Henrik Levkowetz 17eb95c180 Tweaked code to correct access to document metadata and actions, adding RGs to the groups and group secretaries to the roles which are given access.
- Legacy-Id: 5939
2013-08-01 14:37:50 +00:00
Henrik Levkowetz 8675711c27 Merged [5902],[5904] from markus.stenberg@iki.fi:
Added support and scripts for generation of wg- and draft-aliases.  Fixes issue #713.
 - Legacy-Id: 5937
Note: SVN reference [5902] has been migrated to Git commit e5b551f4ce

Note: SVN reference [5904] has been migrated to Git commit e68e51cc55
2013-08-01 12:44:49 +00:00
Markus Stenberg e68e51cc55 Removed hardcoded rewrites - bad idea, and added default .ad's also for working group documents (.group.acronym != 'none').
- Legacy-Id: 5904
2013-07-27 14:53:31 +00:00
Markus Stenberg e5b551f4ce First iteration of email alias generation for wg- and drafts ( issue #713 ).
- Legacy-Id: 5902
2013-07-27 14:11:20 +00:00
Henrik Levkowetz bd0c07290a Merged in branch/iola/milestones, which provides datatracker support for management of WG milestones.
- Legacy-Id: 5739
2013-05-15 22:07:23 +00:00
Henrik Levkowetz bcee56d238 Tweaked group/admin.py to show some additional group and group event columns
when listing entries.
 - Legacy-Id: 5685
2013-04-23 15:40:32 +00:00
Henrik Levkowetz 04858d3c2a Added the bof-conc (Concluded BoF) slug to the proxy tranlator for status_id.
- Legacy-Id: 5452
2013-02-24 20:12:31 +00:00
Ole Laursen 6e89f3b606 Merge changes from old milestones branch
- Legacy-Id: 5198
2013-01-15 16:45:19 +00:00
Emilio Jiménez cca4924597 Create views skel for private area.
Create new decorators to test if user is nocom member
News function in Group model to get the group members
Move util functions to utils.py module
Improve passes_test_decorator function so test_func accept more params.
See #919
 - Legacy-Id: 5161
2012-12-29 00:52:52 +00:00
Henrik Levkowetz 1fbcd783f3 Merged branch/iola/statesync up to @5118 to trunk.
- Legacy-Id: 5147
2012-12-20 20:32:03 +00:00
Ole Laursen b19f6d8060 Merge in milestones branch
- Legacy-Id: 5091
2012-12-03 14:36:30 +00:00
Emilio Jiménez 8984e888f6 Refactor with new funcions: group.is_chair(user) and group.get_chair()
See #904
 - Legacy-Id: 5070
2012-11-22 11:26:48 +00:00
Henrik Levkowetz d0214d3b25 Merged [4806] from rjsparks@nostrum.com:
Better handling for BoFs, particularly those that won't create WGs
 - Legacy-Id: 4939
2012-10-21 14:40:02 +00:00
Henrik Levkowetz b5ae9c563f Tweak the GroupHistoryAdmin list_display.
- Legacy-Id: 4914
2012-10-15 20:58:40 +00:00
Henrik Levkowetz 27186d111e Added a docstring note about the convention for when save_*_in_history() shoudl be called.
- Legacy-Id: 4883
2012-09-27 10:03:16 +00:00
Ole Laursen 49fc493526 Clean up doc.json view, only export plain fields and fields requested
in RFC 6359, more can be added later if necessary; export more info on
the group
 - Legacy-Id: 4869
2012-09-20 12:29:14 +00:00
Henrik Levkowetz 01e20724db Added search fields for 2 GroupEvent admin views.
- Legacy-Id: 4643
2012-07-27 22:15:44 +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 a732ebf8e2 Added admin interface for GroupEvents.
- Legacy-Id: 4619
2012-07-19 14:02:11 +00:00
Ole Laursen 1d0ba6c341 Make sure MilestoneHistory doesn't have an auto_now on the time field
- Legacy-Id: 4580
2012-07-03 23:25:49 +00:00
Ole Laursen 22ce2e709a Make sure milestone.docs is also raw edit to avoid biggish drop down
- Legacy-Id: 4541
2012-06-28 13:57:48 +00:00
Ole Laursen 319a202900 Finish charter milestones support so they're merged in after approval
of the charter, also replace references to WGs in wgcharter with a
more generic counterpart so will be easier to add support for RGs if
someone ever gets that far (will still need testing and probably some
minor adjustments though).
 - Legacy-Id: 4534
2012-06-27 16:24:04 +00:00
Ole Laursen 8929413a71 Merged in changes from former milestones branch
- Legacy-Id: 4516
2012-06-26 18:09:43 +00:00
Ole Laursen 6c1e87b773 Move milestones branch out of the way to prepare for merge with trunk to get latest charter changes in
[[Split portion of a mixed commit.]]
 - Legacy-Id: 4514.1
2012-06-26 17:47:53 +00:00
Henrik Levkowetz afe3ee71b8 Merged in fixes from Ole, from branch/charter:r4382-4407, and some changes from Henrik (removing the use of pos.blocked in views_ballot.py, and setting a ballot id in idrfc/testsREDESIGN.py) to make idrfc.EditPositionTestCase succeed.
- Legacy-Id: 4444
2012-06-10 16:22:16 +00:00
Ole Laursen 07382a07a4 Add an entry to the group history when closing a group is being
requested and use that to put a notice on the WG page.
 - Legacy-Id: 4399
2012-05-04 17:46:35 +00:00
Henrik Levkowetz bcd28cc45f Merged in fixes to the migration from olau@iola.dk. Merged in charter branch from olau@iola.dk. Added various fixes and correction of merge errors.
- Legacy-Id: 4353
2012-05-02 19:35:32 +00:00
Ole Laursen b9a90f35e1 Clean up and polish charter branch code, fix some subtle bugs with
revision and approved charter lookup.
 - Legacy-Id: 4290
2012-04-19 15:15:43 +00:00
Ole Laursen 21c52a34ae Add admin support for GroupHistory and GroupURL.
- Legacy-Id: 4097
2012-03-15 18:07:55 +00:00
Henrik Levkowetz 85e1cfed80 Add filtering by group for Role list page in admin.
- Legacy-Id: 4068
2012-03-07 13:40:57 +00:00
Ole Laursen b13b2f890e Consider BOFs to be proposed groups in the proxy when comparing with status_id
- Legacy-Id: 4037
2012-03-06 16:35:53 +00:00
Ole Laursen 09281df150 Improve IETFWG proxy to take "bof" groups into account when querying for active groups and map "bof" to IETFWG.ACTIVE. Fixes 784.
- Legacy-Id: 4029
2012-03-05 17:36:06 +00:00
Ole Laursen 562773a081 Turn Group acronym into a SlugField, make the admin prepopulate the acronym
- Legacy-Id: 4012
2012-03-01 13:07:47 +00:00
Ole Laursen e784dc5786 Add blank=True to unused_states and unused_tags since they don't have
to be filled in
 - Legacy-Id: 4003
2012-02-29 16:06:37 +00:00
Ole Laursen 85d00e2a06 Fix missing __unicode__ in IRTF proxy, it meant that the __unicode__
from Group was called instead
 - Legacy-Id: 3998
2012-02-28 19:32:41 +00:00
Ole Laursen dbf5e6ab84 Remove a bunch of old admin files, fix a couple of issues with the new ones, add admin for meeting
- Legacy-Id: 3995
2012-02-28 17:29:52 +00:00
Ole Laursen 01afd80e76 Fix get_charter_text which wasn't actually working
- Legacy-Id: 3937
2012-02-17 20:25:11 +00:00
Ole Laursen 0b5b5e65d9 Add get_charter_text helper for groups
- Legacy-Id: 3936
2012-02-17 20:21:29 +00:00
Ole Laursen 29df970cbb Fix RoleAdmin.search_fields to search for the actual contents on
related models instead of the models themselves
 - Legacy-Id: 3889
2012-02-01 17:32:36 +00:00
Ole Laursen 328ecb08c3 Replace old charter branches with new branch based on conversion branch and some preliminary work on generalizing document handling
[[Split portion of a mixed commit.]]
 - Legacy-Id: 3883.1
2012-01-31 17:38:27 +00:00
Ole Laursen 13aed82a0e More import path fixes from Henrik
- Legacy-Id: 3877
2012-01-30 19:05: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