Skip to content

Conversation

@C-Valen
Copy link
Member

@C-Valen C-Valen commented Dec 2, 2025

AEGIS-203 Implement new AegisAI feedback endpoint

Checklist:

  • Commits consolidated
  • Changelog updated
  • Test cases added/updated
  • [-] Integration tests updated
  • Jira ticket updated

Summary:

Required change in OSIM in order to support the new incoming Aegis feedback endpoint mechanism.

Changes:

  • Update types
  • Implement new endpoint for providing feedback in the aegis suggestions
  • Remove deprecated google form feedback code
  • Update tests

Considerations:

There is an incoming extension to also provide comments on negative feedback.
This will be handled in a separate ticket and PR cause it is still not supported by the backend.

@C-Valen C-Valen changed the title 🔖 Update types for feedback ✨ Implement new AegisAI feedback endpoint Dec 2, 2025
@C-Valen C-Valen self-assigned this Dec 2, 2025
@C-Valen C-Valen added enhancement New feature or request internal Skip Jira CI labels Dec 2, 2025
@C-Valen C-Valen requested a review from a team December 2, 2025 12:56
@C-Valen C-Valen marked this pull request as ready for review December 2, 2025 12:56
@C-Valen C-Valen force-pushed the task/AEGIS-203-integrate-feedback-endpoint branch from ec81967 to 9fab972 Compare December 2, 2025 13:50

await service.sendFeedback({
feature: FeatureNameForFeedback[fieldName],
cveId: cveId || '',
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we would need to use the uuid as a fallback instead of an empty string for a CVE, but Aegis doesn't support that, so perhaps a type assertion or guard here would be best?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I set it like this cause currently it is not possible to trigger feedback actions if there is no CVE ID in the flaw. But I can add some guard before that shows a notification and returns if no CVE ID. WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that makes sense, or just show an error on the form field and use a Zod schema for validation--is that overkill or does that seem sensible?

Copy link
Member Author

Choose a reason for hiding this comment

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

Perfect, will go for the notification just cause looks simpler to me

@C-Valen C-Valen force-pushed the task/AEGIS-203-integrate-feedback-endpoint branch from 9fab972 to d6106db Compare December 3, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request internal Skip Jira CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants