Skip to content

Conversation

@IlyasLebleu
Copy link
Contributor

@IlyasLebleu IlyasLebleu commented Oct 5, 2025

Implement logging of CTOP page protections per ArbCom decision here, Twinkle implementation requested here. Tested on test.wikipedia as usual.

image

@github-actions github-actions bot added the Module: morebits The morebits.js library label Nov 2, 2025
@NovemLinguae
Copy link
Member

cc @siddharthvp since this patch adds a Morebits function and you know the Morebits architecture better than I do.

Copy link
Member

@NovemLinguae NovemLinguae left a comment

Choose a reason for hiding this comment

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

You mention "logging". Does this need to write the protection to a logging page? Or does it just put it in the edit summary so that a bot can do the logging?

As the patch currently is, it does not appear to write to any log pages.

image

@IlyasLebleu
Copy link
Contributor Author

Regarding logging, it's being done by L235's bot, which only needs this to be in the edit summary for it. I'll take care of implementing on-wiki logging, thanks a lot!

@NovemLinguae
Copy link
Member

Note to self: test for XSS (if a bad actor were to edit the on-wiki JSON pages to put some HTML into the JSON)

I'll take care of implementing on-wiki logging

I assume you mean "loading"? :) Sounds like the bot handles "logging"

@IlyasLebleu
Copy link
Contributor Author

I assume you mean "loading"? :) Sounds like the bot handles "logging"

Yes, thanks, I got the two mixed up! It works now, but due to JSON being cached, we might have to wait a day for the GS list to be retrieved (the CTOP one already is).

.select2({
theme: 'default select2-morebits',
width: '80%',
matcher: Morebits.select2.matchers.dashInsensitive,
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed? Russo-Ukrainian War seems like the only entry with dash, which is easily retrieved from a search for "rus" or "ukr". Number of GS topics is so small that a user likely never has to enter more than 3 characters, so using custom search matchers feels like overengineering.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed for code matching. Some codes like A-A or A-I need the dash for correct logging, but most people will just type AA or AI, and adding all of them as extra aliases would mean a lot of clutter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To clarify, I made it for CTOPs (where some codes have dashes), but it's more consistent to use the same matcher for GSes too since it's already there.

@NovemLinguae NovemLinguae dismissed stale reviews from siddharthvp and themself December 13, 2025 05:31

Dismissing the -1's since they have all been addressed. This is probably ready for a final review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants