cisagov / pe-reports

Automated process to build and distribute Posture & Exposure Reports' bi-weekly to customers.
Creative Commons Zero v1.0 Universal
17 stars 5 forks source link

Alter modules to be class oriented #692

Open cduhn17 opened 7 months ago

cduhn17 commented 7 months ago

💡 Summary

The current state is the modules pe_source, pe_scorecard and breakout the database connection into a module and convert into classes where possible.

Motivation and context

We need to have a generic database connection class to limit the scope of each of the modules. The pe_reports module currently has the database connection code and it should be more generic, to be used anywhere necessary in the repo.

Implementation notes

Classify the modules and convert scripts to methods of a class.

Acceptance criteria

How do we know when this work is done?