Skip to content

feat(pds): implement get and put preferences#29

Merged
ascorbic merged 2 commits into
mainfrom
claude/implement-preferences-methods-98Yfo
Dec 30, 2025
Merged

feat(pds): implement get and put preferences#29
ascorbic merged 2 commits into
mainfrom
claude/implement-preferences-methods-98Yfo

Conversation

@ascorbic
Copy link
Copy Markdown
Owner

Implements persistent storage and retrieval of user preferences for the AT Protocol PDS. This allows Bluesky apps and other clients to store user settings such as content filters, saved feeds, muted words, etc.

Changes:

  • Add preferences table to SQLite schema in storage.ts
  • Implement getPreferences() and putPreferences() methods in SqliteRepoStorage
  • Add rpcGetPreferences() and rpcPutPreferences() RPC methods to AccountDurableObject
  • Replace stub implementations in index.ts with full functionality

Implements persistent storage and retrieval of user preferences for the
AT Protocol PDS. This allows Bluesky apps and other clients to store
user settings such as content filters, saved feeds, muted words, etc.

Changes:
- Add preferences table to SQLite schema in storage.ts
- Implement getPreferences() and putPreferences() methods in SqliteRepoStorage
- Add rpcGetPreferences() and rpcPutPreferences() RPC methods to AccountDurableObject
- Replace stub implementations in index.ts with full functionality
- Add comprehensive test suite covering all preference operations

All tests pass (126 total, including 7 new preferences tests).
@ascorbic ascorbic changed the title feat(pds): mplement get and put preferences feat(pds): implement get and put preferences Dec 30, 2025
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Dec 30, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
atproto-pds acf12e5 Dec 30 2025, 08:35 AM

@ascorbic ascorbic enabled auto-merge (squash) December 30, 2025 08:34
@ascorbic ascorbic merged commit afe0f7a into main Dec 30, 2025
2 of 3 checks passed
@ascorbic ascorbic deleted the claude/implement-preferences-methods-98Yfo branch December 30, 2025 08:34
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