Skip to content

Commit

Permalink
Handle missing taxonomies on webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis committed Oct 23, 2023
1 parent 298bc3c commit ea3e298
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 7 deletions.
18 changes: 18 additions & 0 deletions oxe-web/src/component/page/pageregistration/RegistrationStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ export default class RegistrationStatus extends React.Component {
cluster_type: "Cluster types",
cluster_thematic_area: "Cluster thematic areas",
fields_of_activity: "Fields of activity",
assurance_audit_certification: "Fields of activity",
cryptology: "Fields of activity",
data_security_and_privacy: "Fields of activity",
education_and_training: "Fields of activity",
human_aspects: "Fields of activity",
identity_and_access_management: "Fields of activity",
op_incident_handling_forensics: "Fields of activity",
legal_aspects: "Fields of activity",
network_and_distributed_systems: "Fields of activity",
security_management_and_governan: "Fields of activity",
security_measurements: "Fields of activity",
soft_and_hard_sec_engineering: "Fields of activity",
steganography_steganalysis_and_w: "Fields of activity",
theoretical_foundations: "Fields of activity",
trust_management_accountability: "Fields of activity",
sectors: "Fields of activity",
technologies: "Fields of activity",
use_cases: "Fields of activity",
},
};
}
Expand Down
208 changes: 201 additions & 7 deletions oxe-web/src/utils/registration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,29 @@ export function getFieldLocation() {

"FORM-ECCC-001-Q301": "relationships.field_fields_of_activity",
"FORM-ECCC-001-Q302": "attributes.field_field_of_activity_descr",
"FORM-ECCC-001-Q303": "relationships.field_cluster_thematic_area",
"FORM-ECCC-001-Q303.1": "relationships.field_cluster_thematic_area",
"FORM-ECCC-001-Q303.1.1": "relationships.field_assurance_audit_certification",
"FORM-ECCC-001-Q303.1.2": "relationships.field_cryptology",
"FORM-ECCC-001-Q303.1.3": "relationships.field_data_security_and_privacy",
"FORM-ECCC-001-Q303.1.4": "relationships.field_education_and_training",
"FORM-ECCC-001-Q303.1.5": "relationships.field_human_aspects",
"FORM-ECCC-001-Q303.1.6": "relationships.field_identity_and_access_management",
"FORM-ECCC-001-Q303.1.7": "relationships.field_op_incident_handling_forensics",
"FORM-ECCC-001-Q303.1.8": "relationships.field_legal_aspects",
"FORM-ECCC-001-Q303.1.9": "relationships.field_network_and_distributed_systems",
"FORM-ECCC-001-Q303.1.10": "relationships.field_security_management_and_governan",
"FORM-ECCC-001-Q303.1.11": "relationships.field_security_measurements",
"FORM-ECCC-001-Q303.1.12": "relationships.field_soft_and_hard_sec_engineering",
"FORM-ECCC-001-Q303.1.13": "relationships.field_steganography_steganalysis_and_w",
"FORM-ECCC-001-Q303.1.14": "relationships.field_theoretical_foundations",
"FORM-ECCC-001-Q303.1.15": "relationships.field_trust_management_accountability",
"FORM-ECCC-001-Q303.2": "attributes.field_other_knowledge_domains",
"FORM-ECCC-001-Q303.3": "relationships.field_sectors",
"FORM-ECCC-001-Q303.4": "attributes.field_other_sectors",
"FORM-ECCC-001-Q303.5": "relationships.field_technologies",
"FORM-ECCC-001-Q303.6": "attributes.field_other_technologies",
"FORM-ECCC-001-Q303.7": "relationships.field_use_cases ",
"FORM-ECCC-001-Q303.8": "attributes.field_other_use_cases",
"FORM-ECCC-001-Q304": "attributes.field_goals_to_achieve",
"FORM-ECCC-001-Q305": "attributes.field_goals_to_contribute",

Expand Down Expand Up @@ -242,46 +264,218 @@ export function getFormQuestions(taxonomies) {
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303",
reference: "FORM-ECCC-001-Q303.1",
position: 25,
type: "OPTIONS",
value: "Expertise according to the Cybersecurity Taxonomy",
options: taxonomies && taxonomies.cluster_thematic_area ? Object.keys(taxonomies.cluster_thematic_area).map((e) => taxonomies.cluster_thematic_area[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q304",
reference: "FORM-ECCC-001-Q303.2",
position: 26,
type: "TEXTAREA",
value: "Other expertise",
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.1",
position: 27,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Assurance, Audit, and Certification",
options: taxonomies && taxonomies.assurance_audit_certification ? Object.keys(taxonomies.assurance_audit_certification).map((e) => taxonomies.assurance_audit_certification[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.2",
position: 28,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Cryptology (Cryptography and Cryptanalysis)",
options: taxonomies && taxonomies.cryptology ? Object.keys(taxonomies.cryptology).map((e) => taxonomies.cryptology[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.3",
position: 29,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Data Security and Privacy",
options: taxonomies && taxonomies.data_security_and_privacy ? Object.keys(taxonomies.data_security_and_privacy).map((e) => taxonomies.data_security_and_privacy[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.4",
position: 30,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Education and Training",
options: taxonomies && taxonomies.education_and_training ? Object.keys(taxonomies.education_and_training).map((e) => taxonomies.education_and_training[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.5",
position: 31,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Human aspects",
options: taxonomies && taxonomies.human_aspects ? Object.keys(taxonomies.human_aspects).map((e) => taxonomies.human_aspects[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.6",
position: 32,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Identity Management",
options: taxonomies && taxonomies.identity_and_access_management ? Object.keys(taxonomies.identity_and_access_management).map((e) => taxonomies.identity_and_access_management[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.7",
position: 33,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Incident Handling and Digital Forensics",
options: taxonomies && taxonomies.op_incident_handling_forensics ? Object.keys(taxonomies.op_incident_handling_forensics).map((e) => taxonomies.op_incident_handling_forensics[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.8",
position: 34,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Legal aspects",
options: taxonomies && taxonomies.legal_aspects ? Object.keys(taxonomies.legal_aspects).map((e) => taxonomies.legal_aspects[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.9",
position: 35,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Network and Distributed Systems",
options: taxonomies && taxonomies.network_and_distributed_systems ? Object.keys(taxonomies.network_and_distributed_systems).map((e) => taxonomies.network_and_distributed_systems[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.10",
position: 36,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Security Management and Governance",
options: taxonomies && taxonomies.security_management_and_governan ? Object.keys(taxonomies.security_management_and_governan).map((e) => taxonomies.security_management_and_governan[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.11",
position: 37,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Security Measurements",
options: taxonomies && taxonomies.security_measurements ? Object.keys(taxonomies.security_measurements).map((e) => taxonomies.security_measurements[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.12",
position: 38,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Software and Hardware Security Engineering",
options: taxonomies && taxonomies.soft_and_hard_sec_engineering ? Object.keys(taxonomies.soft_and_hard_sec_engineering).map((e) => taxonomies.soft_and_hard_sec_engineering[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.13",
position: 39,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Steganography, Steganalysis and Watermarking",
options: taxonomies && taxonomies.steganography_steganalysis_and_w ? Object.keys(taxonomies.steganography_steganalysis_and_w).map((e) => taxonomies.steganography_steganalysis_and_w[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.14",
position: 40,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Theoretical Foundations",
options: taxonomies && taxonomies.theoretical_foundation ? Object.keys(taxonomies.theoretical_foundation).map((e) => taxonomies.theoretical_foundation[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.1.15",
position: 41,
type: "OPTIONS",
value: "Sub-domain of expertise according to the Cybersecurity Taxonomy - Trust Management and Accountability",
options: taxonomies && taxonomies.trust_management_accountability ? Object.keys(taxonomies.trust_management_accountability).map((e) => taxonomies.trust_management_accountability[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.3",
position: 42,
type: "OPTIONS",
value: "Sectors according to the Cybersecurity Taxonomy",
options: taxonomies && taxonomies.field_sectors ? Object.keys(taxonomies.field_sectors).map((e) => taxonomies.field_sectors[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.4",
position: 43,
type: "TEXTAREA",
value: "Other sectors",
mandatory: false,
},
{
reference: "FORM-ECCC-001-Q303.5",
position: 44,
type: "OPTIONS",
value: "Technologies according to the Cybersecurity Taxonomy",
options: taxonomies && taxonomies.field_technologies ? Object.keys(taxonomies.field_technologies).map((e) => taxonomies.field_technologies[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.6",
position: 45,
type: "TEXTAREA",
value: "Other technologies",
mandatory: false,
},
{
reference: "FORM-ECCC-001-Q303.7",
position: 46,
type: "OPTIONS",
value: "Use cases according to the Cybersecurity Taxonomy",
options: taxonomies && taxonomies.field_use_cases ? Object.keys(taxonomies.field_use_cases).map((e) => taxonomies.field_use_cases[e]).join("|") : undefined,
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q303.8",
position: 47,
type: "TEXTAREA",
value: "Other use cases",
mandatory: false,
},
{
reference: "FORM-ECCC-001-Q304",
position: 48,
type: "TEXTAREA",
value: "What do you seek to achieve by joining the community?",
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q305",
position: 27,
position: 49,
type: "TEXTAREA",
value: "How and in which goals and tasks of community can you contribute?",
mandatory: true,
},

{
reference: "FORM-ECCC-001-Q401",
position: 28,
position: 50,
type: "CHECKBOX",
value: "<p><b>Disclaimer</b></p><p>Article 9 – Tasks of community</p>",
mandatory: true,
},
{
reference: "FORM-ECCC-001-Q402",
position: 29,
position: 51,
type: "CHECKBOX",
value: "GDPR Conformity",
mandatory: true,
},

{
reference: "FORM-ECCC-001-Q501",
position: 30,
position: 52,
type: "CHECKBOX",
value: "<p><b>Confirmation</b></p><p>I have finished filling the form and accept the answers to be reviewed by the NCC</p>",
mandatory: true,
Expand Down

0 comments on commit ea3e298

Please sign in to comment.