Skip to content

Conversation

@deer-wmde
Copy link
Contributor

@deer-wmde deer-wmde commented Nov 25, 2025

To reduce steps necessary for a MW update I believe we should define this magical map at one place only.

TODO:

@deer-wmde deer-wmde changed the title cleanup: move md-db-version-map to conf file cleanup: move mw-db-version-map to conf file Nov 25, 2025
@deer-wmde deer-wmde changed the title cleanup: move mw-db-version-map to conf file cleanup: move MW DB Version Map to config file Nov 25, 2025
@deer-wmde deer-wmde marked this pull request as ready for review November 25, 2025 09:50
Copy link
Member

@outdooracorn outdooracorn left a comment

Choose a reason for hiding this comment

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

LGTM! Left one optional nitpick

Comment on lines +4 to +9
$versionMap = [
'mw1.39-wbs1' => '139',
'mw1.43-wbs1' => '143',
];

return $versionMap;
Copy link
Member

Choose a reason for hiding this comment

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

[non-blocking nitpick]: no need for a variable?

Suggested change
$versionMap = [
'mw1.39-wbs1' => '139',
'mw1.43-wbs1' => '143',
];
return $versionMap;
return [
'mw1.39-wbs1' => '139',
'mw1.43-wbs1' => '143',
];

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assume we might benefit from it when we will add code to read this from somewhere elseTM in the future (or when we want to figure out how that could work & look like)

@deer-wmde deer-wmde merged commit 721496d into main Nov 25, 2025
5 checks passed
@deer-wmde deer-wmde deleted the de/drmymap branch November 25, 2025 10:04
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.

3 participants