Closed tadean closed 4 days ago
Topics for discussion/testing:
The impact of the above may be affected by the fact that this API is relatively new and it is likely that CatCloud is likely the primary or only stakeholder at this time.
Should we add a dependency here on az_enterprise_attributes_import
? https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_news/az_news_export/az_news_export.info.yml
Should we add a dependency here on
az_enterprise_attributes_import
? https://github.com/az-digital/az_quickstart/blob/main/modules/custom/az_news/az_news_export/az_news_export.info.yml
Attributes are provided by az_core
- only the bulk creation of the individual terms comes from az_enterprise_attributes_import
Refactored to avoid usage of hook_field_views_data_alter()
as this being a term reference field in conjunction with that hook invites the taxonomy module to replace our plugin.
This avoids needing to alter module weight.
We should update the documentation here: https://quickstart.arizona.edu/site-admin/integrations/catcloud-news-export
This PR adds a views filter to the News Export API that understands how to translate Enterprise-wide attribute keys to local taxonomy terms.
Related issues
3305
How to test
az_demo
,az_enterprise_attributes_import
,az_news_export
Black Holes Come to the Big Screen
as audienceExternal Media
/az_quickstart/export/az_news/v1/az_news.json?filter=not+empty
/az_quickstart/export/az_news/v1/az_news.json?filter=or&attribute[]=External+Media
/az_quickstart/export/az_news/v1/az_news.json?filter=empty
Types of changes
Arizona Quickstart (install profile, custom modules, custom theme)
Drupal core
Drupal contrib projects
Checklist