- Aug 21, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
-
- Aug 20, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
where the code reads better with is_multiple
-
Martin Burchell authored
Two error conditions: Multiple terms passed from different taxonomies Multiple terms passed when taxonomy does not support multiple terms
-
- Aug 19, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
- Aug 07, 2015
-
-
Martin Burchell authored
within a taxonomy
-
- Jul 31, 2015
-
-
Martin Burchell authored
For RapidPro import - new column 'network provider' on item
-
- Jul 30, 2015
-
-
Martin Burchell authored
When a term is related to two items and is removed from one of them, the other item should not show as being modified.
-
- Jul 29, 2015
-
-
Martin Burchell authored
This one covers the case where an item is removed from a term.
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
-
- Jul 24, 2015
-
-
Mark Skipper authored
Also added test intended to illustrate why I included the test for is_optional
-
- Jul 20, 2015
-
-
Mark Skipper authored
This was defaulting to message_set, and we're still thinking we might rename Message to Item at some point
-
- 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 15, 2015
-
-
Mark Skipper authored
-
- Jul 14, 2015
-
-
Martin Burchell authored
Removed taxonomy and term classes from data_layer - just reference the ones in taxonomies app directly for now. Will need to run "deploy/tasks.py clean_db" and "deploy/tasks.py update_db"
-
- Jul 13, 2015
-
-
Mark Skipper authored
The last error from running the tests was that the TErm table didnt exist in the test database. So I'm running manage.py makemigrations And it fails with AttributeError: 'NoneType' object has no attribute 'unique' Following the [django docs](https://docs.djangoproject.com/en/1.8/topics/db/models/#abstract-related-name) I put in: related_name="%(app_label)s_%(class)s_term" But still can't even get a helpful error message.
-
Mark Skipper authored
-
- Jul 09, 2015
-
-
Mark Skipper authored
-
- Jul 06, 2015
-
-
Mark Skipper authored
-
- Jul 01, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
-
- Jun 30, 2015
-
-
Marko Samastur authored
-
- Jun 29, 2015
-
-
Mark Skipper authored
-
- Jun 26, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
- Jun 25, 2015
-
-
Martin Burchell authored
-
- Jun 21, 2015
-
-
Mark Skipper authored
-
- Jun 19, 2015
-
-
Mark Skipper authored
-
Mark Skipper authored
Because not all sources might offer one
-