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

Migrate scans to have their own mongo collection #1915

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

PE39806
Copy link
Contributor

@PE39806 PE39806 commented Feb 19, 2025

Currently scans are stored here: https://github.com/gchq/Bailo/blob/main/backend/src/models/File.ts#L22

This ticket is to create a new Mongo collection to store scans relate to files or Docker Images. This will include adding a scan type to the scan document and writing a migration script to migrate all existing file scans to the new location.

The file scanning code in the file service will need to be moved into its own service and refactored to work with this new collection.

@PE39806 PE39806 added enhancement New feature or request javascript Pull requests that update Javascript code labels Feb 21, 2025
@PE39806 PE39806 marked this pull request as ready for review February 24, 2025 11:10
…idate Scan typing, and replace multiple find & filters with a single mongo aggregate call
@PE39806 PE39806 requested a review from JR40159 February 25, 2025 11:13
@PE39806 PE39806 requested a review from ARADDCC002 February 25, 2025 12:22
Copy link
Member

@JR40159 JR40159 left a comment

Choose a reason for hiding this comment

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

Requested update on previous comment

@PE39806 PE39806 requested a review from JR40159 March 5, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants