You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket implements the R part of CRUD (or GET /api/user/views). This API route should return only the views belonging to the current user. It should do this by inspecting the currently authenticated user and querying the database for view.eppn == user.eppn.
To complete this ticket, we'll probably need:
A ViewService with a getByUser method or similar. Into that method we can provide the user EPPN
Also been wondering about creating some kind of request-scoped CURRENT_USER token to @Inject into controller actions so that we can @Inject(CURRENT_USER) both here and (potentially) in other places if we want to later, rather than injecting Request and inspecting req.user each time.
The text was updated successfully, but these errors were encountered:
This ticket implements the
R
part ofCRUD
(orGET /api/user/views
). This API route should return only the views belonging to the current user. It should do this by inspecting the currently authenticated user and querying the database forview.eppn == user.eppn
.To complete this ticket, we'll probably need:
ViewService
with agetByUser
method or similar. Into that method we can provide the user EPPNCURRENT_USER
token to@Inject
into controller actions so that we can@Inject(CURRENT_USER)
both here and (potentially) in other places if we want to later, rather than injectingRequest
and inspectingreq.user
each time.The text was updated successfully, but these errors were encountered: