SourceKettle / sourcekettle

SourceKettle is an open source project management and source code management tool
17 stars 6 forks source link

Clean up the API/JS insanity #449

Open antineutron opened 9 years ago

antineutron commented 9 years ago

The javascript is getting a bit hairy now and definitely needs simplifying. Backbone looks like it might be a good thing to use for the tasks interface (i.e. bind bits of the page to data objects, which can be updated via AJAX calls, and it does most of the heavy lifting for you).

The AJAX API calls are also a bit moosed. We've generally got add/edit/view/delete methods but also api_update, api_foo et al. for various smaller tasks.

It's probably time for a version 2 (in fact a lot of the changes so far should really have been v2, v3, v4 etc!):