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

SMW 2.1 -> 2.5.8 #55

Merged
merged 2 commits into from
Dec 18, 2024
Merged

SMW 2.1 -> 2.5.8 #55

merged 2 commits into from
Dec 18, 2024

Conversation

hcooper
Copy link
Contributor

@hcooper hcooper commented Jul 21, 2023

@BenjaminPelletier
Copy link
Member

Just to give a review update, I am definitely still planning on approving -- the thing I want to do before that is independently verify deployment on my GCP dev instance. Thanks for this work!

@hcooper hcooper force-pushed the upgrade/smw_2.1_to_2.5.8 branch 2 times, most recently from 7185012 to a3c4f63 Compare September 6, 2023 22:40
@hcooper
Copy link
Contributor Author

hcooper commented Sep 7, 2023

Argh. Just found this breaks SemanticForms (the "Edit" tab reverts back to the dumb editor, but the extension is still listed in Special:Version).

Bisecting it, even just upgrading SMW one version, to 2.2.0, breaks it.

@hcooper
Copy link
Contributor Author

hcooper commented Sep 7, 2023

After waaaay too much debugging at a low level (upgrading, downgrading, printing, dumping, etc), I went back a re-read the docs.

https://www.mediawiki.org/wiki/Extension:Page_Forms/The_%22edit_with_form%22_tab

A (the?) fix is just to add a line to each Category page (Canyon, Region, etc) defining the default form template. For example:

Here: http://ropewiki2.ak/Category:Regions/edit add the line {{#default_form:Region}}

After that, the expected "Edit/Edit source" tabs reappear.

It's not clear what's changed in the upgrade (it's definitely tied to moving to above SMW 2.1), but I like this as a fix.

Update: This explains it:

The syntax "[[Has default form::form-name]]", that was used in former versions of this extension, i.e. when it was called Semantic Forms, to bind a form to a page, no longer works; every such call has to be changed to #default_form.

As an aside, I don't think we need to keep our own copy of the old SemanticForms repo ourselves. Cloning the PageForms repo and checking out branch 3.7 (the last version of SemanticForms) seems to work fine.

@hcooper hcooper force-pushed the upgrade/smw_2.1_to_2.5.8 branch from a3c4f63 to 650d1ef Compare September 7, 2023 06:42
@hcooper
Copy link
Contributor Author

hcooper commented Sep 7, 2023

I'm testing the default form conversion on some lesser used categories to check they can be switched before the upgrade. e.g. https://ropewiki.com/Category:Knots

Update: this is complete for all category pages which had a default form defined.

@hcooper hcooper mentioned this pull request Aug 29, 2024
@hcooper hcooper force-pushed the upgrade/smw_2.1_to_2.5.8 branch 4 times, most recently from 1e065f3 to 0a3d310 Compare August 30, 2024 01:28
hcooper added a commit that referenced this pull request Sep 4, 2024
Depends on SMW >= 2.5.x (#55)
@hcooper hcooper force-pushed the upgrade/smw_2.1_to_2.5.8 branch from 0a3d310 to 27ba907 Compare September 4, 2024 01:39
@hcooper hcooper changed the title [Upgrade] SMW 2.1 -> 2.5.8 SMW 2.1 -> 2.5.8 Sep 4, 2024
Copy link
Member

@BenjaminPelletier BenjaminPelletier 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 you have good testing for the change (thanks for that work!), so let's update :)

@hcooper hcooper merged commit 7e1b0a3 into master Dec 18, 2024
@hcooper hcooper deleted the upgrade/smw_2.1_to_2.5.8 branch December 18, 2024 22:16
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.

2 participants