This module is quite helpful on reporting a11y issues on new uploads. For a site with thousands of existing files, what's the best way to scan all files? It could be through UI or a Drush command to add nodes into the a11y scanning queue.

Command icon 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

kevin w created an issue. See original summary.

nicholass’s picture

Hi Kevin, one workaround you could do right now is use the views_bulk_operations I imagine to just simply bulk update those nodes you want scanned? I haven't tried that but that should queue them up. But keep in mind the free tier in adobe only allows 500 credits per month.

I have been thinking there should be a UI to manually initiate a scan of file(s) but haven't gotten there yet.

kevin w’s picture

Thanks for the prompt response! I tried to bulk update but I noticed that the scan report appears to be tied with the hash of the file content, which is a smart choice to reduce wasteful scanning. As a result, the file will not be re-scanned unless the content changes.

nicholass’s picture

Assigned: Unassigned » nicholass
nicholass’s picture

@Kevin - I am going to being working on this, I think I will create a VBO plugin to allow different processing options to the selected files. Just curious your comment about the scan of files, and not being able to re-scan them due to the file hash. Why would you want to re-scan the file if the content did not change? If the file is the same the report would be the same.

kevin w’s picture

@nicholass Thanks for looking into this. We have an existing site that has a large collection of files. After adding the pdf_services module, editors would like to scan their files in batch rather than one-by-one. I can't seem to find any workaround for this use case.

nicholass’s picture

StatusFileSize
new150.15 KB
new343.45 KB

Great so I added View Bulk Operation Support, so on a view that is created from a files base table such as the default /admin/content/files you can now add a bulk operations field to it, then be able to adjust the view as you need, and bulk queue pdfs, which are then processed on cron runs.

Edit the view add the bulk operations field
a

Then you can in bulk submit pdfs to the queue, here is the stock /admin/content/files view modified to have the bulk operations field.
s

nicholass’s picture

Status: Active » Needs review
nicholass’s picture

@kevin let me know if that works, we actually needed a bulk check feature as well, so well just make custom file views to do this.

bsim26’s picture

Status: Needs review » Reviewed & tested by the community

@nicholass Tested and verified bulk operations for multiple PDF's simultaneously

nicholass’s picture

Status: Reviewed & tested by the community » Fixed

This feature has been merged

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.