Skip to content

feat(aviator): Improve apply-remediations UX with --latest, --all-ope…#948

Open
mneeta wants to merge 1 commit intofortify:feat/v3.x/aviator/26.2from
mneeta:feature/improved-auto-remediation-ux
Open

feat(aviator): Improve apply-remediations UX with --latest, --all-ope…#948
mneeta wants to merge 1 commit intofortify:feat/v3.x/aviator/26.2from
mneeta:feature/improved-auto-remediation-ux

Conversation

@mneeta
Copy link

@mneeta mneeta commented Mar 17, 2026

This enhancement provides a more flexible and user-friendly experience for applying Aviator auto-remediations for SSC by introducing multiple artifact selection modes:

  • --latest: Automatically select the most recent Aviator-processed artifact
  • --all-open-issues: Process all artifacts with open issues in bulk
  • --since: Filter artifacts by upload date (relative: 7d, 2w, 1M; absolute: 2025-01-01) Key Changes:
  • Replaced required --artifact-id with flexible selection modes
  • Added SinceOptionHelper for robust date/period parsing
  • Enhanced SSCArtifactHelper with getLatestAviatorArtifact() and getAllAviatorArtifacts()
  • Improved command validation with mutual exclusivity checks
  • Added comprehensive unit tests for all new options
  • Updated i18n messages with detailed usage descriptions Technical Details:
  • SinceOptionHelper supports relative periods (d, w, M, y) and absolute ISO-8601 dates
  • DateTimePeriodHelper integration for consistent period parsing across fcli
  • Proper UTC timezone handling for date comparisons
  • Backward compatible - existing --artifact-id usage unchanged

Enabled apply-remediations command for FoD as well

…n-issues, and --since options

This enhancement provides a more flexible and user-friendly experience for applying
Aviator auto-remediations by introducing multiple artifact selection modes:
- --latest: Automatically select the most recent Aviator-processed artifact
- --all-open-issues: Process all artifacts with open issues in bulk
- --since: Filter artifacts by upload date (relative: 7d, 2w, 1M; absolute: 2025-01-01)
Key Changes:
- Replaced required --artifact-id with flexible selection modes
- Added SinceOptionHelper for robust date/period parsing
- Enhanced SSCArtifactHelper with getLatestAviatorArtifact() and getAllAviatorArtifacts()
- Improved command validation with mutual exclusivity checks
- Added comprehensive unit tests for all new options
- Updated i18n messages with detailed usage descriptions
Technical Details:
- SinceOptionHelper supports relative periods (d, w, M, y) and absolute ISO-8601 dates
- DateTimePeriodHelper integration for consistent period parsing across fcli
- Proper UTC timezone handling for date comparisons
- Backward compatible - existing --artifact-id usage unchanged
Closes: #XXX
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.

1 participant