Change from JSON-RPC to just REST-like http+json (with tests)
There is no need to keep using json-rpc. We are not doing anything that could not be done with just plain http+json, which is more simple, perfectly supported by Mojolicious without addons, natively understood by browsers, easier to authenticate (especially using iChain)... and so on.
rpc.pl, worker, and clone_job.pl should be adapted. Most likely using Mojolicious::UserAgent.
We need proper tests (or adapt the already existing ones), of course.
#10 Updated by ancorgs almost 9 years ago
- % Done changed from 20 to 70
Everything is migrated now. Issue still open because I cannot prove it works due to (a) some bugs in the new DBIx::Class code, (b) our test suite still lacks features. I will spend some time fixing (a) before committing and closing the issue.
#11 Updated by ancorgs almost 9 years ago
My lack of Perl knowledge resulted in me loosing the whole morning just to modify the tests in order to prove the bug in DBIx::Class. The bug is fixed now and the code is synced with the changes introduced in the devel branch. The worker still have some issues, so WIP.
#12 Updated by ancorgs almost 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 70 to 100