You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent changes on the "develop" branch added new birth_date_* and death_date_* fields to CreatorBase to capture EDTF dates.
These probably do not make sense where they are, since the organizations model is derived from CreatorBase as well as the person model, and it probably doesn't make sense to talk about organisation birth/death dates.
There were also already very similar looking life_info_* fields on the PersonCreator model for capturing this sort of info.
We need to figure out:
where birth/death EDTF date fields should be defined, just on a person or on all creators
what should these fields be named, if they will apply to both persons and organisations
Then, based on the above:
relocate or delete or merge the existing EDTF fields defined across CreatorBase and PersonCreator models
consolidate any other logic in code that applies to these fields, if there is any?
re-merge to the API branch and update the API serialisers etc to account for any changes.
@james sounds about right… but it’s not unusual to think of orgs having birth/death dates. I wonder if birth_date_display and birth_date_edtf should be on the PersonCreatormodel and the _sort and _date fields should be on the CreatorBase model, named the same for both Orgs and People?
That would mean that queries on the data would only involve the CreatorBase model. Having said that, I think the queries are only likely to come through search index or API (the latter querying undeveloped as yet). Search index isn’t likely to be a performance concern.
The text was updated successfully, but these errors were encountered:
* `CreatorBase` now has generic names for start
and end date fields to serve as the "birth"
and "death" dates for persons, and "creation"
and "closure" dates for organisations
* Rename `WorkBase.date_*` fields representing
creation date to match: `creation_date_*`
* Remove redundant birth/death `life_info_*`
fields from `PersonCreator
* Rename other `life_info_*` fields on
`PersonCreator` to remove `life_info_` prefix
for simplicity (there aren't that many of them
any more)
Fields renamed or consolidated:
* Creator/Person/Organisation: `birth_date_*`
=> `start_date_*`
* Creator/Person/Organisation: `death_date_*`
=> `end_date_*`
* Artwork/Game/Film/MovingImage `date_*` =>
`creation_date_*`
* Person: `life_info_birth_date_*` =>
`start_date_*` (from `CreatorBase`)
* Person: `life_info_deat_date_*` =>
`end_date_*` (from `CreatorBase`)
* Person: `life_info_birth_place` =>
`birth_place`
* Person: `life_info_birth_place_historic`
=> `birth_place_historic`
* Person: `life_info_death_place` =>
`death_place`
API Notes:
The API renames the `start_date_` and
`end_date_` fields from `CreatorBase` to
more appropriate model-specific names:
`birth_date_` & `death_date_` for persons,
`creation_date_` & `closure_date_` for
organizations.
Recent changes on the "develop" branch added new
birth_date_*
anddeath_date_*
fields toCreatorBase
to capture EDTF dates.These probably do not make sense where they are, since the organizations model is derived from
CreatorBase
as well as the person model, and it probably doesn't make sense to talk about organisation birth/death dates.There were also already very similar looking
life_info_*
fields on thePersonCreator
model for capturing this sort of info.We need to figure out:
Then, based on the above:
CreatorBase
andPersonCreator
modelsExtra notes from @cogat:
birth_date_display
andbirth_date_edtf
should be on thePersonCreator
model and the_sort
and_date
fields should be on theCreatorBase
model, named the same for both Orgs and People?CreatorBase
model. Having said that, I think the queries are only likely to come through search index or API (the latter querying undeveloped as yet). Search index isn’t likely to be a performance concern.The text was updated successfully, but these errors were encountered: