Skip to content

feat(vulns): add --status filtering#19

Open
gabrielvmayer wants to merge 1 commit intomainfrom
feature/vulns-list-status-filter
Open

feat(vulns): add --status filtering#19
gabrielvmayer wants to merge 1 commit intomainfrom
feature/vulns-list-status-filter

Conversation

@gabrielvmayer
Copy link
Contributor

Description

This PR adds native --status filtering to python -m conviso.app vulns list, aligned with the Conviso Platform IssueStatusLabel enum (CREATED, DRAFT, IDENTIFIED, IN_PROGRESS, AWAITING_VALIDATION, FIX_ACCEPTED, RISK_ACCEPTED, FALSE_POSITIVE, SUPPRESSED).
The CLI validates the input (case-insensitive, comma-separated) and forwards it to the GraphQL layer so the filtering is performed server-side. README and VERSION were also updated to reflect the new option.

How to Test

  1. Check that the flag exists:
    Run python -m conviso.app vulns list --help
    Confirm --status is listed among the options.

  2. Validate error handling for invalid values:
    Run python -m conviso.app vulns list --company-id <ID> --status BAD --per-page 1
    Expected behavior: the command should fail fast with a message listing the allowed status values.

  3. Verify correct server-side filtering:
    Run python -m conviso.app vulns list --company-id <ID> --status CREATED --all
    Expected behavior: returned vulnerabilities should only have status CREATED.

  4. Verify multi-status filtering:
    Run python -m conviso.app vulns list --company-id <ID> --status CREATED,RISK_ACCEPTED --all
    Expected behavior: returned vulnerabilities should only have status CREATED or RISK_ACCEPTED.

@gabrielvmayer gabrielvmayer requested a review from welias March 18, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant