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

Construct NEW_VULNERABILITY and NEW_VULNERABLE_DEPENDENCY notification subjects with JDBI #471

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Dec 6, 2023

Description

This is a prerequisite for DependencyTrack/hyades#937 in order to make notification dispatching less resource-intensive.

Loading this data via ORM is cumbersome, as we either load too much (due to default fetch groups), or too less (due to lazy loading). Getting the subjects in a single query also reduces database round trips.

Addressed Issue

Relates to DependencyTrack/hyades#937

Additional Details

N/A

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@nscuro nscuro added the enhancement New feature or request label Dec 6, 2023
@nscuro nscuro force-pushed the jdbi-notifications branch from 7c1dd69 to 7d2eb56 Compare December 6, 2023 20:57
@nscuro nscuro force-pushed the jdbi-notifications branch 2 times, most recently from c662579 to 1a85436 Compare December 6, 2023 23:30
…ation subjects with JDBI

This is a prerequisite for DependencyTrack/hyades#937 in order to make notification dispatching less resource-intensive.

Loading this data via ORM is cumbersome, as we either load too much (due to default fetch groups), or too less (due to lazy loading). Getting the subjects in a single query also reduces database round trips.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro force-pushed the jdbi-notifications branch from 1a85436 to fc03b5f Compare December 7, 2023 10:45
@VithikaS VithikaS merged commit 482882c into main Dec 7, 2023
6 checks passed
@VithikaS VithikaS deleted the jdbi-notifications branch December 7, 2023 14:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2024
@nscuro nscuro added this to the 5.3.0 milestone Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants