seas-computing / course-planner

SEAS Course Planning Application. JSDoc Docs at: https://seas-computing.github.io/course-planner/
0 stars 1 forks source link

Room Admin: Populate Campus/Building data in metadata #572

Closed jonseitz closed 1 year ago

jonseitz commented 1 year ago

Adds additional data to the Metadata Object, which will list the Room details in the database. Should be a hierarchical list, e.g.:

[
  {
    id: "<uuid>",
    campus: "Allston",
    buildings: [
      {
        id: "<uuid>",
        building: "SEC",
        rooms: [
          {
            id: "<uuid>",
            room: "2.123",
          },
          ...rooms,
        ],
      },
      ...buildings,
    ],
  },
  ...campuses,
]

This data will be used for filling in the dropdowns in the Create modal, for populating the filters in the table, and for front-end validation (in future ticket).

jonseitz commented 1 year ago

Testing