Refactor the vulnerability modal in group security dashboard/reports
The vulnerability modal in the security reports / group security dashboard needs a refactor.
@leipert created a boring solution fix to decouple the data between the modal and the reports and make it re-useable for the Security dashboard but there's still some work to be done on it. There's currently a lot of duplicated actions and mutations inside the security dashboard and the reports that should be addressed.
One idea is to give the modal its own Vuex module and attach the necessary actions/mutations. This will allow us to pull in that module where we need it without having to duplicate code.
This approach will require a bit of reshuffling with the reports store too as it will need modularising and namespacing to avoid conflicts with mapState
in the components.
The following discussion from !7910 (merged) sparked this issue:
-
@leipert started a discussion: (+1 comment) Follow-up: @samdbeckham Can we create a follow-up ~"technical debt" which allows us to refactor the vulnerability modal + related actions into a VueX module?