Admin view of all users' download jobs and files, including soft-deleted ones

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
24/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php

調査の方向性

Start by reading the implementation of CurrentUserExtension, the soft-delete filter, and issue #47 to understand how download jobs and files are currently scoped and retained. The proposal also calls for admin API operations and PWA views, plus restore and permanent-delete actions that remove files from disk. Agree on the endpoint design and required admin role first; done means admins can distinguish, restore, and permanently delete soft-deleted records.

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

説明

enhancement

Follow-up of #47.

Context

#47 soft-deletes DownloadJobs (when their owner deletes them) and DownloadedFiles (when all jobs linked to them are soft-deleted). The data is kept in the database, intended to be visible to admins, but no admin view exists:

  • CurrentUserExtension restricts every API query on owner-filterable resources to the current user's own records, admins included.
  • The gedmo soft-delete filter hides deleted records for everyone.

Proposal

  • Let ROLE_ADMIN (or ROLE_DOWNLOAD-API_ADMIN) bypass the owner restriction in CurrentUserExtension, or add dedicated admin operations.
  • Disable the soft-delete filter for admins on those operations, and expose deletedAt so deleted records can be told apart.
  • Admin actions on soft-deleted DownloadedFiles: restore, and permanently delete (including removing the file from disk, which #47 deliberately never does automatically).
  • Admin panel (PWA) views for the above.

Open questions

  • Reuse the existing endpoints with a role-based bypass, or separate /admin/... operations?
  • Which role should get access: ROLE_ADMIN or only ROLE_DOWNLOAD-API_ADMIN?
主要言語
PHP
スター
1
フォーク
0
平均マージ
3日 50分
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

FetchDock/fetchdock-server のほかの issue

FetchDock/fetchdock-server の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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