Skip to content

Commit 14a44fc

Browse files
committed
2 parents b862357 + 4e59ac8 commit 14a44fc

19 files changed

+428
-36
lines changed

.github/ISSUE_TEMPLATE/add-new-config.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ body:
1313
id: url_abbreviation
1414
attributes:
1515
label: Shortened Name
16-
description: This will become part of the url for your deployment's join page - could be an abbreviation, or along the lines of open-access-study.
16+
description: |
17+
Please enter an abbreviated handle for your project. This will be used in the URL for your join page.
18+
Keep this under 15 characters, using lowercase letters, hyphens, and/or numbers.
19+
e.g. "open-access"
1720
validations:
1821
required: true
1922
- type: dropdown
@@ -47,15 +50,18 @@ body:
4750
id: subgroups
4851
attributes:
4952
label: OPcode Subgroups
50-
description: Please enter a list separated by commas.
53+
description: |
54+
If you want to categorize users into subgroups, please provide a comma-separated list of subgroups.
55+
Use lowercase letters, hyphens, and/or numbers. (e.g. "test, group-1, group-2")
56+
Leave this blank for "test" and "default" subgroups.
5157
placeholder: test, default
5258
validations:
5359
required: false
5460
- type: input
5561
id: start
5662
attributes:
5763
label: Start Month
58-
description: Month and year of project start
64+
description: Month and year of project start (MM/YYYY)
5965
placeholder: 01/2024
6066
validations:
6167
required: true
@@ -331,7 +337,9 @@ body:
331337
id: default_reminders
332338
attributes:
333339
label: Use default reminder schedule?
334-
description:
340+
description: |
341+
By default, we will send daily notifications reminding users to label trips if they have recent unlabeled trips.
342+
If you choose "false", you can describe a custom reminder schedule below.
335343
default: 0
336344
options:
337345
- "true"

