My Caps shows "Shared" on private Caps that were never shared
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- mysql, typescript
調査の方向性
caps-page-data.tsxを読み、sharedOrganizationsクエリを、shared_videosを使うlib/folder.tsの共有検索と比較してください。まず、CapsPageViewがMy Capsの共有リストをどのように構築するかをたどってください。issueによると、共有されていないプライベートなCapに対して、MySQL 8.4はそのCap自身の組織を返します。そのCapがフォルダカードと同様にMy Capsで「Not shared」と表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
My Caps labels every Cap "Shared", including private Caps that nobody else can open. "Not shared" never appears on the My Caps root page. Move the same Cap into a folder and its card says "Not shared".
The card shows "Not shared" only when the Cap is private and its sharedOrganizations and sharedSpaces lists are both empty. On My Caps, caps-page-data.tsx fills sharedOrganizations by joining the Cap's own organization (videos.orgId), not the organizations it was shared with (shared_videos). Every Cap belongs to an organization, so the list is never empty and the card always says "Shared". The folder page (lib/folder.ts) joins through shared_videos, which is why it gets this right.
Expected: a private Cap with no organization or space shares says "Not shared", the same as it does inside a folder.
Actual: it says "Shared", which tells the owner that people can see a recording when only the owner can. VideosPolicy lets an org member view a private Cap only through shared_videos or a space share.
Reproduction
- In the web dashboard, make a Cap private, or record one in an org that has "Start new recordings private" turned on.
- Don't share it with the organization or a space.
- Open My Caps. The card says "Shared".
- Move the Cap into a folder and open the folder. The same card says "Not shared".
The same thing happens when the page loader runs against MySQL 8.4 (baseline 2bffa46a4). For a private Cap with no shares, CapsPageView returns sharedOrganizations: [<its own org>].
Additional Context
- Cap version: web,
mainat 2bffa46a4 - Operating system, version: any (server-side query)
- 主要言語
- Rust
- スター
- 25.4k
- フォーク
- 2.4k
- 平均マージ
- 19時間 49分
- マージ済み PR(30日)
- 701
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CapSoftware/Cap のほかの issue
-
Download, FAQ, privacy and terms pages have no meta description対応中かも @patrickballard が 24 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
CapSoftware/Cap#3675 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
self hosting
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CapSoftware/Cap#2384 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Dashboard pagination causes full page reloads on self-hosted Cap対応中かも @DipanshuAmbilkar03 が 22 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CapSoftware/Cap#2305 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CapSoftware/Cap#1714 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Exports with clip transitions can end early without an error対応中かも @AksharP5 が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 73/100
CapSoftware/Cap#4571 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
CapSoftware/Cap の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Document Web UIオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
parquet: reject truncated BYTE_STREAM_SPLIT numeric pages instead of silently fabricating valuesオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信