feat: order home recommendations from survey answers #86
No reviewers
Labels
No labels
backend
beginner friendly
bug
chore
documentation
enhancement
frontend
needs-triage
no-stale
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
size/XS
stage/backlog
stage/done
stage/in progress
stage/in-progress
stage/ready
stale
wontfix
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/housing!86
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/home-page-recommendations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
home page recommendations were 5 hardcoded ids in BuildingPanelDemo. now it loads the saved
survey answers and ranks buildings with the scoring from #15, falls back to alphabetical if
there's no survey or youre logged out.
also noticed the filters in building options were resetting whenever you navigated away so i
did a quick fix for that too.
closes #55
d394c4ecefto9c4b7d5133Additionally...
Hi, nice work! There is an issue here though:
Gender restrictions are currently treated as a scoring bonus rather than an eligibility rule. scoreBuilding() adds one point for an exact gender-housing match, but it never removes incompatible buildings. So to demonstrate the issue, if a male user selects AC and a single room, they'll receive Scobell(which is women-only) among their recs.
My suggested approach is to have a hard filter included, so that if a person were to choose women only, they would only get women-only buildings, or if a person chose male only, they would get men only buildings(while this does not exist as of now, it is good practice to keep it. In the frontend, we can make changes so that it doesn't show for now, but if a house/dorm ever appears we can reopen this issue and take a look at that).
Best,
Emma
9c4b7d51334072a5963ePull request closed