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

Fix issue with duplicate CDX nodes #1237

Merged
merged 5 commits into from
Feb 4, 2025

Conversation

ctron
Copy link
Contributor

@ctron ctron commented Feb 4, 2025

Also:

  • Re-add indices for digest columns on the source document table
  • Reduce logging of happy path during ingestion, has a performance impact
  • Honor the existence of other documents too, although that didn't cause any issues so far

Closes: #1236, #303

@ctron ctron added the bug label Feb 4, 2025
@ctron ctron requested a review from jcrossley3 February 4, 2025 13:05
@ctron ctron enabled auto-merge February 4, 2025 13:05

#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Outcome<T> {
Existed(T),
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: I do not fully understand the decomposition of Existed and Added state .... I mean I guess we could infer on True/False on Added ... so we want to sometimes add over an existed ... a few words explaining the intent of Outcome probably would help.

impl MigrationTrait for Migration {
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
manager
.create_index(
Copy link
Collaborator

Choose a reason for hiding this comment

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

thx for this - I believe we had these before and after the refactoring into source_document .. not sure when/why this happened - glad they are back.

Copy link
Collaborator

@JimFuller-RedHat JimFuller-RedHat left a comment

Choose a reason for hiding this comment

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

apart from minor - LGTM

@ctron ctron added this pull request to the merge queue Feb 4, 2025
Merged via the queue into trustification:main with commit 23a1ce0 Feb 4, 2025
5 checks passed
@ctron ctron deleted the feature/fix_duplicate_1 branch February 4, 2025 13:32
@ptomanRH ptomanRH added this to the RHTPA 2.0.0 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Don't re-ingest SBOMs
3 participants