Jump to content

User:GraphBot

From Wikipedia, the free encyclopedia
GraphBot
This user is a bot
(talk · contribs)
GraphBot fixing a broken graph
OperatorGalStar (talk)
Approved?Yes
Flagged?Yes
Edit rateVariable
Edit periodContinuous
Automatic or manual?Automatic
Programming languageRust
Exclusion compliant?Yes
Source code published?GitHub
Emergency shutoff-compliant?Create User:GraphBot/Shutdown or c:User:GraphBot/Shutdown



This bot is in production, please report all bugs/mistakes to the operator (User:GalStar) if possible.

To shut this bot down, create the page User:GraphBot/Shutdown, this will ensure it shuts down gracefully.

News

[edit]
  • Aug. 27 - Fixed the error reporting page; should be updating again.
  • Aug. 27 - GraphBot now trims HTML comments out of parameters, now things should stop failing for no reason!
  • Aug. 25 - Default chart type set as line, as per Graph Extension code.
  • Aug. 25 - Pie chart support added!
  • Aug. 24 - Switch to ToolsDB from sqlite3. This should make debugging easier.

Known issues

[edit]
  • Graph tags are unsupported

Upcoming features

[edit]

Sorted by order of expected completion

  • Faster graph error reporting (currently a delay of up to a minute can occur)
  • Better error messages on the articles themselves
  • Graph tag support

Invocation

[edit]

At the moment the chart extension doesn't support every usecase that Template:Graph:Chart supports. As such, to mark a chart as ready for porting, you must instead change the template name to Template:PortGraph.

For example {{Graph:Chart|x=...|y=...}} becomes {{PortGraph|x=...|y=...}}.

Furthermore please ensure that the name attribute is present, this name will be the name of the files created on wikimedia commons.

The name attribute should not contain special characters.

Technical Details

[edit]

GraphBot is written in rust, however parsing is done in python. The two parts communicate with each other via XML-RPC, with the python side being the server. At some point I'll finish porting the parser to rust, and the bot will then be built purely with rust. The bot stores the errors it encounters when porting a graph in the ToolsDB database that toolforge provides.

See Also

[edit]