Repository navigation
feat(moderation): implement resource moderation queue and author deletions #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+3,824
−89
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bd9b7c8
feat(resources): allow authors to delete their own resources
trtajim 0d8e246
feat(moderation): add resource_change_requests schema and model
trtajim ffbbbd2
feat(moderation): route resource actions into moderation queue with e…
trtajim feea8fd
refactor(moderation): simplify record signatures by embedding file_pa…
trtajim 6912169
feat(moderation): add moderate resources permission migration and seeder
trtajim 2d4e267
feat(moderation): add ResourceModerationController routes, nav link, …
trtajim 0882853
feat(moderation): add moderation review page and pending badges in re…
trtajim 6b242ca
fix(moderation): assign node_id and user_id when approving create req…
trtajim 1ec21b6
feat(user): send goodbye email with feature highlights when admin del…
trtajim 1cddcc8
Revert "feat(user): send goodbye email with feature highlights when a…
trtajim eb6f04f
Merge remote-tracking branch 'origin/main' into feat/allow-authors-to…
trtajim 25ed0b0
feat(moderation): improve moderation image diff, bulk reject, and nod…
trtajim 8f8e153
feat(admin): display pending resource uploads in node view with previ…
trtajim 3f7e75c
fix(storage): protect pending resource change request files during cl…
trtajim 285cd10
feat(resources): limit pending submissions per user and display in-mo…
trtajim 7bcf9ef
feat(moderation): allow viewing pending edit and delete requests in a…
trtajim 328f83a
feat(schedule, moderation): consolidate daily schedules in console.ph…
trtajim 0259d73
Update 2026_10_09_154900_add_moderate_resources_permission.php
trtajim 695ec12
fix(moderation): fix reject endpoint in test and use node relationshi…
trtajim f1243a3
feat(moderation): publish moderator resource actions live and guard p…
trtajim 4197a1f
fix(moderation): preserve omitted attributes when recording resource …
trtajim ac9fae5
feat(moderation): notify authors on resource rejection and show feedb…
trtajim 2e35737
fix(moderation): defer file deletion until after database transaction…
trtajim 58bb6ae
perf(node): cache node breadcrumbs for 24 hours
trtajim d77abe0
perf(moderation): add composite index on node_id, action_type, and st…
trtajim 24f00a9
fix(moderation): restore rejection_reason assignment in reject method
trtajim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
The pending-limit check has a race. Rows are not locked.
The
count()and the laterrecordCreate/recordUpdatecalls are separate statements. Parallel requests from one user can all pass the check and exceed the limit. Run the check and the inserts in one transaction. Lock the user row withlockForUpdatebefore counting.🧰 Tools
🪛 PHPStan (2.2.14)
[error] 39-39: Call to an undefined static method App\Models\ResourceChangeRequest::where().
(staticMethod.notFound)
🤖 Prompt for AI Agents