-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dates on output files #15
Open
cmcmenamin
wants to merge
2
commits into
GOVTNZ:main
Choose a base branch
from
cmcmenamin:dates-on-output-files
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
{ | ||
"input_results_folder_name": "source_folder", | ||
"output_report_name": "09-2024", | ||
"input_results_folder_name": "results_folder_name_here", | ||
"output_report_name": "2024-09", | ||
"export_formats": [ | ||
{ | ||
"enabled": true, | ||
"export_type": "generate_axe_core_template_aware_file", | ||
"input_filename": "axe_core_audit.csv", | ||
"output_filename": "axe_core_audit_template_aware.csv" | ||
"output_filename": "[output_report_name]_axe_core_audit_template_aware.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "axe_core_template_aware_leaderboard", | ||
"input_filename": "axe_core_audit.csv", | ||
"output_filename": "axe_core_audit_leaderboard.csv" | ||
"output_filename": "[output_report_name]_axe_core_audit_leaderboard.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "leaderboard", | ||
"input_filename": "focus_indicator_audit.csv", | ||
"output_filename": "focus_indicator_audit_leaderboard.csv", | ||
"output_filename": "[output_report_name]_focus_indicator_audit_leaderboard.csv", | ||
"query": "SELECT organisation, base_url, SUM(count) as count FROM cwac_table GROUP BY base_url ORDER BY count DESC" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "leaderboard", | ||
"input_filename": "reflow_audit.csv", | ||
"output_filename": "reflow_audit_leaderboard.csv", | ||
"output_filename": "[output_report_name]_reflow_audit_leaderboard.csv", | ||
"query": "SELECT organisation, base_url, AVG(overflow_amount_px) AS overflow_amount_px FROM cwac_table GROUP BY base_url ORDER BY overflow_amount_px DESC;" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "leaderboard", | ||
"input_filename": "language_audit.csv", | ||
"output_filename": "language_audit_leaderboard.csv", | ||
"output_filename": "[output_report_name]_language_audit_leaderboard.csv", | ||
"query": "SELECT organisation, base_url, AVG(smog_gl) AS smog_grade_level FROM cwac_table GROUP BY base_url ORDER BY smog_grade_level DESC" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "raw_data", | ||
"input_filename": "axe_core_audit.csv", | ||
"output_filename": "axe_core_audit.csv" | ||
"output_filename": "[output_report_name]_axe_core_audit.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "raw_data", | ||
"input_filename": "axe_core_audit_template_aware.csv", | ||
"output_filename": "axe_core_audit_template_aware.csv" | ||
"output_filename": "[output_report_name]_axe_core_audit_template_aware.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "raw_data", | ||
"input_filename": "focus_indicator_audit.csv", | ||
"output_filename": "focus_indicator_audit.csv" | ||
"output_filename": "[output_report_name]_focus_indicator_audit.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "raw_data", | ||
"input_filename": "reflow_audit.csv", | ||
"output_filename": "reflow_auditt.csv" | ||
"output_filename": "[output_report_name]_reflow_auditt.csv" | ||
}, | ||
{ | ||
"enabled": true, | ||
"export_type": "raw_data", | ||
"input_filename": "language_audit.csv", | ||
"output_filename": "language_audit.csv" | ||
"output_filename": "[output_report_name]_language_audit.csv" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Callum, this is a minor twist in the code.
What I was considering was something along the lines of:
and plug
today
in to"output_report_name"
Since
import json
package is already initialisedall we have to do is change the value of
"output_report_name"
data keyThis way, its all automated and won't need manual intervention on the config file whenever we run a monthly CWAC scan.