Page MenuHomePhabricator

Update Flashcard to use Electron service in production
Closed, DeclinedPublic

Description

The prototype is currently very slow and probably unreliable because it's utilizing a service that is on labs. When the service is moved to production, update the prototype to use it.

Instructions from @Jhernandez :

The printing on the proto is just opening a window with a URL to the printing service.
This is where the printing service urls are generated:
https://github.com/joakin/protowiki/blob/master/src/api.js#L19-L37
So pointing somebody there and modifying https://github.com/joakin/protowiki/blob/master/src/api.js#L35-L37 to give the url to the new service back should be easy.
Keep in mind that the flashcard is generated by printing the prototype itself on the /flashcard/Title url (http://flashcard-1.surge.sh/flashcard/Cat) so if the production rendering service doesn't allow passing in arbitrary urls as the wmflabs one does, then we'll have to use the wmflabs one for the flashcard, but we can move the pdf download one to the production service.
If I'm not making much sense please ask more and I'll try to clarify!

Event Timeline

atgo moved this task from Backlog to Doing on the New-Readers board.Nov 2 2016, 5:14 PM

From @Jhernandez this may be more complicated than expected because Electron may not allow any sites that aren't mediawiki to be used.

atgo changed the task status from Open to Stalled.Nov 28 2016, 4:38 PM

@atgo @Nirzar not sure if this is still relevant?

atgo closed this task as Declined.Apr 17 2017, 8:49 PM