Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Add CTDF config
Browse files Browse the repository at this point in the history
  • Loading branch information
albertkol committed Nov 21, 2024
1 parent 3050016 commit 9af69cf
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/mappings/assessment_mapping_fund_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
from config.mappings.cof_mapping_parts.r4w2_unscored_sections import (
unscored_sections as cof_unscored_sections_r4w2,
)
from config.mappings.ctdf_mapping_parts.r1_unscored_sections import (
unscored_sections as ctdf_unscored_sections,
)
from config.mappings.cyp_mapping_parts.r1_scored_criteria import (
scored_criteria as cyp_scored_criteria_r1,
)
Expand Down Expand Up @@ -102,6 +105,9 @@
HSRA_FUND_ID = "1e4bd8b0-b399-466d-bbd1-572171bbc7bd"
HSRA_ROUND_ID = "50062ff6-e696-474d-a560-4d9af784e6e5"

CTDF_FUND_ID = "3dcfa617-cff8-4c2c-9edd-9568aa367d13"
CTDF_ROUND_1_ID = "7ecd7d64-1854-44ab-a10c-a7af4b8d68e1"

# ASSESSMENT DISPLAY CONFIGURATION

fund_round_to_assessment_mapping = {
Expand Down Expand Up @@ -175,6 +181,11 @@
"unscored_sections": hsra_unscored_sections,
"scored_criteria": hsra_scored_criteria,
},
f"{CTDF_FUND_ID}:{CTDF_ROUND_1_ID}": {
"schema_id": "ctdf_r1_assessment",
"unscored_sections": ctdf_unscored_sections,
"scored_criteria": [],
},
}

# Key information for header fields (within JSON)
Expand All @@ -184,6 +195,12 @@


fund_round_data_key_mappings = {
"CTDFCR1": {
"location": None,
"asset_type": None,
"funding_one": None,
"funding_two": None,
},
"COFR2W2": {
"location": "yEmHpp",
"asset_type": "yaQoxU",
Expand Down Expand Up @@ -1148,6 +1165,11 @@
# APPLICATION SEEDING CONFIGURATION

fund_round_mapping_config = {
"CTDFCR1": {
"fund_id": CTDF_FUND_ID,
"round_id": CTDF_ROUND_1_ID,
"type_of_application": "CTDF",
},
"COFR2W2": {
"fund_id": COF_FUND_ID,
"round_id": COF_ROUND_2_ID,
Expand Down
49 changes: 49 additions & 0 deletions config/mappings/ctdf_mapping_parts/r1_unscored_sections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# flake8: noqa
# Ignore line length

unscored_sections = [
{
"id": "unscored",
"name": "Unscored",
"sub_criteria": [
{
"id": "project_name",
"name": "Project name",
"themes": [
{
"id": "project_name",
"name": "Project name",
"answers": [
{
"field_id": "VcyKVN",
"form_name": "project-name-sample",
"field_type": "textField",
"presentation_type": "text",
"question": "Project name",
}
],
}
],
},
{
"id": "organisation_name",
"name": "Organisation name",
"themes": [
{
"id": "organisation_name",
"name": "Organisation name",
"answers": [
{
"field_id": "yptqZX",
"form_name": "organisation-name-sample",
"field_type": "textField",
"presentation_type": "text",
"question": "Organisation name",
}
],
}
],
},
],
}
]

0 comments on commit 9af69cf

Please sign in to comment.