You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Match apartment search filters on the same room - #466
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.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.