-
Notifications
You must be signed in to change notification settings - Fork 0
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
Expanded shared folder query #344
Conversation
learningpath-api/src/main/scala/no/ndla/learningpathapi/controller/FolderController.scala
Show resolved
Hide resolved
learningpath-api/src/main/scala/no/ndla/learningpathapi/service/ReadService.scala
Outdated
Show resolved
Hide resolved
learningpath-api/src/main/scala/no/ndla/learningpathapi/service/UpdateService.scala
Outdated
Show resolved
Hide resolved
learningpath-api/src/test/scala/no/ndla/learningpathapi/service/ReadServiceTest.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.
lgtm
) | ||
folderWithContent <- getWith404IfNone(id, Success(folderWithResources)) | ||
_ <- | ||
if (folderWithContent.isShared || folderWithContent.feideId == feideId.getOrElse(None)) Success(()) |
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.
Her hadde det vært bedre å brukt feideId.contains(folderWithContent.feideId)
.
Når du kaller feideId.getOrElse(None)
så vil typen bli Serializable
og det er litt dumt.
Trenger ikke gjøre noe med det siden jeg fikser det når jeg fikser merge conflicten min 👍
https://github.com/NDLANO/Issues/issues/3840