Problem/Motivation
The pdfa11y_report Views configuration (config/optional/views.view.pdfa11y_report.yml) was added in 1.0.5. Drupal only imports config/optional files during a fresh module install, not during a module update. Sites upgrading from 1.0.4 or earlier will not have the report view and will get a 404 at /admin/reports/pdf-accessibility/media and /admin/reports/pdf-accessibility/files.
Proposed resolution
Add an update hook (pdfa11y_update_10004()) that imports views.view.pdfa11y_report from the module's config/optional directory if it does not already exist in active configuration.
Remaining tasks
- Add
pdfa11y_update_10004()topdfa11y.install - Test on a simulated upgrade path (install 1.0.4, run update, confirm view is present)
- Review
- Merge
User interface changes
The report view will appear at /admin/reports/pdf-accessibility/media and /admin/reports/pdf-accessibility/files after running drush updb.
API changes
None.
Data model changes
None.
Issue fork pdfa11y-3588852
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
joshuami