.github/actions/convertIssue/parse-issue-body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export async function parseIssueBody(githubIssueTemplateFile, body) {
273273
try {
274274
configObject["url_abbreviation"] = combinedObject.url_abbreviation;
275275
configObject["version"] = 1;
276-
configObject["ts"] = Date.now();
276+
configObject["ts"] = Math.floor(Date.now() / 1000);
277277

278278
let connect_url =
279279
"https://" + combinedObject.url_abbreviation + "-openpath.nrel.gov/api/";
@@ -333,7 +333,7 @@ export async function parseIssueBody(githubIssueTemplateFile, body) {
333333
),
334334
//unlikely to not be nrelop, could require manual changes
335335
token_prefix: "nrelop",
336-
toekn_generate: combinedObject.autogen, //want to match the autogen above
336+
token_generate: !configObject['opcode']['autogen'], // only for pregen tokens
337337
};
338338

339339
//list of all the boolean values in the admin dashboard section, add to issue template and list for new value

configs/4core-ebike.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "4core-ebike",
33
"version": 1,
4-
"ts": 1719435689601,
4+
"ts": 1719435689,
55
"server": {
66
"connectUrl": "https://4core-ebike-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -81,7 +81,7 @@
8181
"additional_trip_columns": [],
8282
"data_uuids_columns_exclude": [],
8383
"token_prefix": "nrelop",
84-
"toekn_generate": "true",
84+
"token_generate": true,
8585
"overview_users": true,
8686
"overview_active_users": true,
8787
"overview_trips": true,

configs/cosa-ebike-project.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "cosa-ebike-project",
33
"version": 1,
4-
"ts": 1710526862150,
4+
"ts": 1710526862,
55
"server": {
66
"connectUrl": "https://cosa-ebike-project-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -81,7 +81,7 @@
8181
"additional_trip_columns": [],
8282
"data_uuids_columns_exclude": [],
8383
"token_prefix": "nrelop",
84-
"toekn_generate": "true",
84+
"token_generate": true,
8585
"overview_users": true,
8686
"overview_active_users": true,
8787
"overview_trips": true,

configs/dfc-fermata.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "dfc-fermata",
33
"version": 9,
4-
"ts": 1707714796485,
4+
"ts": 1707714796,
55
"server": {
66
"connectUrl": "https://dfc-fermata-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -433,7 +433,7 @@
433433
"additional_trip_columns": [],
434434
"data_uuids_columns_exclude": [],
435435
"token_prefix": "nrelop",
436-
"token_generate": "false",
436+
"token_generate": false,
437437
"overview_users": true,
438438
"overview_active_users": true,
439439
"overview_trips": true,

configs/doee-electricbike-proj.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "doee-electricbike-proj",
33
"version": 1,
4-
"ts": 1707330356754,
4+
"ts": 1707330356,
55
"server": {
66
"connectUrl": "https://doee-electricbike-proj-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -84,7 +84,7 @@
8484
"additional_trip_columns": [],
8585
"data_uuids_columns_exclude": [],
8686
"token_prefix": "nrelop",
87-
"toekn_generate": "true",
87+
"token_generate": true,
8888
"overview_users": true,
8989
"overview_active_users": true,
9090
"overview_trips": true,

configs/godcgo.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "godcgo",
33
"version": 1,
4-
"ts": 1714679651512,
4+
"ts": 1714679651,
55
"server": {
66
"connectUrl": "https://godcgo-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -82,7 +82,7 @@
8282
"additional_trip_columns": [],
8383
"data_uuids_columns_exclude": [],
8484
"token_prefix": "nrelop",
85-
"toekn_generate": "true",
85+
"token_generate": true,
8686
"overview_users": true,
8787
"overview_active_users": true,
8888
"overview_trips": true,

configs/la-mw-ii.nrel-op.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"url_abbreviation": "la-mw-ii",
3+
"version": 1,
4+
"ts": 1733961166568,
5+
"server": {
6+
"connectUrl": "https://la-mw-ii-openpath.nrel.gov/api/",
7+
"aggregate_call_auth": "user_only"
8+
},
9+
"opcode": {
10+
"autogen": true,
11+
"subgroups": [
12+
"default",
13+
"test"
14+
]
15+
},
16+
"intro": {
17+
"program_or_study": "study",
18+
"start_month": "01",
19+
"start_year": "2024",
20+
"mode_studied": "",
21+
"program_admin_contact": "Madeline Brozen, mbrozen@ucla.edu",
22+
"deployment_partner_name": "UCLA Lewis Center",
23+
"translated_text": {
24+
"en": {
25+
"deployment_partner_name": "UCLA Lewis Center",
26+
"deployment_name": "LA Mobility Wallet Phase II evaluation",
27+
"summary_line_1": "We are collecting travel data for mobility wallet recipients",
28+
"summary_line_2": "in order to understand how the program affects how much people",
29+
"summary_line_3": "travel and by which modes.",
30+
"short_textual_description": "We are collecting travel data to understand how financial support for transportation affects travel patterns.",
31+
"why_we_collect": "We are seeking to determine any bias in travel behavior reported in user surveys and more accurately capture people's overall travel patterns.",
32+
"research_questions": [
33+
"How does financial support for transportation affect participants travel behavior and short-term outcomes?",
34+
"What is the relationship between ridehailing and transit use among participants?",
35+
""
36+
]
37+
}
38+
}
39+
},
40+
"survey_info": {
41+
"surveys": {
42+
"UserProfileSurvey": {
43+
"formPath": "json/demo-survey-v2.json",
44+
"version": 1,
45+
"compatibleWith": 1,
46+
"dataKey": "manual/demographic_survey",
47+
"labelTemplate": {
48+
"en": "Answered",
49+
"es": "Contestada"
50+
}
51+
}
52+
},
53+
"trip-labels": "MULTILABEL"
54+
},
55+
"display_config": {
56+
"use_imperial": true
57+
},
58+
"metrics": {
59+
"include_test_users": true
60+
},
61+
"profile_controls": {
62+
"support_upload": false,
63+
"trip_end_notification": false
64+
},
65+
"admin_dashboard": {
66+
"data_trips_columns_exclude": [],
67+
"additional_trip_columns": [],
68+
"data_uuids_columns_exclude": [],
69+
"token_prefix": "nrelop",
70+
"token_generate": false,
71+
"overview_users": true,
72+
"overview_active_users": true,
73+
"overview_trips": true,
74+
"overview_signup_trends": true,
75+
"overview_trips_trend": true,
76+
"data_uuids": true,
77+
"data_trips": true,
78+
"map_heatmap": true,
79+
"map_bubble": true,
80+
"map_trip_lines": false,
81+
"options_uuids": true,
82+
"options_emails": true,
83+
"admin_access": [
84+
"mbrozen@ucla.edu",
85+
"eblumenb@ucla.edu",
86+
"tamikabutler@ucla.edu",
87+
"mwander@ucla.edu"
88+
]
89+
}
90+
}

configs/nc-transit-equity-study.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "nc-transit-equity-study",
33
"version": 1,
4-
"ts": 1733948731794,
4+
"ts": 1733948731,
55
"server": {
66
"connectUrl": "https://nc-transit-equity-study-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -81,7 +81,7 @@
8181
"additional_trip_columns": [],
8282
"data_uuids_columns_exclude": [],
8383
"token_prefix": "nrelop",
84-
"toekn_generate": "false",
84+
"token_generate": false,
8585
"overview_users": true,
8686
"overview_active_users": true,
8787
"overview_trips": true,

configs/r2ohillsboro.nrel-op.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url_abbreviation": "r2ohillsboro",
33
"version": 1,
4-
"ts": 1714080477080,
4+
"ts": 1714080477,
55
"server": {
66
"connectUrl": "https://r2ohillsboro-openpath.nrel.gov/api/",
77
"aggregate_call_auth": "user_only"
@@ -67,7 +67,7 @@
6767
"additional_trip_columns": [],
6868
"data_uuids_columns_exclude": [],
6969
"token_prefix": "nrelop",
70-
"toekn_generate": "true",
70+
"token_generate": true,
7171
"overview_users": true,
7272
"overview_active_users": true,
7373
"overview_trips": true,

0 commit comments

Comments
 (0)