Skip to content

CS-117 Remove screenshots on portal#2095

Open
github-actions[bot] wants to merge 12 commits intomainfrom
chas/remove-screenshots
Open

CS-117 Remove screenshots on portal#2095
github-actions[bot] wants to merge 12 commits intomainfrom
chas/remove-screenshots

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 3, 2026

This is an automated pull request to merge chas/remove-screenshots into dev.
It was created by the [Auto Pull Request] action.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portal Ready Ready Preview, Comment Feb 6, 2026 5:41pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
app Skipped Skipped Feb 6, 2026 5:41pm

Request Review

@cursor
Copy link

cursor bot commented Feb 3, 2026

PR Summary

Medium Risk
Introduces destructive deletion of DB rows and S3 objects; mistakes in scoping (organizationId/policyId/userId) or error handling could remove the wrong attachments or leave orphaned objects.

Overview
Adds a new Remove images action for passing fleet policies with existing attachments, including a confirmation modal that calls a new DELETE /api/fleet-policy endpoint.

The upload flow is adjusted to receive organizationId from the parent (instead of reading URL params), and the new API route deletes matching fleetPolicyResult records for the current user/org/policy and best-effort deletes the referenced S3 objects in batches.

Written by Cursor Bugbot for commit 4c82efd. This will update automatically on new commits. Configure here.

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/remove-screenshots CS-117 Remove screenshots on portal Feb 3, 2026
@linear
Copy link

linear bot commented Feb 3, 2026

@chasprowebdev
Copy link
Contributor

remove-images.mov

@chasprowebdev chasprowebdev requested a review from Marfuen February 3, 2026 02:26
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants