Michael DeHaan
6a45aa2823
Added ability to list users under an organization, model additions to support. Simplified queryset lookup for various models.
2013-03-23 15:34:16 -04:00
Michael DeHaan
284c495c11
Added remaining sec tests for adding subobjects to collection.
2013-03-23 15:08:02 -04:00
Michael DeHaan
a1c614500c
Adding tests for remaining cases around adding subobjects to collections
2013-03-23 14:38:54 -04:00
Michael DeHaan
0c9aa1a498
Testing to whether a user can attach/unattach is now deferred to the model.
2013-03-23 14:31:36 -04:00
Chris Church
4e7827829f
Work on executing launch job via celery to run ansible playbook.
2013-03-22 18:56:09 -04:00
Michael DeHaan
85897049d9
misc cleanup
2013-03-22 18:16:40 -04:00
Michael DeHaan
e405c9b746
Simplify some auth code, add a FIXME
2013-03-22 18:07:06 -04:00
Michael DeHaan
8b698d13d0
This makes subobject attachment and detachment generic, making the views much easier to code up.
2013-03-22 16:52:44 -04:00
Michael DeHaan
dc071d1914
More view/model cleanup
2013-03-22 15:57:24 -04:00
Michael DeHaan
f1fda9b5de
More view->model cleanup
2013-03-22 15:53:08 -04:00
Michael DeHaan
2c02dc73a0
Moving more logic into the models, more view cleanup
2013-03-22 15:44:32 -04:00
Michael DeHaan
d338794ec2
Starting to defer some business logic to the model classes and out of the views.
2013-03-22 15:36:59 -04:00
Michael DeHaan
6b61381e32
Move base view code to seperate file, start of generalizing
2013-03-22 15:22:30 -04:00
Michael DeHaan
71cc409735
Clarify remaining org tests to add.
2013-03-22 14:58:55 -04:00
Michael DeHaan
580c6335bd
Clarify purpose of test in comments.
2013-03-22 14:57:01 -04:00
Michael DeHaan
f0aabcca43
Add a test to show you cannot put to a subresource collection URL
2013-03-22 14:55:55 -04:00
Michael DeHaan
ed6096216f
Example of how to disassociate an object from a collection, to be generalized later!
2013-03-22 14:48:18 -04:00
Michael DeHaan
d179c91537
Test code for posting an object to a subcollection, and accompanying view code. (In this case organizations/n/projects)
...
To be generalized later.
2013-03-22 14:23:50 -04:00
Michael DeHaan
a59d26f42b
Add migration
2013-03-22 13:50:50 -04:00
Michael DeHaan
7a9cd89d80
Merge conflict
2013-03-22 13:49:26 -04:00
Chris Church
935463e3ec
Updated description to be optional, added migration for description change and removal of application user model.
2013-03-22 13:41:35 -04:00
Chris Church
c592c3c392
Hide fields not needed for the user admin.
2013-03-22 12:02:16 -04:00
Michael DeHaan
92509d34b3
More launch job notes.
2013-03-22 12:00:11 -04:00
Michael DeHaan
d336433634
Take notes on launch job features
2013-03-22 11:49:04 -04:00
Michael DeHaan
bd3e4ba943
Use request.user.is_anonymous versus doing type check.
2013-03-22 11:37:15 -04:00
Michael DeHaan
5a03fdf841
Simplify user model by just using the Django user object.
2013-03-22 11:35:26 -04:00
Chris Church
ea536ae903
Minor test/view fixes.
2013-03-22 11:22:04 -04:00
Michael DeHaan
7f0935ba66
Handle post to corrections by overriding post to not save the object. Work in progress.
2013-03-22 09:50:42 -04:00
Chris Church
cb381849f3
Updated requirements/settings to use new version of devserver.
2013-03-22 01:47:24 -04:00
Michael DeHaan
2dbb77833e
Implementation and testing of the organizations projects subresource.
2013-03-21 17:38:53 -04:00
Michael DeHaan
5c79112c82
Various stub view logic (tests pending) for subresources under the organization.
2013-03-21 15:43:35 -04:00
Michael DeHaan
eeb0dfd9ba
Add a lot of basic serializers for some of the other object types. These may evolve.
2013-03-21 15:28:40 -04:00
Michael DeHaan
0fa9255ab1
Add support for related resources, and all present related resources on the organization object.
...
Implementation of sub services still on deck.
2013-03-21 15:11:47 -04:00
Michael DeHaan
f8e57ddd3b
Deleted objects are not really deleted but now appear to be via REST.
2013-03-21 14:20:59 -04:00
Michael DeHaan
c189cfcddb
Deletes are operational plus access control hooks for deletes.
2013-03-21 11:06:47 -04:00
Michael DeHaan
843164ba04
PUT is operational.
2013-03-21 10:44:01 -04:00
Michael DeHaan
9237cd6176
Streamlining RBAC layer code, adding tests for PUT operations.
2013-03-21 10:25:49 -04:00
Michael DeHaan
8cae93c55f
Move RBAC code to seperate file.
2013-03-21 00:34:59 -04:00
Michael DeHaan
060d7c307f
Only list active organizations
2013-03-21 00:31:07 -04:00
Michael DeHaan
c7328703fa
Added baseline for object GET tests, with one failing test to correct.
2013-03-21 00:27:04 -04:00
Michael DeHaan
b5fcf6b469
Test that if no users are in the org they get an empty list when listing orgs
2013-03-21 00:16:47 -04:00
Michael DeHaan
6422214b5e
Get resource URLs installed in REST API returns.
2013-03-21 00:12:03 -04:00
Michael DeHaan
27c515f281
Basic API RBAC filtering operational!
2013-03-20 23:14:09 -04:00
Michael DeHaan
7722e414e2
Add functions for checking size of paginated results
2013-03-20 22:47:51 -04:00
Michael DeHaan
3bc3b1f767
Convert from tastypie tests to pure Django unit tests.
2013-03-20 22:21:17 -04:00
Michael DeHaan
d6aea8edcb
Switch over to django-rest-framework from tastypie. Less black magic, seems to just work :)
2013-03-19 22:26:35 -04:00
Michael DeHaan
b95f4e0e13
Basic test structure in place, some authorization tests.
2013-03-19 18:33:01 -04:00
Michael DeHaan
23e685bba8
make test database use sqlite
2013-03-19 10:27:14 -04:00
Michael DeHaan
3f4842d9e7
Get nested resources in tastypie largely operational.
2013-03-19 00:02:52 -04:00
Michael DeHaan
728f9961b4
HTTP delete operational, though we'll soon override this anyway
2013-03-18 19:43:34 -04:00