Antonio-Maranhao opened a new pull request #1165: Remove dependency with 
Backbone.Model
URL: https://github.com/apache/couchdb-fauxton/pull/1165
 
 
   ## Overview
   
   Introduces new classes `Model` and `Collection` to directly replace 
Backbone's `Model` and `Collection`. The new classes implement the main 
Backbone's methods (e.g. `save()` and  `destroy()`) using `fetch`. This 
provides a quick(er) way to remove the dependency with Backbone since most of 
the Fauxton code/logic that relies on Backbone models and collections can 
remain unchanged.
   
   Summary of changes:
    - replaced all references to Backbone.Model/Collection with Model/Collection
    - it now uses `class extends Model` / `class extends Collection` instead of 
`Backbone.Model.extend` / `Backbone.Collection.extend`
    - callers now use `then/catch` (Promises) instead of `done/fail` (jQuery 
deferred).
   
    - Misc:
      - Replaced `Fauxton.VersionInfo` with a `fetch` call.
      - Removed unused classes: `BulkDeleteDocModel`, 
`BulkDeleteDocCollection`, `MangoBulkDeleteDocCollection`
   
   
   ## Testing recommendations
   
   - Verify you can create, list, delete databases
   - Verify you can list all docs, list view results
   - Edit and save docs
   - Edit and save views
   
   ## GitHub issue number
   
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to