# from karp.application.context import Context


# ctx = Context()


# def set_context(context: Context) -> None:
#     global ctx
#     if context.resource_repo is not None:
#         ctx.resource_repo = context.resource_repo
#     if context.search_service is not None:
#         ctx.search_service = context.search_service
#     if context.index_service is not None:
#         ctx.index_service = context.index_service
#     if context.auth_service is not None:
#         ctx.auth_service = context.auth_service

# from karp.application.context import Context


# ctx = Context()


# def set_context(context: Context) -> None:
#     global ctx
#     if context.resource_repo is not None:
#         ctx.resource_repo = context.resource_repo
#     if context.search_service is not None:
#         ctx.search_service = context.search_service
#     if context.index_service is not None:
#         ctx.index_service = context.index_service
#     if context.auth_service is not None:
#         ctx.auth_service = context.auth_service

# from karp.application.context import Context # ctx = Context() # def set_context(context: Context) -> None: #     global ctx #     if context.resource_repo is not None: #         ctx.resource_repo = context.resource_repo #     if context.search_service is not None: #         ctx.search_service = context.search_service #     if context.index_service is not None: #         ctx.index_service = context.index_service #     if context.auth_service is not None: #         ctx.auth_service = context.auth_service