Skip to content

Match apartment search filters on the same room - #466

Open
NigelTatem wants to merge 1 commit into
cornell-dti:mainfrom
NigelTatem:portfolio5/same-room-search
Open

NigelTatem wants to merge 1 commit into
cornell-dti:mainfrom
NigelTatem:portfolio5/same-room-search

Conversation

@NigelTatem

Copy link
Copy Markdown

Summary

Fixes apartment search so a listing only appears as an exact match when a single room type satisfies all active price, bedroom, and bathroom filters. Previously, a listing with a $1,000 one-bedroom and a $1,500 two-bedroom could show up as an exact match for a two-bedroom under $1,200. It can still appear under the relevant “More…” sections as a partial match.

Test Plan

  • Added six endpoint tests in backend/src/server.test.ts. They cover split matches, exact matches at the price boundary, price-only and bedroom-only searches, missing prices, and listings without room data when no room filters are active.
  • All six new tests passed against the local Firestore emulator. Backend typecheck passed.

Notes

The full backend suite still has one unrelated FAQ test failure: it requests /, but the FAQ endpoint is /api/faqs.

Breaking Changes

None. No database schema or API response changes.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 6f907a66-5a69-44a6-b7f7-a0b51e4093c8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@NigelTatem
NigelTatem marked this pull request as ready for review November 26, 2026 18:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants