Skip to content

Commit 0c39078

Browse files
committed
Set up ITP May
Also update a spreadsheet schema
1 parent 727ed43 commit 0c39078

2 files changed

Lines changed: 135 additions & 5 deletions

File tree

config.prod.json

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,126 @@
365365
}
366366
]
367367
}
368+
},
369+
"2026-may-itp": {
370+
"start": "2026-05-01",
371+
"end": "2026-08-31",
372+
"sprints": {
373+
"Module-Welcome": [
374+
{
375+
"Glasgow": "2026-05-09",
376+
"London": "2026-05-09",
377+
"North West": "2026-05-09",
378+
"Sheffield": "2026-05-09",
379+
"South Africa": "2026-05-09",
380+
"West Midlands": "2026-05-09"
381+
}
382+
],
383+
"Module-Onboarding": [
384+
{
385+
"Glasgow": "2026-05-16",
386+
"London": "2026-05-16",
387+
"North West": "2026-05-16",
388+
"Sheffield": "2026-05-16",
389+
"South Africa": "2026-05-16",
390+
"West Midlands": "2026-05-16"
391+
},
392+
{
393+
"Glasgow": "2026-05-30",
394+
"London": "2026-05-30",
395+
"North West": "2026-05-30",
396+
"Sheffield": "2026-05-30",
397+
"South Africa": "2026-05-30",
398+
"West Midlands": "2026-05-30"
399+
},
400+
{
401+
"Glasgow": "2026-06-06",
402+
"London": "2026-06-06",
403+
"North West": "2026-06-06",
404+
"Sheffield": "2026-06-06",
405+
"South Africa": "2026-06-06",
406+
"West Midlands": "2026-06-06"
407+
}
408+
],
409+
"Module-Structuring-And-Testing-Data": [
410+
{
411+
"Glasgow": "2026-06-13",
412+
"London": "2026-06-13",
413+
"North West": "2026-06-13",
414+
"Sheffield": "2026-06-13",
415+
"South Africa": "2026-06-13",
416+
"West Midlands": "2026-06-13"
417+
},
418+
{
419+
"Glasgow": "2026-06-27",
420+
"London": "2026-06-27",
421+
"North West": "2026-06-27",
422+
"Sheffield": "2026-06-27",
423+
"South Africa": "2026-06-27",
424+
"West Midlands": "2026-06-27"
425+
},
426+
{
427+
"Glasgow": "2026-07-04",
428+
"London": "2026-07-04",
429+
"North West": "2026-07-04",
430+
"Sheffield": "2026-07-04",
431+
"South Africa": "2026-07-04",
432+
"West Midlands": "2026-07-04"
433+
}
434+
],
435+
"Module-Data-Groups": [
436+
{
437+
"Glasgow": "2026-07-11",
438+
"London": "2026-07-11",
439+
"North West": "2026-07-11",
440+
"Sheffield": "2026-07-11",
441+
"South Africa": "2026-07-11",
442+
"West Midlands": "2026-07-11"
443+
},
444+
{
445+
"Glasgow": "2026-07-18",
446+
"London": "2026-07-18",
447+
"North West": "2026-07-18",
448+
"Sheffield": "2026-07-18",
449+
"South Africa": "2026-07-18",
450+
"West Midlands": "2026-07-18"
451+
},
452+
{
453+
"Glasgow": "2026-07-25",
454+
"London": "2026-07-25",
455+
"North West": "2026-07-25",
456+
"Sheffield": "2026-07-25",
457+
"South Africa": "2026-07-25",
458+
"West Midlands": "2026-07-25"
459+
}
460+
],
461+
"Module-Data-Flows": [
462+
{
463+
"Glasgow": "2026-08-01",
464+
"London": "2026-08-01",
465+
"North West": "2026-08-01",
466+
"Sheffield": "2026-08-01",
467+
"South Africa": "2026-08-01",
468+
"West Midlands": "2026-08-01"
469+
},
470+
{
471+
"Glasgow": "2026-08-08",
472+
"London": "2026-08-08",
473+
"North West": "2026-08-08",
474+
"Sheffield": "2026-08-08",
475+
"South Africa": "2026-08-08",
476+
"West Midlands": "2026-08-08"
477+
},
478+
{
479+
"Glasgow": "2026-08-15",
480+
"London": "2026-08-15",
481+
"North West": "2026-08-15",
482+
"Sheffield": "2026-08-15",
483+
"South Africa": "2026-08-15",
484+
"West Midlands": "2026-08-15"
485+
}
486+
]
487+
}
368488
}
369489
}
370490
},

src/mentoring.rs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,29 @@ pub async fn get_mentoring_records(
5959
continue;
6060
}
6161
if row_number == 0 {
62-
let headings = cells.iter().take(6).map(cell_string).collect::<Vec<_>>();
63-
if headings != ["Name", "Region", "Date", "Staff", "Status", "Notes"] {
62+
let headings = cells.iter().take(7).map(cell_string).collect::<Vec<_>>();
63+
if headings
64+
!= [
65+
"Repeated in Check in Form",
66+
"Name",
67+
"Region",
68+
"Date",
69+
"Staff",
70+
"Status",
71+
"Notes",
72+
]
73+
{
6474
return Err(Error::Fatal(anyhow::anyhow!(
6575
"Mentoring data sheet contained wrong headings: {}",
6676
headings.join(", ")
6777
)));
6878
}
6979
} else {
70-
if cells[0].effective_value.is_none() {
80+
if cells[1].effective_value.is_none() {
7181
break;
7282
}
73-
let name = cell_string(&cells[0]);
74-
let date = cell_date(&cells[2]).with_context(|| {
83+
let name = cell_string(&cells[1]);
84+
let date = cell_date(&cells[3]).with_context(|| {
7585
format!(
7686
"Failed to parse date from row {} in sheet ID {}",
7787
row_number + 1,

0 commit comments

Comments
 (0)