-
Notifications
You must be signed in to change notification settings - Fork 74
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
Migrate Search plugin to cats-effect #4315
Migrate Search plugin to cats-effect #4315
Conversation
delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/ce/CatsScopeInitialization.scala
Outdated
Show resolved
Hide resolved
...pfl/bluebrain/nexus/delta/plugins/compositeviews/indexing/CompositeProjectionLifeCycle.scala
Show resolved
Hide resolved
delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala
Outdated
Show resolved
Hide resolved
.../src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/SearchScopeInitialization.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, only the logger question matters. I am curious whether we can create better walls around the mapping from Monix to CE for this migration to save us time in the future
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, only the logger question matters. I am curious whether we can create better walls around the mapping from Monix to CE for this migration to save us time in the future
delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala
Outdated
Show resolved
Hide resolved
@@ -58,7 +60,7 @@ object Search { | |||
compositeViews | |||
.list( | |||
Pagination.OnePage, | |||
CompositeViewSearchParams(deprecated = Some(false), filter = v => UIO.pure(v.id == defaultViewId)), | |||
CompositeViewSearchParams(deprecated = Some(false), filter = v => IO.delay(v.id == defaultViewId).toUIO), |
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.
UIO.pure
for now is ok waiting for the migration of the search params
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.
Nice :)
Closes #4253