department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
79 stars 59 forks source link

PDF Audit: List shows where PDFs appear #8014

Open msbtterswrth opened 2 years ago

msbtterswrth commented 2 years ago

Description

Stretch task of #6980

Acceptance Criteria

Implementation Ideas

There are two modules that may help us build something: https://www.drupal.org/project/entity_usage and possibly https://www.drupal.org/project/entity_usage_views_field

CMS Team

Please check the team(s) that will do this work.

kevwalsh commented 2 years ago

We may want to convert this into a broader spike ticket to evaluate all “library” user stories. Like

The module has some other nice features like providing warnings to editors who are editing reused content. Would be nice to potentially extend this for the “Archive” action, and let the editor know, eg “There are 25 published facility services that reference this service. You must archive those first”. (epic #2833)

Screenshot ![image](https://user-images.githubusercontent.com/643678/154184698-0342e1f6-b9c8-438a-94bb-f7a80e6666c9.png)

Then, we should add an AC for this spike to evaluate/measure performance costs.

rachel-kauff commented 2 years ago

@msbtterswrth Is it safe to assume that this work and anything related to it (say, showing where images appear) is fairly far off? It would add depth to my alt text audit, but I sense it's prob blocked / a big lift?

msbtterswrth commented 2 years ago

Nope! We have a 'working' POC for this in the attached PR and will be surfacing this as part of the broken links spike today so i think it's probably pretty soon that we'll have a working tool for us!

rachel-kauff commented 2 years ago

Oh great! Prob not in time for this current audit, but means we can iterate later on.

mgifford commented 1 year ago

Just dropping in this quick Google hack most folks don't know about. You can just search for this site:www.va.gov+filetype:pdf

Mind you there are dozens of other ways to do this too.