Wiki Web Service: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(update (Imported from MoinMoin))
(trying to update this to the new scheme (Imported from MoinMoin))
Line 1: Line 1:
The WikiWebService is a component of the planned [[WikiDocs]]. This component will display pages from the [[MusicBrainz Wiki|MusicBrainzWiki]] as uneditable webpages within the normal header, footer, menubar etc. of the [[Main Site|MainSite]].
The WikiWebService is a component of the planned [[WikiDocs]]. This component will display pages from the [[MusicBrainz Wiki|MusicBrainzWiki]] as uneditable webpages within the normal header, footer, menubar etc. of the [[MusicBrainz]] website.

The webservice has to check, whether the requested page is listed in the [[Moderated Revision Table|ModeratedRevisionTable]].
* If it is, it pulls the last moderated revision from the [[MusicBrainz Wiki|MusicBrainzWiki]] and serves that inside a <div class="[[Wiki Docs Content|WikiDocsContent]]">.
* If it is not, it pulls the current revision of the page and serves that inside a <div class="[[Wiki Content|WikiContent]]">.

Additionally the webservice has to do a lot of [[WikiDocs Conversion|WikiDocsConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.


===Old /wd/ Mechanism===
===Old /wd/ Mechanism===
Line 15: Line 21:
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .


The page about the (old) [[Wiki Docs Converter|WikiDocsConverter]] lists a couple of features that the web service will have to do now.
[[Category:To Be Reviewed]]
[[Category:To Be Reviewed]] [[Category:Development]]

Revision as of 00:20, 26 October 2005

The WikiWebService is a component of the planned WikiDocs. This component will display pages from the MusicBrainzWiki as uneditable webpages within the normal header, footer, menubar etc. of the MusicBrainz website.

The webservice has to check, whether the requested page is listed in the ModeratedRevisionTable.

  • If it is, it pulls the last moderated revision from the MusicBrainzWiki and serves that inside a
    .
  • If it is not, it pulls the current revision of the page and serves that inside a
    .

Additionally the webservice has to do a lot of WikiDocsConversion stuff. Since that is quite complex, we will have to make very judicious usage of caching.

Old /wd/ Mechanism

MatthiasFriedrich explained me how the content of a MoinMoin wiki page is displayed on the MusicBrainz MainSite:

New /doc/ Meachnism

The page about the (old) WikiDocsConverter lists a couple of features that the web service will have to do now.