Difference between revisions of "Wiki Web Service"

From MusicBrainz Wiki
m (15 revision(s))
m (markup)
Line 24: Line 24:
 
* The webservice must differentiate between pages that are listed in the [[Moderated Revision Table|ModeratedRevisionTable]] and pages which are not listed, and serve the appropriate revision of the page.  
 
* The webservice must differentiate between pages that are listed in the [[Moderated Revision Table|ModeratedRevisionTable]] and pages which are not listed, and serve the appropriate revision of the page.  
 
* 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 webservice must perform the full set of [[WikiDocs Conversion|WikiDocsConversion]]<code><nowiki></nowiki></code>s.  
+
* The webservice must perform the full set of [[WikiDocs Conversion|WikiDocsConversion]]s.  
  
 
[[Category:To Be Reviewed]] [[Category:Development]] [[Category:Wiki]]
 
[[Category:To Be Reviewed]] [[Category:Development]] [[Category:Wiki]]

Revision as of 15:01, 18 March 2009

The WikiWebService is a component of the planned WikiDocs. It is the mechanism that transcludes a WikiPage to the MusicBrainzWebSite. It displays 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 WikiDocsTransclusionTable.

  • If it is, it pulls the last moderated revision from the MusicBrainzWiki and serves that inside a <div class="WikiDocsContent">.
  • If it is not, it pulls the current revision of the page and serves that inside a <div class="WikiContent">.

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 MusicBrainzWebSite:

New /doc/ Meachnism