-
Notifications
You must be signed in to change notification settings - Fork 315
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
Add lock routes #3421
base: master
Are you sure you want to change the base?
Add lock routes #3421
Conversation
Still working on functionality, visibility will come next. |
On opening a locked brew for editing: On the new "LOCKS" tab of the Admin page:
|
Still need to implement some feedback from the Lock Brew method, to indicate success or failure. Otherwise I think most of the functionality is in a good place, although the styling could probably still use some improvement. |
This PR contributes towards Issue #3326.
This PR adds the following routes to the Admin API:
/admin/lock
:GET
returns the number of documents in the collection that have thelock.locked
property set totrue
./admin/lock/:id
:POST
takes a brew ID and a JSONlock
object; updates the identified brew with the properties of thelock
object./admin/unlock/:id
:PUT
takes a brew ID; removes the lock from the identified brew/admin/lock/reviews
:GET
returns a collection of documents that has thelock.locked
set totrue
andlock.reviewRequested
exists./admin/lock/review/request/:id
:PUT
updates the identified brew'slock
object with areviewRequested
property (current date/time). NON-ADMIN ROUTE/admin/lock/review/remove/:id
:PUT
updates the identified brew'slock
object to remove thereviewRequested
property without removing the entirelock
.