NUWCDIVNPT / stig-manager

An API and client for managing STIG assessments
Other
112 stars 29 forks source link

Add Support for USMC MCCAST formatted POAM export in STIG Manager #1345

Closed whalenda closed 1 month ago

whalenda commented 1 month ago

Closes https://github.com/NUWCDIVNPT/stig-manager/issues/1174 by adding support for exporting POAMs in MCCAST format. Adds a template .xlsx file for the MCCAST format, necessary API support to populate the template on request, and updates the Web UI to allow for the selection of either POAM format on export.

whalenda commented 1 month ago

I put this up as a draft, as I'm still working out the test cases for the API updates, however I've added my email to the Contributors.md file so that you can validate you can reach me at it. Thanks again for the help @cd-rite!

csmig commented 1 month ago

It's looking very good, thanks much for the contribution. I did a first pass over the code with @cd-rite today, we can provide more detailed feedback in a bit. Chris can also explain our still developing processes around this, our first community contribution. Welcome aboard!

cd-rite commented 1 month ago

Hi @whalenda I've pushed a few changes to your branch:

If you are happy with these changes, you can hit the "Ready for Review" button on this PR, and then @csmig should be able to add any Review comments. Thanks!

csmig commented 1 month ago

Thanks again for the contribution. I've added a couple more commits, one just merges against the current HEAD of main. The other heavily refactors the UI source so it follows our current best practices. We hadn't touched these files in years and they needed better organization. The UI files are hopefully more maintainable now, BZs to @whalenda for understanding the logic in the originals.

I also added the ability in the browser to remember the last POAM format generated and open the POAM options with that format pre-selected.

I made minor changes to the API code, mostly to simplify and for readability.