- Jul 31, 2015
-
-
Martin Burchell authored
-
- Jul 29, 2015
-
-
Martin Burchell authored
The transport layer term_itemcount when called with a date range now returns terms that fall outside the range with count=0.
-
- Jul 28, 2015
-
-
Martin Burchell authored
-
Alice Heaton authored
-
- Jul 24, 2015
-
-
Mark Skipper authored
Add tests for what happens when `add_categories` gets called with nonsense items and category names, should fail gracefully https://trello.com/c/fWrvZDau/77-clear-out-technical-debt-from-working-on-taxonomies
-
- Jul 23, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
Now raises TransportException if taxonomy does not exist
-
Martin Burchell authored
-
- Jul 21, 2015
-
-
Alice Heaton authored
-
- Jul 18, 2015
-
-
Mark Skipper authored
Interlally it was using add_term which did just what its name said: it add a term for the item. There was no check that you could only have one if the thing was a category. So I added a rudimentary support for that and creted some more test debt. (list copied in below in case it gets lost) Then added the apply_term method on Item (see note about how it sucks for this to be there) which checks the multiplicity of the taxonomy of the incoming term and acts apporporately. Finally all taxonomies currently say they are have optional multiplicity (i.e. categories) whichi s fine for the question type story. - [ ] Add tests for data_layer.models.Item.apply_Term - [ ] refactor tests in rest api to use the api - [ ] Are the updates to the model tags being saved and output okay? Why does that fail? - [ ] hid/views/add_Categories should only update category if it has actually changed - [ ] Test add_Categories (in the hid view) with multiple id/term pairs? - [ ] Add error reporting to the bit of View/Edit screen that adds categories to items. - [ ] Add tests for adding categories to more than one item at once via browser - [ ] We probably need a default value in the category selector to show that there's initailly no value selected - [ ] Add tests for what happens when add_categories gets called with nonsense items and category names, should fail gracefully - [ ] Add transport wrappers for listing the terms in a taxonomy, and update View/Editr screen to use these in place of modls directly - [ ] Add transport wrappers for creating taxnonmies and terms - [ ] add_Term in api views should retrn json of the serialized version of the new item -- currently empty dict - [ ] Term.objects.by_taxonomy() should propbably do select related to get the term back as well, seewhere used in api.add_term
-
- Jul 17, 2015
-
-
Mark Skipper authored
Add add categories method to hid/views and call from process items Has a test, but so far only for the single category case.
-
Martin Burchell authored
add_term now throws TransportException if term does not exist
-
- Jul 16, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
Throws exception if important fields are missing.
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
- Jul 10, 2015
-
-
Mark Skipper authored
I think this should really use ItemSerializer
-
Mark Skipper authored
Tidy up transport delete items Make the url generation work proerly (though I'm fairly sure we don't actually need the url as an argument to delete) and remove debug print statement *blush*
-
Martin Burchell authored
-
Martin Burchell authored
Previously were strings - django tables2 requires datetime objects
-
Mark Skipper authored
Make bulk_delete use delete() instead of bulk delete from REST
-
Mark Skipper authored
-
- Jul 09, 2015
-
-
Mark Skipper authored
-
- Jul 08, 2015
-
-
Mark Skipper authored
ItemTransport clas --> transport.items module
-
- Jul 07, 2015
-
-
Mark Skipper authored
Replace with ItemTransport object, which needs to be instantiated. I think it can be reused between calls to its methods so there's no need to create new ones all over the place, but that's what I have done so far. I'm a bit uncertain about module level variables, and not everything is contained in a class.
-
- Jul 06, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
-
- Jul 05, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
Actualy they are now also a class. The existing functions still exist and call into the class (wastefully creating an instance every time but I expect these to go away and rewrite the clients to use an instance of the transport class directly.
-
Mark Skipper authored
-
- Jul 02, 2015
-
-
Mark Skipper authored
-
- Jul 01, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
- Jun 30, 2015
-
-
Marko Samastur authored
-