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

Resolves #741 Fixes GET /cve-id endpoint's out of memory bug #1091

Merged
merged 11 commits into from
Jul 6, 2023
Merged

Conversation

jdaigneau5
Copy link
Collaborator

@jdaigneau5 jdaigneau5 commented Jul 5, 2023

Closes Issue #741

Summary

The GET /cve-id endpoint would run out of memory for large datasets. The aggregation was simplified and split into smaller queries, with some of the work moved to the server to avoid this bug.

Important Changes

cve-id.controller.js

  • Updated getFilteredCveId function to create a map of orgs and users used to populate shortNames and userNamers for cve-ids
  • Created a simplified aggregationObj.

getCveIdTest.js

  • added new integration tests for GET /cve-id

Testing

Steps to manually test updated functionality, if possible

  • 1) Run npm run test:unit-tests
  • 2) Run npm run test:integration

@david-rocca david-rocca merged commit 4945e4e into dev Jul 6, 2023
9 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