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
We need a Django command to generate default collectionobjecttype (COT) records for all collections that currently are missing them, and assign the default COT to all collectionobject (CO) records that do not currently have this set.
This is caused primarily by collections created in Specify 6 after the initial uniqueness rule migrations have been run, but can also be made worse by new CO records being entered in Specify 6 which will not have a COT set and not obey the default COT for the collection.
The command should intelligently skip records that already have COTs in place and not recreate or reassign any COTs that have been configured by the user.
Acceptance Criteria
The command should find all collections and identify those without a default COT assigned.
A default COT should be created and assigned for the collection.
The command should find all collection objects and identify those without a COT assigned.
The default COT for the collection should be assigned to all COs.
The command should find all collections and identify those without a default COT set.
The command should not affect any user-assigned COTs for existing COs.
Implementation Details
Suggested command name: create_cots
Implement checks to determine if COTs exist before creating new ones.
The text was updated successfully, but these errors were encountered:
Summary
We need a Django command to generate default
collectionobjecttype
(COT) records for all collections that currently are missing them, and assign the default COT to allcollectionobject
(CO) records that do not currently have this set.This is caused primarily by collections created in Specify 6 after the initial uniqueness rule migrations have been run, but can also be made worse by new CO records being entered in Specify 6 which will not have a COT set and not obey the default COT for the collection.
The command should intelligently skip records that already have COTs in place and not recreate or reassign any COTs that have been configured by the user.
Acceptance Criteria
Implementation Details
create_cots
The text was updated successfully, but these errors were encountered: