Skip to content

Commit

Permalink
feat(TAT-139): set filter options on calculator page from technique v…
Browse files Browse the repository at this point in the history
…alues
  • Loading branch information
allisonrobbins committed Apr 23, 2024
1 parent 22ee946 commit cc309a2
Show file tree
Hide file tree
Showing 4 changed files with 3,476 additions and 376 deletions.
8 changes: 6 additions & 2 deletions scripts/update_techniques.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ wb.xlsx.readFile(SOURCE_FILE).then(function () {
technique.has_es_siem = !!r.getCell("P").value;
technique.has_splunk = !!r.getCell("Q").value;

technique.cis_controls = r.getCell("R").value;
technique.nist_controls = r.getCell("T").value;
technique.cis_controls = r.getCell("R").value
? r.getCell("R").value.toString().split(",")
: [];
technique.nist_controls = r.getCell("T").value
? r.getCell("T").value.toString().split(",")
: [];

technique.process_coverage = !!parseInt(r.getCell(31).value.result);
technique.network_coverage = !!parseInt(r.getCell(33).value.result);
Expand Down
1 change: 1 addition & 0 deletions src/components/CalculatorFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default defineComponent({
},
computed: {
filters() {
this.calculatorStore.setFilters()
return this.calculatorStore.activeFilters
},
},
Expand Down
Loading

0 comments on commit cc309a2

Please sign in to comment.