Extension:Teahouse/Development

This page serves as a public notebook for any kind of information (concepts, ideas, discussions,...) related to the further development.

Resourceloader Module dependencies

 * at init time
 * ,  (for  )
 * for the dialog
 * for API calls of dialog
 * for API calls of dialog

Persistence Layer aka "The Board"
OOJS Class "Board":
 * API Call to create subpage of, e.g. "Wikipedia:Teahouse/Board"
 * API Call to append/prepend config.basePage with
 * API Call to add subpage to watchlist (if registered user) or add title and publish timestamp to cookie (anon user)
 * returns jQuery Promise --> Dialog can loadmask itself, user can be notified on success/error
 * (Bad function name! Find better!) - This is for the planned notification interface
 * Read-in cookie with list of questions / or find contributions of logged in user
 * API Call for each question (or as bulk) to determine current state (pending|answered)
 * returns array of questions (title, href) and their respective state
 * - This is for the planned "similar questions" feature
 * API Call to search (fulltext)
 * Filtering by -prefix
 * returns array of hits
 * returns array of hits

Notifications

 * Stores a list of titles and timestamps
 * Checks the list entries timestamp against the current edit timestamp of the title (API Calls)
 * Notifies user if newer change
 * Resets the timestamp on visit

Dialog

 * Subclass of
 * Injection of  object in
 * Info: Is user anon? --> display "IP will be saved"-Hint
 * "The Board": callback for save process OR  capabilities of  ?

Issues

 * API edit returns "DB error" when appending signature ( --~ ) to question text (Only in local setup. on https://test.wikipedia.org it works)
 * On https://test.wikipedia.org the  is not displayed where it should be. In local checkout (1.25wmf2) it works. I contacted Trevor Parscal on this. Also added bugtracker entry https://bugzilla.wikimedia.org/show_bug.cgi?id=72610