Related to https://github.com/grafana/oncall-private/issues/2806#issuecomment-2246286918. Prepare engine for the backend plugin enablement/migration: - Refactor sync code - Improve plugin user authentication to set up user on-the-fly (when missing) - Implement v2 endpoints for install, sync and status (to be used via the backend plugin) (most of the changes come from https://github.com/grafana/oncall/pull/4657; backport all engine changes that keep backwards compatibility)
6 lines
198 B
Python
6 lines
198 B
Python
from .sync import ( # noqa: F401
|
|
start_sync_organizations,
|
|
sync_organization_async,
|
|
sync_team_members_for_organization_async,
|
|
)
|
|
from .sync_v2 import sync_organizations_v2 # noqa: F401
|