Skip to content

Fix Tier 0 data integrity, indexing, and service reliability#41

Merged
sumit1642 merged 3 commits into
tier0from
fix/tier0
May 27, 2026
Merged

Fix Tier 0 data integrity, indexing, and service reliability#41
sumit1642 merged 3 commits into
tier0from
fix/tier0

Conversation

@sumit1642
Copy link
Copy Markdown
Owner

Summary

This PR brings the fix/tier0 branch into tier0 with targeted fixes across database migrations, auth response handling, roommate compatibility scoring, listing renewals, profile photo updates, and worker resilience.

What changed

  • Updated rent observation trigger logic so listing renewals are captured when expires_at changes while a listing remains active.
  • Revised roommate block migration behavior to preserve existing block data while updating foreign key cascade behavior and constraints.
  • Recreated the listing feed city index as an expression index on LOWER(city) so it matches the query shape used by city filtering.
  • Adjusted auth responses so browser clients rely on secure cookies while mobile clients can explicitly receive tokens using X-Client-Type: mobile.
  • Fixed roommate compatibility scoring parameter binding for ANY($1::uuid[]).
  • Improved listing renewal expiration extension, profile photo update atomicity, and several service/controller/worker error-handling paths.

Why

These changes close Tier 0 correctness gaps around data retention, renewal tracking, query performance, token exposure boundaries, and runtime reliability. They also make the related migrations safer for environments that already contain production-like data.

Validation

  • Compared fix/tier0 against tier0 locally with git diff --stat origin/tier0...fix/tier0.
  • No test suite was run as part of PR creation.

sumit1642 added 3 commits May 28, 2026 04:05
- Update rent observation trigger to capture renewals correctly.
- Revise roommate_blocks constraints for safer data handling.
- Create expression index for city filtering in roommate feed.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 91fb7721-74a5-4ecf-b420-a5d20c59f8c7

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

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (2)
Validation error: Invalid option: expected one of "chill"|"assertive" at "reviews.profile"; Invalid input: expected string, received boolean at "reviews.high_level_summary_placeholder"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/tier0

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@sumit1642 sumit1642 self-assigned this May 27, 2026
@sumit1642 sumit1642 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels May 27, 2026 — with ChatGPT Codex Connector
@sumit1642 sumit1642 merged commit b0dde47 into tier0 May 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant