Use slugs as references between collections
Currently in some collections like datasets
the documents have a key provider_name
which reference other documents of the provider
collection.
This key should be provider_slug
as it is more common to manipulate slugs (ie in URL params) than names. As for now it leads to extraneous code just to find the name of a provider given its slug.
This impacts the database, and a migration script may be written.
Occurs in:
datasets.provider_name
series.provider_name
- maybe in other collections