Evaluate: User Preferences API (cross-collection isolation)

Đang mở
#962 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
api, authentication, backend

Hướng nghiên cứu

This is a product decision, not a code task. Read the auth hardening review in #956 first, then decide whether a per-user preferences API is worth building, or record a wontfix. The issue names the planned route /auth/preferences/:key and a user_preference document type, but no existing files. Done means the decision is recorded on the issue, and only if it is build does it become a backend implementation with tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: api enhancement priority: P3 question triage: needs-validation

Follow-up to #956 (auth hardening review). Functionality gap — needs a product decision.

Gap

There is no per-user key/value Preferences API (CRUD, one-value-per-key-per-user, cross-collection isolation) for storing admin/user UI state server-side. We have no equivalent.

Decision needed

Is this worth building for SonicJS? Our admin is HTMX, so the usual driver (a heavy SPA admin persisting per-user UI state) may not apply.

If we proceed:

  • Document-model backed (user_preference type, owner-scoped, PII).
  • GET/POST/DELETE /auth/preferences/:key scoped to the current user.
  • Enforce one value per (user, key); isolate by user id.

Acceptance

  • Decision recorded (build / wontfix). If build: document-backed impl + tests.
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
219
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
67

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SonicJs-Org/sonicjs

Tất cả issue của SonicJs-Org/sonicjs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.