Skip to content

Commit

Permalink
Populate extraPeople for FOSDEM JSON schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Dec 17, 2024
1 parent 0abd0fe commit da35e1c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
exports[`JsonScheduleBackend can parse a FOSDEM JSON format: auditoriums 1`] = `
Map {
"5" => {
"extraPeople": [
{
"email": "[email protected]",
"id": "1",
"matrix_id": "@conal:example.org",
"name": "Conal Coordinator",
"role": "coordinator",
},
],
"id": "5",
"isPhysical": true,
"kind": "auditorium",
Expand Down Expand Up @@ -47,6 +56,15 @@ Map {
},
},
"6" => {
"extraPeople": [
{
"email": "[email protected]",
"id": "246",
"matrix_id": "@chloe:example.org",
"name": "Chloé Coordinator",
"role": "coordinator",
},
],
"id": "6",
"isPhysical": true,
"kind": "auditorium",
Expand Down Expand Up @@ -112,6 +130,15 @@ Map {
},
},
"7" => {
"extraPeople": [
{
"email": "[email protected]",
"id": "0",
"matrix_id": "@bert:example.org",
"name": "Bert Boss",
"role": "coordinator",
},
],
"id": "7",
"isPhysical": true,
"kind": "auditorium",
Expand Down
2 changes: 2 additions & 0 deletions src/backends/json/FosdemJsonScheduleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class FosdemJsonScheduleLoader {
}

private convertAuditorium(track: FOSDEMTrack): IAuditorium {
const extraPeople: IPerson[] = track.managers.map(person => this.convertPerson(person));
return {
id: track.id.toString(),
slug: track.slug,
Expand All @@ -117,6 +118,7 @@ export class FosdemJsonScheduleLoader {
talks: new Map(),
// Hardcoded: FOSDEM is always physical now.
isPhysical: true,
extraPeople,
};
}
}

0 comments on commit da35e1c

Please sign in to comment.