- Oct 05, 2018
-
-
Luke Murphy authored
-
Martin Burchell authored
-
- Sep 11, 2018
-
-
Luke Murphy authored
-
- Aug 20, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
-
Martin Burchell authored
If the taxonomy has an open vocabulary, we create missing terms rather than throw an exception
-
Martin Burchell authored
-
- Aug 18, 2015
-
-
Martin Burchell authored
-
- Aug 05, 2015
-
-
Alice Heaton authored
Add a test to ensure taxonomy slugs cannot contain colons. This will prevent regression and hard to find bugs in the future.
-
- Jul 28, 2015
-
-
Alice Heaton authored
-
- Jul 24, 2015
-
-
Mark Skipper authored
This makes it more efficeint for `Item.apply_term` to use `term.taxonomy` because the taxonomy object is selected Along with the term. I suspect it will be generally useful to do this because we want to think of the taxonomy details as part of the definitino of each term. `Term.objects.by_taxonomy()` should propbably do `select_related()` to get the term back as well, see where used in `api.add_term` https://trello.com/c/fWrvZDau/77-clear-out-technical-debt-from-working-on-taxonomies
-
- Jul 21, 2015
-
-
Martin Burchell authored
Changed the factories not to create objects if they already exist. Also renamed various test data to have names that don't conflict with the fixtures,
-
- 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 16, 2015
-
-
Mark Skipper authored
To create "tagged" items with terms to add tags to items via the api
-
Mark Skipper authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Martin Burchell authored
-
Mark Skipper authored
-
Mark Skipper authored
-
Martin Burchell authored
-
Mark Skipper authored
Add passingt est for adding a Term to an Item Add unicode methods for Taxonomy and Term Change the unique contstraints for Term so that Term name needs be unique only for a given Taxonomy
-
- Jul 15, 2015
-
-
Mark Skipper authored
-
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
Ive been working through some options for how the REST api will work with categories in the readme file.
-
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
-