-
Notifications
You must be signed in to change notification settings - Fork 12
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
ID-807 Get tos for user v2 #1238
Conversation
…eDetails`. Introduce new `TermsOfServiceDetails`
… because of PostgresDirectoryDAOSpec, so adding the correct `assume` statements back into all the tests
…icated and unauthenticated routes both work
… for users are returned or denied properly
…ng AND requested user so that we can properly authorize requests
# Conflicts: # src/main/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRoutes.scala # src/main/scala/org/broadinstitute/dsde/workbench/sam/service/TosService.scala # src/test/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRouteSpec.scala # src/test/scala/org/broadinstitute/dsde/workbench/sam/service/TosServiceSpec.scala
a1d1ba3
to
526cc4d
Compare
526cc4d
to
6f77d68
Compare
f5dca60
to
70038ad
Compare
src/main/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRoutes.scala
Outdated
Show resolved
Hide resolved
src/main/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRoutes.scala
Outdated
Show resolved
Hide resolved
src/test/scala/org/broadinstitute/dsde/workbench/sam/api/MockSamRoutes.scala
Outdated
Show resolved
Hide resolved
98c7d65
to
7c91f66
Compare
7c91f66
to
35776ed
Compare
src/main/scala/org/broadinstitute/dsde/workbench/sam/service/TosService.scala
Outdated
Show resolved
Hide resolved
src/main/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRoutes.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, but otherwise lgtm!
src/main/scala/org/broadinstitute/dsde/workbench/sam/service/TosService.scala
Outdated
Show resolved
Hide resolved
src/test/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRouteSpec.scala
Outdated
Show resolved
Hide resolved
src/test/scala/org/broadinstitute/dsde/workbench/sam/api/TermsOfServiceRouteSpec.scala
Outdated
Show resolved
Hide resolved
15529cd
to
75df08b
Compare
src/main/scala/org/broadinstitute/dsde/workbench/sam/service/TosService.scala
Outdated
Show resolved
Hide resolved
src/main/scala/org/broadinstitute/dsde/workbench/sam/service/TosService.scala
Outdated
Show resolved
Hide resolved
51686ed
to
76bd86b
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the work on this! Just one question.
} | ||
} ~ | ||
pathPrefix("history") { // api/termsOfService/v1/user/{userId}/history | ||
validate(samUserIdPattern.matches(userId), "User ID must be alpha numeric") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greg added it, idk that we NEED it but I think extra validation and user feedback is usually a good thing 🤷
Ticket: https://broadworkbench.atlassian.net/browse/ID-807
What:
Endpoints for getting a user's ToS status/details for themselves or for another user if they are an admin
PR checklist