Signalen / backend

Backend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
5 stars 5 forks source link

Towards a new approach of managing data within environments #50

Closed bartjkdp closed 4 years ago

bartjkdp commented 4 years ago

We are currently using Django migrations to manage data in environments. For example migration 0114_category_changes_SIG-2872.py adds a new subcategory for "eikenprocessierups".

This migration was breaking for the Den Bosch environment as the main category "openbaar-groen-en-water" does not exist there:

   return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
    raise self.model.DoesNotExist(
__fake__.DoesNotExist: Category matching query does not exist.

Probably we should move to a different way of managing data within environments.

Related to #35.