SkizNet/mediawiki-WikiMirror

Add Fork tab to fork the most recent revision

Closed this issue · 1 comments

A user with the fork right can click on the tab to fork the page:

  • They can select to import the current revision only
  • They can select to import the full revision history
  • They can select to not import anything, making the page creatable locally

If the first two options are selected, the current revision is imported immediately. This issue does not track importing the full revision history; see #5 for that.

If the final option is selected, the page is marked as no longer being mirrored. It will turn links to it red, and can be created normally like any other nonexistent page.

Importing current revision only was not implemented as part of this; we will always attempt to import the full history (current rev immediately, everything else later).

At the moment we only track that we haven't imported everything yet but do not yet enqueue any jobs to perform those imports. See #5 for more details on what needs to happen to make this work in a future update.