Skip to content

Comments

Community Health: Obsolete resources and corresponding entities#3965

Open
functionzz wants to merge 6 commits intomozilla:mainfrom
functionzz:obsolete_resources_over_deletion
Open

Community Health: Obsolete resources and corresponding entities#3965
functionzz wants to merge 6 commits intomozilla:mainfrom
functionzz:obsolete_resources_over_deletion

Conversation

@functionzz
Copy link
Collaborator

Summary

This PR addresses the data loss incurred when someone removes strings from projects like Firefox. Instead of obsoleting the strings, we currently delete the data which causes contributior attribution to be lost.

Fixes #2133.

@functionzz functionzz changed the title Data Model: Obsolete resources and corresponding entities Community Healthl: Obsolete resources and corresponding entities Feb 13, 2026
@functionzz functionzz changed the title Community Healthl: Obsolete resources and corresponding entities Community Health: Obsolete resources and corresponding entities Feb 13, 2026
Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

Nice work!

Please also make sure that everywhere in the code where we references all resources (and count on the fact that obsolete resources are currently not present), we now reference active resources only.

@functionzz functionzz requested a review from mathjazz February 17, 2026 18:00
@functionzz functionzz marked this pull request as ready for review February 17, 2026 23:15
Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

This will need extensive testing before we ship it.

functionzz and others added 4 commits February 19, 2026 21:32
Does not delete resources/entities/translated_resources - filters for obsolete strings will be added later
Co-authored-by: Matjaž Horvat <matjaz.horvat@gmail.com>
@functionzz functionzz force-pushed the obsolete_resources_over_deletion branch from 8ee6402 to 92481ce Compare February 20, 2026 02:38
@functionzz
Copy link
Collaborator Author

I guess the next natural step is writing tests for the various cases listed here if everything looks fine.

@functionzz functionzz requested a review from mathjazz February 20, 2026 02:43
@mathjazz
Copy link
Collaborator

I guess the next natural step is writing tests for the various cases listed here if everything looks fine.

That would be great!

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.

Obsolete Resources instead of deleting them

2 participants