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: cleaning prefixes removes all instances instead of retaining wanted ones #237

Merged
merged 3 commits into from Jan 30, 2024

Conversation

m90
Copy link
Contributor

@m90 m90 commented Jan 3, 2024

Ticket https://phabricator.wikimedia.org/T347023

I have to admit I have a very hard time understanding what the original function was trying to do, so I rebuilt it to do what I think it should be doing. This might well be wrong.

@m90 m90 force-pushed the fr/keep-prefix branch 2 times, most recently from 4b030b3 to 8b5f492 Compare January 3, 2024 13:13
@tarrow
Copy link
Contributor

tarrow commented Jan 10, 2024

I wrote a mini essay on the ticket rather than on here after spending a while looking at the code and also trying to interpret what it "should" be doing; I think this patch does actually solve the user's problem as described but causes a regression in what was probably sort of the feature set from before.

Copy link
Contributor

@tarrow tarrow left a comment

Choose a reason for hiding this comment

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

Looks like the sensible solution to me

@m90 m90 merged commit 3df8a5d into main Jan 30, 2024
4 checks passed
@m90 m90 deleted the fr/keep-prefix branch January 30, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants