documentcloud icon indicating copy to clipboard operation
documentcloud copied to clipboard

Entity creation

Open jimkang opened this issue 3 years ago • 1 comments

This is an initial PR for the purposes of discussing the changes so far to support the creation of freestanding entities that aren't necessarily associated with documents.

Additions:

  • route that maps the /api/freestanding_entities endpoint to FreestandingEntityViewSet.
  • FreestandingEntityViewSet to handle GET and POSTs to the endpoint.
  • Unit test of existing _get_or_create_entities method.
  • Test for FreestandingEntityViewSet. Currently, this only runs when only the documentcloud/documents tests are run. When all of the tests are run with inv test this test fails.
  • EntityAdmin so that freestanding entities can be viewed in the Django admin UI.

jimkang avatar Sep 07 '22 20:09 jimkang

@mitchelljkotler Just added the latest requested changes.

jimkang avatar Sep 09 '22 19:09 jimkang