Skip to content

Commit

Permalink
Let "TBD" return a false value
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Nov 23, 2023
1 parent ca702d4 commit 763e007
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 289 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/run_generate_reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
echo "Running generate reports script"
echo "Current working directory: $(pwd)"
echo "Contents of current working directory: $(ls -a)"
echo "Creating report folder in case it does not exist"
mkdir -p ./report
node ./index.js
echo "Contents of the report folder: $(ls -al ./report)"
echo "Contents of the report folder: $(ls ./report)"
echo "Finished running generate reports script"

24 changes: 12 additions & 12 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'

import { Configuration, SanitizedConfiguration, defaultConfiguration } from './types/configuration'
import { Standard } from './types/standard'
import { generateRawGithubPath, writeFile, convertJsonToCsv } from './utils/utils'
import { generateRawGithubPath, writeFile, convertJsonToCsv, validateValue } from './utils/utils'
import { convertCsvsToExcel } from './utils/xlsx.utils'
import { GET_OPTIONS, STANDARDS_REGISTRY_URL } from './constants/constants'

Expand All @@ -14,22 +14,22 @@ const sanitizeConfiguration = (configuration: Configuration): SanitizedConfigura
const sanitizedConfiguration: SanitizedConfiguration = {
naam: configuration?.naam || defaultConfiguration?.naam,
rapport: configuration?.rapport || defaultConfiguration?.rapport,
verantwoordelijke_organisatie: !!configuration?.verantwoordelijke_organisatie,
identificator_organisatie: !!configuration?.identificator_organisatie,
publicatiedatum: !!configuration?.publicatiedatum,
type_toepassing: !!configuration?.type_toepassing,
categorie: !!configuration?.categorie,
beschrijving: !!configuration?.beschrijving,
verantwoordelijke_organisatie: validateValue(configuration?.verantwoordelijke_organisatie),
identificator_organisatie: validateValue(configuration?.identificator_organisatie),
publicatiedatum: validateValue(configuration?.publicatiedatum),
type_toepassing: validateValue(configuration?.type_toepassing),
categorie: validateValue(configuration?.categorie),
beschrijving: validateValue(configuration?.beschrijving),
specificatiedocument: !!configuration?.specificatiedocument?.length,
documentatie: !!configuration?.documentatie?.length,
charter: !!configuration?.charter?.length,
verslagen: !!configuration?.verslagen?.length,
presentaties: !!configuration?.presentaties?.length,
functioneel_toepassingsgebied: !!configuration?.functioneel_toepassingsgebied,
organisatorisch_werkingsgebied: !!configuration?.organisatorisch_werkingsgebied,
datum_van_aanmelding: !!configuration?.datum_van_aanmelding,
erkenning_werkgroep_datastandaarden: !!configuration?.erkenning_werkgroep_datastandaarden,
erkenning_stuurgroep: !!configuration?.erkenning_stuurgroep,
functioneel_toepassingsgebied: validateValue(configuration?.functioneel_toepassingsgebied),
organisatorisch_werkingsgebied: validateValue(configuration?.organisatorisch_werkingsgebied),
datum_van_aanmelding: validateValue(configuration?.datum_van_aanmelding),
erkenning_werkgroep_datastandaarden: validateValue(configuration?.erkenning_werkgroep_datastandaarden),
erkenning_stuurgroep: validateValue(configuration?.erkenning_stuurgroep),
}
return sanitizedConfiguration
}
Expand Down
Binary file modified report/merged_configurations.xlsx
Binary file not shown.
130 changes: 65 additions & 65 deletions report/sanitized_merged_configurations.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 763e007

Please sign in to comment.