Skip to content

Commit

Permalink
Removing surveys.json
Browse files Browse the repository at this point in the history
For the sake of having to load in an entirely new config file (and to save time on this change) we will move the surveys field back into the dynamic config files PER study/program

This makes loading the "formPath" much easier from the implementation on e-mission-phone
  • Loading branch information
sebastianbarry committed Dec 28, 2022
1 parent 3b92f72 commit bacd4ff
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 22 deletions.
20 changes: 20 additions & 0 deletions configs/dev-emulator-program-tripconfirm.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@
}
},
"survey_info": {
"surveys": {
"TripConfirmSurvey": {
"formPath": "https://raw.githubusercontent.com/sebastianbarry/nrel-openpath-deploy-configs/surveys-info-and-surveys-data/survey-resources/data-json/trip-end-survey-multiple-select.json",
"version": 1.2,
"compatibleWith": 1,
"dataKey": "manual/trip_user_input"
},
"UserProfileSurvey": {
"formPath": "json/demo-survey-v2.json",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/demographic_survey"
},
"TimeUseSurvey": {
"formPath": "https://raw.githubusercontent.com/sebastianbarry/nrel-openpath-deploy-configs/surveys-info-and-surveys-data/survey-resources/data-json/time-use-survey-form-v9.json",
"version": 9,
"compatibleWith": 1,
"dataKey": "manual/timeuse_survey"
}
},
"buttons": {
"trip-notes": {
"surveyName": "TimeUseSurvey",
Expand Down
14 changes: 14 additions & 0 deletions configs/dev-emulator-program.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
}
},
"survey_info": {
"surveys": {
"UserProfileSurvey": {
"formPath": "json/demo-survey-v2.json",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/demographic_survey"
},
"TimeUseSurvey": {
"formPath": "https://raw.githubusercontent.com/sebastianbarry/nrel-openpath-deploy-configs/surveys-info-and-surveys-data/survey-resources/data-json/time-use-survey-form-v9.json",
"version": 9,
"compatibleWith": 1,
"dataKey": "manual/timeuse_survey"
}
},
"buttons": {
"trip-notes": {
"surveyName": "TimeUseSurvey",
Expand Down
14 changes: 14 additions & 0 deletions configs/dev-emulator-study-tripconfirm.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@
}
},
"survey_info": {
"surveys": {
"TripConfirmSurvey": {
"formPath": "https://raw.githubusercontent.com/sebastianbarry/nrel-openpath-deploy-configs/surveys-info-and-surveys-data/survey-resources/data-json/trip-end-survey-multiple-select.json",
"version": 1.2,
"compatibleWith": 1,
"dataKey": "manual/trip_user_input"
},
"UserProfileSurvey": {
"formPath": "json/demo-survey-v2.json",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/demographic_survey"
}
},
"buttons": {
},
"trip-labels": "ENKETO"
Expand Down
8 changes: 8 additions & 0 deletions configs/dev-emulator-study.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
}
},
"survey_info": {
"surveys": {
"UserProfileSurvey": {
"formPath": "json/demo-survey-v2.json",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/demographic_survey"
}
},
"buttons": {
},
"trip-labels": "MULTILABEL"
Expand Down
22 changes: 0 additions & 22 deletions configs/surveys/surveys.json

This file was deleted.

0 comments on commit bacd4ff

Please sign in to comment.