patchdemo icon indicating copy to clipboard operation
patchdemo copied to clipboard

Update wikis with newer patchset, retaining database

Open DemianX0 opened this issue 4 years ago • 3 comments

Use-case: for some changesets I've set up test users, a demo page. I demoed 4 patches from a chain, a small error in the first patch required a rebase of the whole chain and recreation of the 4 patches, setting up a user + main page on all 4 again. I expect I'll be doing this again and again. An option to update a former wiki would make this a snap.

DemianX0 avatar Apr 24 '20 08:04 DemianX0

What about special:export/import?

edg2s avatar Apr 24 '20 10:04 edg2s

What about special:export/import?

Quite tedious. What I had to do to make it most "efficient": http://patchdemo.wmflabs.org/wikis/3f2cebb066a5706519be6492a83a774f/w/index.php/Main_Page

Procedural burden:

  • need to maintain a list of all pages; tried category: *.js, *.css not included
  • revert Main Page after import... the last revision is the one generated by patchdemo
  • recreate users, rights
  • update all the links with the new demo GUID

DemianX0 avatar Jun 22 '20 15:06 DemianX0

We would also need to run various updates, such as composer update and maintenance/update.php. The risk of accidentally breaking a wiki would increase, but this may be acceptable.

edg2s avatar Jan 21 '21 18:01 edg2s