Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Attached is a patch to standardize the json output for the Audit Status option. This patch converts the text/markup rendered currently with the --json option for both the summary and the detail (--detail) reports.
Comment | File | Size | Author |
---|---|---|---|
#5 | standardize_results-2496899-5.patch | 1.63 KB | gaurav.goyal |
#3 | 2496899-json-difference.png | 102.72 KB | FluxSauce |
Comments
Comment #1
lhridley CreditAttribution: lhridley as a volunteer commentedComment #2
lhridley CreditAttribution: lhridley as a volunteer commentedComment #3
FluxSauce CreditAttribution: FluxSauce commentedHi Lisa,
Thanks for the patch! However, it's not working out of the box.
Additionally, the changes do not pass Drupal Coding standards:
Taking a step back, let's look at what's happening semantically. I fixed the syntax errors for the purposes of demonstration.
This is a much better structure, and it contains the same data as before. Other groups, such as Pantheon, currently use the JSON format, so I'm going to have to initiate some change management and notifications so upgrades don't break everything.
Please resolve the syntax and formatting errors, and I'll get this in!
Thanks,
Jon
Comment #4
FluxSauce CreditAttribution: FluxSauce commentedAlso, you can simplify:
Comment #5
gaurav.goyal CreditAttribution: gaurav.goyal as a volunteer commentedChanges made as per the comments. Patch is attached.
Comment #7
FluxSauce CreditAttribution: FluxSauce commentedThanks for the cleanup, Gaurav! I've made a small tweak as well.