Skip to content

Backend: endpoint: generate_free_room() #1140

Description

@fox-58

Parameters

  • Start building ID
  • End building ID
  • Start time
  • End time
  • Date
  • Max_offset = 200

Return

  • Best match
    • Link to freerooms
    • Start time free
    • End time free
    • Location

Best match meaning

  • Randomly pick room (if there are multiple)
  • return the longest time period possible (min 1 hr) then fill the rest with min 1 hour segments. If no 1 hr segments exist. ,then leave it empty
  • 1 hour segments that can fill the range

Resources

https://github.com/devsoc-unsw/graphql-api

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions