Project

General

Profile

MediawikiMigration » History » Version 40

_I3^ RELATIVISM, 02/02/2022 12:48 PM
Add references for check of sucessfull migration

1 1 Denis 'GNUtoo' Carikli
h1. MediawikiMigration
2
3 37 _I3^ RELATIVISM
4
h2. TODO:
5
6
h3. INSTALLATION:
7
8 39 _I3^ RELATIVISM
* [x] Test instance - We find a way to install mediawiki somehow and we do the install *but* we don't use it officially yet
9 37 _I3^ RELATIVISM
like there would be no users accounts, so migration scripts can be tested.
10
* [ ] Migrating off Redmine - When everything is ready we'd disable wiki editions in redmine and enable account creation in mediawiki and announce it
11
12
h3. MIGRATION:
13
14 40 _I3^ RELATIVISM
* [ ] Use migration-scripts developed in-house for the creation of a git repository with all the history preserved
15 37 _I3^ RELATIVISM
* [ ] Use pandoc ":https://pandoc.org/" code-base to convert from textile to mediawiki (or a markdown derivative if we end up going that route), including child/parent structure of the articles, to transfer all articles to new mediawiki installation.
16 1 Denis 'GNUtoo' Carikli
* [ ] Use git-mw remote to prevent the loss of history, by recreating past contributors and editors accounts, so we make sure that smaller contributors don't get forgotten (alternatively look into "ActiveResource" has a simple way to solve the history issue, in order to get timestamps, use https://github.com/CyberTech/WikiText_to_RedMine_Migration as reference)
17 40 _I3^ RELATIVISM
* [ ] Check if mmigration was sucessfull, with shell command diff, and using export of the whole wiki for comparing. For that use either simple script like https://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html, or we could also use the redmine plugin https://github.com/eugene-sy/redmine_wiki_hierarchical_export but we might need to contact server admins for that.
18 1 Denis 'GNUtoo' Carikli
19 37 _I3^ RELATIVISM
h3. Usability
20
21 39 _I3^ RELATIVISM
* [ ] use sphynx like skin for mediawiki (nice userfriendly implementation of mediawiki https://wiki.trezor.io/ ant there is good information on skining in https://supertuxkart.net/Maintaining_the_Wiki)
22 37 _I3^ RELATIVISM
-ARCHIVE:
23
* [ ] Contact the Archive team to backup the redmine's wiki
24
* [ ] Make sure it gets archived completely on archive.org/web
25
* [ ] Make sure it gets archived in files that can be restored (but without non public information like password hashes, etc)
26
27
h2. REFERENCES:
28
29
h3. SOFTWARE NEEDED:
30
31
https://pypi.org/project/python-redmine/
32
https://github.com/schacon/gracke
33
this redmine plugin might be usefull "Wiki Hierarchical Export Plugin"
34
35
h3. ANNEXES
36
37
https://docs.bitnami.com/installer/how-to/configure-advanced-integration-git-redmine/
38
https://docs.bitnami.com/installer/apps/redmine/configuration/use-git/
39
https://www.redmine.org/projects/redmine/wiki/HowTo_configure_Redmine_for_advanced_git_integration
40
inspiration https://gist.github.com/tim-jansen/6263586
41
for usage parameters and variables use https://github.com/likema/redmine-exporter has reference
42
look into this for inspiration https://github.com/vile/redmine2confluence-wiki
43
inspiration http://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html
44
look for inspiration in parent-child codebase of https://github.com/eugene-sy/redmine_wiki_hierarchical_export
45
46 3 Denis 'GNUtoo' Carikli
h2. Rationale
47
48 4 Denis 'GNUtoo' Carikli
The documentation on the Redmine wiki has lot of duplication of information. 
49
50
The solution that has been choosen for that is the following:
51
* Migrate part of the information in Wikidata.
52
* Use template and/or generate information from Wikidata.
53
54
Other solutions were also possible such as migrating to documentation system like pandoc, but doing that would increase a lot the required skills of potential contributors. 
55
56
Using complicated documentation systems has several issues:
57
* Practically speaking, it makes it impossible for many people that don't know how to program, to participate in Replicant, fix issues etc. This would be very problematic for diversity and inclusiveness of people as it would unnecessarily discriminate against people without such skills. We could also potentially loose important contributions.
58
* While it would make the job of contributors way easier than without any templating or ways to programmatically generate documentation, it also increase the dependency on people who knows how to use that documentation system.
59
60 6 Denis 'GNUtoo' Carikli
Instead it would be better to use a documentation system that enable people without programming skills to easily contribute, while at the same time enabling people with programming skills to take advantage of it as well. Templates in various wikis system like Redmine or Mediawiki enables that.
61 4 Denis 'GNUtoo' Carikli
62 6 Denis 'GNUtoo' Carikli
In additions to wiki systems with templates, enabling to interface the documentation system with Wikidata also has many advantages:
63 5 Denis 'GNUtoo' Carikli
* It enables to reuse the information across different projects with similar goals (libreplanet wiki, Parabola wiki), different goals (for instance we could share the work of documenting hardware with the wikipedia and wikidata community), or through custom made tools.
64
* It can isolate the tasks requiring some programming to the strict minimum: Using programming in documentation systems can makes it easy to generate huge quantity of information, and Wikidata makes it possible to contribute to the information itself without knowing how to program. The programming is then potentially only required to fetch and show / format the information that comes from Wikidata.
65 13 Kurtis Hanna
66
h3. Redmine wiki
67 29 _I3^ RELATIVISM
68 30 _I3^ RELATIVISM
Issues:
69 32 _I3^ RELATIVISM
* The table syntax of Redmine textile format is too complicated for several key contributors like dllud.
70 30 _I3^ RELATIVISM
* It's probably hard to interface with Wikidata
71 36 _I3^ RELATIVISM
* Javascript is required for the preview to work. GNUtoo has huge issues with that as it leads him to many bad editions that are fixed in subsequent editions that are fixed in subsequent editions...
72 1 Denis 'GNUtoo' Carikli
* The syntax is less well known and the documentation is available on Redmine website but harder to find.
73 36 _I3^ RELATIVISM
* No one seem to know the syntax for the templating system nor its limits yet.
74 30 _I3^ RELATIVISM
75 32 _I3^ RELATIVISM
h3. Mediawiki 
76 30 _I3^ RELATIVISM
77 33 _I3^ RELATIVISM
Advantages:
78 36 _I3^ RELATIVISM
* Can be interfaced with Wikidata in various ways that are used in production on Wikipedia.
79
* The syntax is easy enough to use by people that don't know how to program, many people are used to it, and at the same time it's well documented.
80
* The table format is much easier to use, and it's usable by dllud.
81 28 _I3^ RELATIVISM
* The main functionality, including the preview work completely without JavaScript, which leads to an increase of edits quality  by people that don't run JavaScript from remote websites.
82 32 _I3^ RELATIVISM
* Other projects like Libreplanet, and Parabola uses mediawiki, so we can probably reuse things across different wikis.
83 31 _I3^ RELATIVISM
* Can be used offline thanks to projects like Kiwix
84 33 _I3^ RELATIVISM
* Can be more easily backuped by external projects like the archive team
85 36 _I3^ RELATIVISM
* We can probably reuse many templates from other wikis with compatible licensing, and some Replicant contributors like GNUtoo already know a bit the template language.
86 28 _I3^ RELATIVISM
* There are probably many more tools compatible with mediawiki than the Redmine wiki.
87 36 _I3^ RELATIVISM
88
Issues:
89
* We need to migrate, if possible in a way that preserves history
90 28 _I3^ RELATIVISM
* We loose the integration with redmine #<bug number> and will have to address this during the migration
91 33 _I3^ RELATIVISM
92
h2. Decision
93 1 Denis 'GNUtoo' Carikli
94
At several conferences, including the Replicant conference in Paris in Summer 2019, and the FOSDEM, people were in favor of migrating to Mediawiki and didn't have objections to it.
95 33 _I3^ RELATIVISM
96
h2. Migration
97
98 28 _I3^ RELATIVISM
The Replicant Project's "Redmine":https://redmine.org "wiki":https://redmine.replicant.us/projects/replicant-infrastructure/wiki uses "Textile":/help/en/wiki_syntax_detailed_textile.html markup language, while MediaWiki uses the "Wikitext":https://www.mediawiki.org/wiki/Wikitext markup language. 
99 33 _I3^ RELATIVISM
100 28 _I3^ RELATIVISM
It looks like some Redmine developers have recently been working to make it easier to transition from Textile to both generic Markdown and a more standardized flavor of Markdown called "CommonMark":https://en.wikipedia.org/wiki/CommonMark: https://www.redmine.org/issues/32424 https://www.redmine.org/plugins/redmine_reformat https://github.com/orchitech/redmine_reformat https://hub.docker.com/r/orchitech/redmine-gfm
101 33 _I3^ RELATIVISM
102
There is currently an RFC at MediaWiki about supporting CommonMark in MediaWiki natively: https://www.mediawiki.org/wiki/Requests_for_comment/Markdown 
103
104
The "comments section":https://www.mediawiki.org/wiki/Talk:Requests_for_comment/Markdown of MediaWiki's RFC page on this topic may be helpful to read for context on this proposal.
105
106
If we can find a reliable fork of MediaWiki that uses CommonMark instead of Wikitext, we should at least consider using it for the reasons outlined in the MediaWiki RFC links above and because of the fact that we now seem to have reliable software available to us to transition from Textile to CommonMark.
107
108
If we ultimately decide to use vanilla MediaWiki with Wikitext, or if we don't find any forks of Mediawiki that use CommonMark instead of Textile, it is our assumption that it would be easier to transition from the more common Markdown or CommonMark markup languages to MediaWiki's Wikitext markup language than it would be to transition from Textile directly to Wikitext. This assumption has been made based, in part, on arguments made here: https://hub.docker.com/r/orchitech/redmine-gfm