User:Mike-ZeleaCom/Architecture/Voting
From Wiki
< User:Mike-ZeleaCom | Architecture(Redirected from User:Mike-ZeleaCom/Architecture/Preference routing)
|
The voting interface defines methods for voting and viewing results, and preference routing among pollservers.
results
Shows the latest results for a poll.
Parameters
-
issue
: The area name and issue identifier, separated by a '|' -
route
: Whether to do preference routing, 'y' for yes, 'n' for no. The default is 'y'.
Example
edo ? method=results & issue=ca3to
vote
Shows a voting page.
Parameters
-
issue
: Issue identifier (area|local issue name). -
candidate
: Candidate identifier (area|username). This parameter is optional. If the area component is omitted, it defaults to the area of the issue. -
route
: Whether to do preference routing, 'y' for yes, 'n' for no. The default is 'y'.
Example
edo ? method=vote & issue=ca & candidate=ca3to
Preference routing
Preference routing can redirect calls according to the user's preferences, and the local area of the issue. The preferred pollserver network is fetched from the preference posting interface of the streetwiki, while the pollserver node is fetched from the area mapping interface.
- The routing pollserver will pass the full user identifier to the recipient (yet to define the params for this), and both pollservers will cookie-cache the identifier for future use. Forkable and router assignment controlled by wiki admin and link authors. -