Skip to content

feat: support TEAM_MANAGED resource collections across stack - #781

Merged
haiphucnguyen merged 1 commit into
mainfrom
feature/improvements
Oct 26, 2026
Merged

haiphucnguyen merged 1 commit into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

  • Add ResourceCollectionOrigin to domain model to distinguish between local and server-managed collections.
  • Update database schema with origin column and add migration 65.sqm.
  • Implement upsertExternallyManagedCollections in repository for read-only sync of team collections.
  • Bypass local retrieval in ChatSessionService when the active container is server-managed.
  • Include active team collection IDs in chat request headers using ProxyChatContext.

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Add `ResourceCollectionOrigin` to domain model to distinguish between local and server-managed collections.
- Update database schema with `origin` column and add migration 65.sqm.
- Implement `upsertExternallyManagedCollections` in repository for read-only sync of team collections.
- Bypass local retrieval in `ChatSessionService` when the active container is server-managed.
- Include active team collection IDs in chat request headers using `ProxyChatContext`.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 03:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@haiphucnguyen
haiphucnguyen merged commit 5f3023a into main Oct 26, 2026
13 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch October 26, 2026 16:48
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