Evaluate: User Preferences API (cross-collection isolation)

オープン
#962 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
1.8k
フォーク
219
平均マージ
2日 21時間
マージ済み PR(30日)
67

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SonicJs-Org/sonicjs のほかの issue

SonicJs-Org/sonicjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。