feat(scope): fill gaps in Scope Management module [VAN-14]#20
Merged
Conversation
- Migration 0011: add allowed_vuln_types, severity_restriction, notes, exclusion_paths, deleted_at columns to scopes table - Schema: new fields typed in Drizzle schema - GET /api/admin/scopes: filter soft-deleted records - POST /api/admin/scopes: accept and persist new fields - PATCH /api/admin/scopes/[id]: update new fields - DELETE /api/admin/scopes/[id]: soft-delete (sets deleted_at) instead of hard delete - GET /api/scopes: filter deleted, expose new fields to submission form - Admin scope page: new fields in add/edit modal (vuln types, severity, notes, exclusion paths), archive dialog replaces delete dialog - Submit page: shows scope restrictions banner and filters vuln type / severity options when a target with restrictions is selected Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
c4efe3a to
fd40df9
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements the missing capabilities in the
/admin/scopemodule tracked in VAN-14.Changes
Migration
0011_scope_enhancements.sql— adds 5 new columns toscopestable:allowed_vuln_types,severity_restriction,notes,exclusion_paths,deleted_atSchema
lib/db/schema.ts— new fields typed in DrizzleAPI
GET /api/admin/scopes— filters out soft-deleted records (deleted_at IS NULL)POST /api/admin/scopes— accepts and persists new fieldsPATCH /api/admin/scopes/[id]— updates new fieldsDELETE /api/admin/scopes/[id]— soft-delete (setsdeleted_at) instead of hard deleteGET /api/scopes— filters deleted, exposes new fields to the submission formAdmin UI (
/admin/scope)Submission form (
/submit)🤖 Generated with Claude Code