Skip to content

Commit

Permalink
Migrating opensearch service
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Dec 5, 2023
1 parent 916f48f commit 70dac7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/feed/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Type,
)

from dependency_injector.wiring import Provide, inject
from sqlalchemy.orm import Query, Session

from api.problem_details import NOT_FOUND_ON_REMOTE
Expand Down Expand Up @@ -665,6 +666,7 @@ def single_entry(
return None

@classmethod
@inject
def groups(
cls,
_db: Session,
Expand All @@ -674,7 +676,7 @@ def groups(
annotator: LibraryAnnotator,
pagination: Optional[Pagination] = None,
facets: Optional[FacetsWithEntryPoint] = None,
search_engine: Optional[ExternalSearchIndex] = None,
search_engine: ExternalSearchIndex = Provide["search.index"],
search_debug: bool = False,
) -> OPDSAcquisitionFeed:
"""Internal method called by groups() when a grouped feed
Expand Down
1 change: 1 addition & 0 deletions core/service/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Services(DeclarativeContainer):
"api.odl",
"api.overdrive",
"core.feed.annotator.circulation",
"core.feed.acquisition",
"core.lane",
"core.metadata_layer",
"core.model.collection",
Expand Down

0 comments on commit 70dac7b

Please sign in to comment.