data-to-insight / csc-validator-be-903

Python-side code for the Quality LAC Data Beta frontend
https://903.datatoinsight.org
MIT License
8 stars 4 forks source link

Add cli command to download info for rules #784

Closed WillLP-code closed 4 months ago

WillLP-code commented 5 months ago

Adds a cli command rule-info which allows users to select a year and download all the rules, rule messages, affected fields, and affected tables for those rules as a csv. This was a request from an LA analyst and is supposed to match the same thing which can be downloaded from the real portal. I'll add a download link to the FE later.

Required adding a tables variable to the decorator for every rule function, which was done by hand.

Future feature: add tables info to the report download after rules are run.