Skip to content

chore(preprod): Add image dedupping logic when creating ParsedAssets folder#2855

Closed
NicoHinderling wants to merge 1 commit intomasterfrom
image-dedupping-logic-for-assetcatalog
Closed

chore(preprod): Add image dedupping logic when creating ParsedAssets folder#2855
NicoHinderling wants to merge 1 commit intomasterfrom
image-dedupping-logic-for-assetcatalog

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

@NicoHinderling NicoHinderling commented Oct 16, 2025

This is logic that we have in the emerge ios code but not here. I noticed that when testing HackerNews, we had duplicate images showing up and because of that, duplicate image insights. This change fixes both

Before:
image

After:
image

@NicoHinderling NicoHinderling requested review from a team as code owners October 16, 2025 22:13
@NicoHinderling NicoHinderling changed the title chore(preprod): Add image dedupping logic when creating ParsedAssets … chore(preprod): Add image dedupping logic when creating ParsedAssets folder Oct 16, 2025
let (structuredThemeStore, assetKeys) = initializeCatalog(from: file)

var images: [String: CGImage] = [:]
var seenImageKeys: [String: String] = [:] // SHA256 -> imageId mapping
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't seem right to me, where is an equivalent mapping used in the emerge code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had some misunderstanding , we do logic to set the isDuplicate flag, but we don't actually do de-dupping in the parsing. The main misunderstanding I had was around how we will no longer be doing app thinning automatically for users, so I think I'm going to close this PR for now

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