Closed Reimirno closed 9 months ago
Coverage for unit tests for Python 3.11
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
16 | 0 :zzz: | 0 :x: | 0 :fire: | 0.620s :stopwatch: |
Coverage for unit tests for Python 3.10
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
16 | 0 :zzz: | 0 :x: | 0 :fire: | 0.610s :stopwatch: |
Attention: 55 lines
in your changes are missing coverage. Please review.
Comparison is base (
1294c88
) 46.25% compared to head (5b04c28
) 46.34%.
Files | Patch % | Lines |
---|---|---|
server/services/core/data.py | 6.66% | 42 Missing :warning: |
server/models.py | 71.42% | 6 Missing :warning: |
server/utils/misc.py | 16.66% | 5 Missing :warning: |
server/views.py | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Coverage for unit tests for Python 3.12
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
16 | 0 :zzz: | 0 :x: | 0 :fire: | 5.701s :stopwatch: |
Coverage for e2e tests for Python 3.11
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
8 | 0 :zzz: | 0 :x: | 0 :fire: | 18.553s :stopwatch: |
Coverage for e2e tests for Python 3.10
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
8 | 0 :zzz: | 0 :x: | 0 :fire: | 17.705s :stopwatch: |
Coverage for e2e tests for Python 3.12
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
8 | 0 :zzz: | 0 :x: | 0 :fire: | 32.350s :stopwatch: |
Overview
This PR introduces the concept of movable seats. They are like normal seats associated with a room, but they only have attributes fields (lefty, righty etc) and do not have position coordinate (x, y), name ("A1", "C5"...), row number, column number etc. Movable seats in the same room with the same set of attributes are basically indistinguishable from each other.
Motivation
Here are some canonical use case for movable seats:
Future Work...
This feature will be more useful if we could allow student to indicate preferences to want/avoid certain rooms (DSP room, for example) - we will build this in the future.
How to add movable seats?
Now (this will be moved to README), how to add movable seats? It is the same as adding a regular seat row in your room google spreadsheet, but leave the "row" and "seat" column blank. (That makes sense - movable seats do not have a row number or seat number). If either of the column is missing, then the parsing algorithm will take it to be a movable seat. Since all movable seats with the same attributes are essentially indistinguishable, we also additionally support "count" column now to make it easier to bulk add movable seats with the same attributes. Simply add a count column in addition to the old room spreadsheet template, and put in the number.
Example: add 1 movable seats with RIGHTY attribute and 2 movable seats with LEFTY attribute.
You can either:
OR, using
Count
column