-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] add priority #4313
[API] add priority #4313
Conversation
[API] add priority in chapter create and update [API] add priority in page create and update
Thanks for this @rouet.
Is it currently working on page create? Not tested it myself but looking at the existing code I'd be surprised if priority was filled here.
Tests would be ideal. For the update endpoints, you can update the existing Additionally, could you update the relevant example API requests/responses within this directory?: |
my tests were not complete, indeed, it does not work at creation, should we make it work? because I have the impression that the modification of the code will be much more consequent.
ok i'll take care of that |
Ideally yes, but if you're uncomfortable making further changes you can ignore this but be sure to still add a test, so that I have a failing test case to address before merging. |
Hi I've push a last version (if it's ok) with priority set correctly on insert. regards |
Review of #4313 - Made constructor changes while reviewing some classes. - Updated API examples for consistency. - Tweaked formatting for some array changes. - Simplified added tests. - Tweaked chapter/page repo priority handling to be simpler. Performed manual API endpoint testing of page/chapter create/update.
[API] add priority in book read
[API] add priority in chapter create and update
[API] add priority in page create and update
I propose a pull request in order to add the possibility of modifying the priority field of pages and chapters by the api, this in order to allow sorting a book using the api.
This proposal solves the problem posed by @riton in ticket #4298.
I also added in addition to display the priorities when a book is requested by the rest api.
We have tested and validated it internally.
I am not a Laravel specialist, but if it is necessary to add the corresponding tests, I can do it, but it will need help on the scenarios to be tested.
Regards.