devsoc-unsw / devsoc-unsw/notangles

Backend: endpoint: generate_free_room()

Open
#1,140 2 comments 0 reactions 1 assignee Claimed by @l-duong05 View on GitHub
backend
Dominant language
TypeScript
Stars
79
Forks
9
PR merge metrics
No merged PRs in 30d

Description

# 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.