Add missing uuid to config_export for AZQuickstartCitationStyle entity
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Locate the AZQuickstartCitationStyle entity class and inspect its config_export array. Add the missing uuid entry, then run drush config:export and the config schema validation or test suite to confirm the exported keys match the schema.
Written by the indexing model from the issue text.
Description
Problem/Motivation
See https://www.drupal.org/node/2481909
The AZQuickstartCitationStyle config entity currently defines config_export as:
config_export = {
"id",
"label",
"style",
"custom"
}
However, it does not include uuid, even though the schema correctly declares it and all config entities are expected to export their UUIDs.
This causes problems with config synchronization and validation since the exported YAML will always contain a uuid key that isn't accounted for in config_export.
Steps to reproduce
- Create a citation style config entity (
/admin/config/az-quickstart/settings/az-publication/style/add). - Export configuration using
drush cexor the UI. - Inspect the exported YAML at
config/sync/az_publication.az_citation_style.[id].yml. - Observe that the file contains a
uuidkey even though it is missing from the entity'sconfig_exportlist.
Example export:
uuid: e8dc3819-33c1-42f7-9cd3-9c678bc0aa5a
id: apa
label: 'APA Style'
style: apa
custom: false
Proposed resolution
Add uuid to the config_export array in AZQuickstartCitationStyle so that it matches the schema and Drupal core expectations for config entities.
config_export = {
"id",
"label",
"style",
"custom",
"uuid"
}
Remaining tasks
- Update
config_exportarray to includeuuid. - Run
drush config:exportto confirm that the export matches the updated list. - Verify with config schema validation (
drush php:csor test suite). - Add a test to confirm that the exported keys match the schema.
User interface changes
None.
API changes
None.
Data model changes
None — this only ensures proper alignment between exports and schema.
- Dominant language
- PHP
- Stars
- 52
- Forks
- 24
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 47
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from az-digital/az_quickstart
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
az-digital/az_quickstart#5709 ·
-
3.4.x only ci
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
az-digital/az_quickstart#5594 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
az-digital/az_quickstart#3580 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
az-digital/az_quickstart#6014 ·
-
bug trellis
az-digital/az_quickstart#5994 · 2 comments · 1 assignee ·
All issues in az-digital/az_quickstart
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·