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
refactor(cacheservice): use ZIO (DEV-546) #2022
Conversation
…h-swiss/dsp-api into wip/DEV-546-zio-fying-cache-service
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.
In general I think you are missing empty end line in many new files. To avoid that problem it's handy to use this vscode setting turned on: "files.insertFinalNewline": true
I think turning the formatting again on the other way doesn't make sense :)
@@ -1,6 +1,6 @@ | |||
version = "2.7.5" | |||
maxColumn = 120 | |||
align.preset = some | |||
align.preset = most |
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.
now we going to have a lot of formatting noise
// get current user information | ||
currentUserInformation: Option[UserADM] <- getSingleUserADM( | ||
identifier = UserIdentifierADM(maybeIri = Some(userIri)), | ||
userInformationType = UserInformationTypeADM.Full, | ||
featureFactoryConfig = featureFactoryConfig, | ||
requestingUser = KnoraSystemInstances.Users.SystemUser | ||
) | ||
identifier = UserIdentifierADM(maybeIri = Some(userIri)), | ||
userInformationType = UserInformationTypeADM.Full, | ||
featureFactoryConfig = featureFactoryConfig, | ||
requestingUser = KnoraSystemInstances.Users.SystemUser | ||
) | ||
|
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.
This also looks weird. Whole file is also just formatting...
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 although I have no confidence at all with ZIO
What I am not sure about are the ZIO related import statements. To me it seems like duplications sometimes but maybe I just don't understand it.
docs/architecture/decisions/0002-change-cache-service-manager-from-akka-actor-to-zlayer.md
Outdated
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/responders/admin/ProjectsResponderADM.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/store/cacheservice/CacheServiceManager.scala
Outdated
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/store/cacheservice/config/CacheServiceConfig.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/store/cacheservice/impl/CacheServiceInMemImpl.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/store/cacheservice/impl/CacheServiceInMemImpl.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/store/cacheservice/impl/CacheServiceInMemImpl.scala
Show resolved
Hide resolved
* | ||
* @tparam T the type parameter of our value. | ||
* @tparam A the type parameter of our value. |
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.
@param bytes
should probably also be documented
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.
yes, will do that after I find a better implementation regarding serialisation.
…eServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
…eServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
…eServiceManager.scala Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
…from-akka-actor-to-zlayer.md Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
…h-swiss/dsp-api into wip/DEV-546-zio-fying-cache-service
Kudos, SonarCloud Quality Gate passed!
|
Resolves DEV-546
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: DSP-546
What is the new behavior?
Does this PR introduce a breaking change?
Other information