ic-labs / django-icekit

GLAMkit is a next-generation Python CMS by the Interaction Consortium, designed especially for the cultural sector.
http://glamkit.com
MIT License
47 stars 11 forks source link

Consolidate external reference fields for externally-sourced model data #252

Open jmurty opened 7 years ago

jmurty commented 7 years ago

In GLAMkit we have a number of models that can be imported from external data sources: images, events and occurrences, collection models.

Currently all these models share an external_ref character field that, by convention, is used to store an external reference that we can use in API operations or data import scripts to uniquely identify and cross-reference records imported from external systems.

However, there are two problems with this approach:

I propose that we consolidate all the externally-referrable models to be consistent and DRY by:

As part of the consolidation, we could also take the chance to:

The main drawbacks with all these changes is it would mean:

markfinger commented 7 years ago

In the case of the AGSA sync for image files/records, the external reference's continuing to get murkier, as it now relies on four values:

The EMU records contain data such as title and rights, so we need to sync these sporadically.