Wikipedia:Bots/Requests for approval/SDZeroBot 13

From Wikipedia, the free encyclopedia

Operator: SD0001 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 20:00, Sunday, March 10, 2024 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): TypeScript on Node.js

Source code available: GitHub

Function overview: Check remote pages for new edits and raises edit request for the corresponding local page

Links to relevant discussions (where appropriate): Partly in MediaWiki talk:Common.js#Class-triggered gadgets

Edit period(s): Continuous

Estimated number of pages affected: Very few - depends on config

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: Based on the configuration at User:SDZeroBot/Gadgets-sync-config.json, the bot checks each remote page for new edits, and raises an edit request to the corresponding local page.

This is intended to allow locally hosting a copy of gadgets from other wikis. Hosting locally significantly improves performance due to ResourceLoader minification and caching. It's also somewhat better from a security standpoint as local interface admins can audit changes before syncing them.

Doing a one-time copy without a setup to track upstream edits generally doesn't work. It results in unmaintained forks which miss out on bug fixes and new features added in the upstream.

Discussion[edit]

Approved for trial (5 edits or 30 days, whichever happens first). Please provide a link to the relevant contributions and/or diffs when the trial is complete. I feel like a trial here is mostly going to be a proof of concept, but a very useful one if it behaves as intended, so it's not a high edit count (i.e. the time delay is mainly so it doesn't last forever). Primefac (talk) 20:57, 10 March 2024 (UTC)[reply]

@User:SD0001 Would the bot generate two requests if a change was made and subsequently reverted upstream within a short period of time. (ping to reply pls) Sohom (talk) 04:21, 5 April 2024 (UTC)[reply]
@Sohom Datta Depends on how short the period of time is. If less than 1 hour, then no. – SD0001 (talk) 09:27, 5 April 2024 (UTC)[reply]
I think that is a acceptable margin. (I would have personally gone for intervals of 1 day, but that's WP:BIKESHED) Sohom (talk) 15:55, 7 April 2024 (UTC)[reply]