Fixes #1870#2527
Fixes #1870#2527JohnMcLear merged 3 commits intoether:developfrom ldidry:issue-1870-get-saved-revisions-count
Conversation
|
Awesome thanks @ldidry can you please include backend tests with this PR? Bump me if you need hlep writing them. They are suppperrrr easy to write though :) J |
|
I'll try. |
|
I got a problem. It's up to you to say if I have to fix it : we can't save revisions through API right now. So if I want to test if the saved revisions count and list vary, I have to add a Would it be ok for you if I create an author "API" before saving the revision and use it? Or should I just stay with one test for my methods? |
Calling saveRevision create an author which name is "API"
These new functions are: * getSavedRevisionsCount * listSavedRevisions * saveRevision + typo fixing in backend tests
|
I didn't wait for your answer, I created a saveRevision API function |
|
ping @JohnMcLear |
|
Excellent work thanks! |
|
btw your tests fail |
|
It works on my computer. Strange. Did you run the test or is it continuous integration? |
|
I just tested on the develop branch (with my commit merged): it worked. |
|
Hrm, try clear your database.. I tried to run the test using bin/backendTests.sh |
All tests passed well. |
|
Msut have been a glitch in the matrix, seems fine now :| |
Add two functions to API :