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 create new schema configuration records for disciplines that currently do not have any. This command should also fill in any gaps for disciplines that are missing SpLocaleContainer records for tables and fields not included in the current configuration.
If a discipline already has populated splocalecontainer, splocalecontaineritem, andsplocaleitemstr records, but are missing the appropriate values to be able to edit the captions and description for the absoluteage table and fields, or the tectonicUnit many-to-one field is missing from paleocontext, those gaps should be automatically filled by this sytem.
Acceptance Criteria
The command should identify all disciplines without SpLocaleContainer and associated schema records .
For each identified discipline, the command should create the necessary schema configuration records based on the current application structure.
The command should log the actions taken, including any records created or skipped.
We need to ensure that the command does not overwrite existing records or configurations, so all configured schema captions, labels, and assigned field formats, picklists, weblinks, etc. should remain without any issue.
This must work with multiple schema languages configured.
grantfitzsimmons
changed the title
New Django App: Create Missing Schema Config Records for Disciplines
New Django Command: Create Missing Schema Config Records for Disciplines
Mar 5, 2025
Summary
We need a Django command to create new schema configuration records for disciplines that currently do not have any. This command should also fill in any gaps for disciplines that are missing
SpLocaleContainer
records for tables and fields not included in the current configuration.If a discipline already has populated
splocalecontainer
,splocalecontaineritem
, andsplocaleitemstr
records, but are missing the appropriate values to be able to edit the captions and description for theabsoluteage
table and fields, or thetectonicUnit
many-to-one field is missing frompaleocontext
, those gaps should be automatically filled by this sytem.Acceptance Criteria
SpLocaleContainer
and associated schema records .Implementation Details
create_schema_config_records
More information about the issue (staff only): https://discourse.specifysoftware.org/t/adding-a-collection-to-specify-7-can-it-be-done/2363
The text was updated successfully, but these errors were encountered: