Repository navigation
Conversation
Pull request changelogAppAddedChangedDeprecatedRemovedFixedSecurityWebsiteAddedChangedDeprecatedRemovedFixedSecurityHostingAddedChangedDeprecatedRemovedFixedSecurity |
|
Tick the box to add this pull request to the merge queue (same as
|
Confidence Score: 4/5
[High impact] The PR changes how project visibility and moderation state are set across V3 project workflows. Update the remaining thread-page draft actions before merging; they can report success while leaving a project public.
|
| ProjectStatus::Draft => { | ||
| self.in_review = Some(false); |
There was a problem hiding this comment.
Draft action leaves projects public
The thread page still offers “Set to draft” through ConversationThread.vue, which sends status: 'draft'. This branch now only clears in_review. On an approved public project, the request succeeds but leaves the project approved and publicly visible. “Set to draft with reply” instead fails because it sends review_reason without an outcome change.
Remove or replace these remaining actions alongside this API change so moderators cannot mistake a successful request for hiding a project.
Knowledge Base Used: Project and version workflows
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/labrinth/src/routes/v3/projects/mod.rs
Line: 541-542
Comment:
**Draft action leaves projects public**
The thread page still offers “Set to draft” through `ConversationThread.vue`, which sends `status: 'draft'`. This branch now only clears `in_review`. On an approved public project, the request succeeds but leaves the project approved and publicly visible. “Set to draft with reply” instead fails because it sends `review_reason` without an outcome change.
Remove or replace these remaining actions alongside this API change so moderators cannot mistake a successful request for hiding a project.
**Knowledge Base Used:** [Project and version workflows](https://app.greptile.com/-/switch-tenant?tenant=modrinth&next=%2Fcustom-context%2Fknowledge-base%2Fmodrinth%2Fcode%2F-%2Fdocs%2Fbackend-project-version-workflows.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Frontend previewsLast deployed commit is 25ef31b863f84ac20b0bb42cbc349e34831c1031 Persistent
Latest commit
|
No description provided.