Skip to content

Conversation

@ElectricalBoy
Copy link
Collaborator

@ElectricalBoy ElectricalBoy commented Aug 8, 2025

Summary

This PR updates PatchAuto extension to use StandardPatch for querying.

How did you test this change?

preview with dev

Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

lgtm if tested successfully

@ElectricalBoy ElectricalBoy marked this pull request as ready for review August 12, 2025 07:25
@ElectricalBoy ElectricalBoy requested a review from Rathoz August 12, 2025 07:25
conditions = '[[type::patch]] AND [[pagename::' .. patch .. ']]',
query = 'name',
local patchData = Patch.queryPatches{
additionalConditions = ConditionNode(ColumnName('pagename'), Comparator.eq, patch:gsub(' ', '_')),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it correct to query this by pagename? I would have assumed that the patch input is a version? or am I wrong here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fwiw stormgate is the only wiki taking advantage of this extension and they do use pagename as patch input for whatever reason
you are right on patch input being a version on most wikis but stormgate doesn't seem to be one of them ¯\_(ツ)_/¯

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we bot fix this on stormgate and use versio number instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not against it, but they don't use a numeric system for patch either; see stormgate:Special:PrefixIndex/Patch
so I don't think it would be a straightforward bot job :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

as long as version is unique you can use that, right?
and iirc they always have the version as last part of the pagename, so bot job should be able to just replace the input params, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

and iirc they always have the version as last part of the pagename, so bot job should be able to just replace the input params, right?

oh right that does seem to be the pattern

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's update SG Tournament Pages, or?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants