Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(components): Implement ComponentVersion event emission and IssueMatch creation #314

Closed
4 tasks done
dorneanu opened this issue Oct 22, 2024 · 3 comments · Fixed by #328
Closed
4 tasks done
Assignees
Labels

Comments

@dorneanu
Copy link
Collaborator

dorneanu commented Oct 22, 2024

Task Description
Implement event emission functionality for ComponentVersion attachments to issues and create corresponding IssueMatches for related ComponentInstances.

The system needs to:

  1. Emit events when a ComponentVersion is attached to an issue
  2. Process these events to create IssueMatches for all ComponentInstances that are associated with the attached ComponentVersion

Acceptance Criteria:

  • Implement event emission when a ComponentVersion is attached to an issue
  • Create an event handler to process ComponentVersion attachment events
  • For each ComponentInstance associated with the ComponentVersion, create a corresponding IssueMatch
  • Ensure proper error handling and logging throughout the process
@dorneanu dorneanu self-assigned this Oct 22, 2024
@dorneanu
Copy link
Collaborator Author

dorneanu commented Oct 24, 2024

Brain dump: For each ComponentInstance, build IssueVariantMap (needed for Severity) and create IssueMatch. BuildIssueVariantMap needs to be a shared functionality.

@dorneanu
Copy link
Collaborator Author

GetTargetRemediationTimeline needs to be a shared functionality (maybe in internal/app/shared). This way one function for dealing with the remediation timeline.

@dorneanu
Copy link
Collaborator Author

This is now ready for review. I'll create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant