Do not convert report types to camelCase on frontend
The frontend determines whether or not to display based on the enabled_reports
field from the backend. The keys of this field correspond to report types based on the originating security scan.
The frontend converts the keys to camelCase, but this is actually misleading, since they really do correspond to the report type symbols in snake_case
. The frontend needs to know about the latter anyway, so for consistency (and not to conflate these with the Vuex module names used by the store), the frontend should leave these as-is.
Edited by Mark Florian