Skip to content

Add issue prioritization by folder for audit commands#927

Merged
rsenden merged 2 commits intofortify:feat/v3.x/aviator/26.2from
mneeta:feature/issue-prioritization-by-folder
Feb 26, 2026
Merged

Add issue prioritization by folder for audit commands#927
rsenden merged 2 commits intofortify:feat/v3.x/aviator/26.2from
mneeta:feature/issue-prioritization-by-folder

Conversation

@mneeta
Copy link

@mneeta mneeta commented Feb 25, 2026

This commit implements quota-based filtering with folder priority ordering for SSC audit operations. Key changes:

  • Add quota and quotaLastUpdated fields to InitRequest proto message
  • Implement QuotaBasedFilter class for filtering user prompts based on available quota and folder priority
  • Add --folder-priority-order CLI option to AviatorSSCAuditCommand for custom priority ordering
  • Modify AviatorStreamProcessor to apply quota filtering before processing prompts
  • Update StreamState to track quota information from server
  • Add QuotaConfig model for quota configuration
  • Update bulkaudit.yaml action to support folder priority ordering
  • Add unit tests for QuotaBasedFilter
  • Pass custom priority order through IssueAuditor constructor When quota is less than the number of issues to audit, prompts are filtered based on:
  1. Custom folder priority order if provided via --folder-priority-order
  2. Default priority order (Critical, High, Medium, Low) if no custom order specified
  3. Prompts with folders not in the custom order are excluded from filtering This ensures efficient use of limited quota by prioritizing issues based on their folder/severity.

@mneeta mneeta changed the base branch from dev/v3.x to feat/v3.x/aviator/26.2 February 25, 2026 10:07
Copy link
Contributor

@rsenden rsenden left a comment

Choose a reason for hiding this comment

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

Changes in fcli-aviator and fcli-ssc look fine to me; I'm assuming Aviator team is reviewing/testing the changes in fcli-aviator-common themselves.

Neeta Meshram added 2 commits February 26, 2026 16:08
This commit implements quota-based filtering with folder priority ordering for SSC audit operations.
Key changes:
- Add quota and quotaLastUpdated fields to InitRequest proto message
- Implement QuotaBasedFilter class for filtering user prompts based on available quota and folder priority
- Add --folder-priority-order CLI option to AviatorSSCAuditCommand for custom priority ordering
- Modify AviatorStreamProcessor to apply quota filtering before processing prompts
- Update StreamState to track quota information from server
- Add QuotaConfig model for quota configuration
- Update bulkaudit.yaml action to support folder priority ordering
- Add unit tests for QuotaBasedFilter
- Pass custom priority order through IssueAuditor constructor
When quota is less than the number of issues to audit, prompts are filtered based on:
1. Custom folder priority order if provided via --folder-priority-order
2. Default priority order (Critical, High, Medium, Low) if no custom order specified
3. Prompts with folders not in the custom order are excluded from filtering
This ensures efficient use of limited quota by prioritizing issues based on their folder/severity.

# Conflicts:
#	fcli-core/fcli-aviator-common/src/main/java/com/fortify/cli/aviator/audit/AuditFPR.java
#	fcli-core/fcli-aviator-common/src/main/java/com/fortify/cli/aviator/audit/IssueAuditor.java
#	fcli-core/fcli-aviator-common/src/main/java/com/fortify/cli/aviator/grpc/AviatorGrpcClient.java
@mneeta mneeta force-pushed the feature/issue-prioritization-by-folder branch from 562b1d4 to 3de405b Compare February 26, 2026 11:06
@rsenden rsenden merged commit 9230dd4 into fortify:feat/v3.x/aviator/26.2 Feb 26, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants