File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11561156 "USER_FILTER_PARSER" : "scim.filters.UserFilterQuery" ,
11571157 }
11581158
1159+ EDGE_CONTROL_PLANE_INSTALLED = (
1160+ importlib .util .find_spec ("edge_control_plane" ) is not None
1161+ )
1162+ if EDGE_CONTROL_PLANE_INSTALLED :
1163+ INSTALLED_APPS .append ("edge_control_plane" )
1164+
11591165DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
11601166
11611167# Used to keep edge identities in sync by forwarding the http requests
Original file line number Diff line number Diff line change 11import importlib
22
33from common .core .urls import urlpatterns as core_urlpatterns
4+ from common .core .utils import is_saas
45from django .conf import settings
56from django .contrib import admin
67from django .urls import include , path , re_path
124125 ),
125126 ]
126127
128+ # SaaS images ship the private wheel, so is_saas() is the gate, not module presence.
129+ if settings .EDGE_CONTROL_PLANE_INSTALLED and not is_saas (): # pragma: no cover
130+ urlpatterns += [
131+ path (
132+ "api/v1/organisations/<int:organisation_pk>/edge-proxy/" ,
133+ include ("edge_control_plane.management_urls" ),
134+ ),
135+ path ("api/v1/proxy/" , include ("edge_control_plane.urls" )),
136+ ]
137+
127138if settings .WORKFLOWS_LOGIC_INSTALLED : # pragma: no cover
128139 workflow_views = importlib .import_module ("workflows_logic.views" )
129140 urlpatterns += [
Original file line number Diff line number Diff line change @@ -242,6 +242,10 @@ ignore_missing_imports = true
242242module = [" rbac.*" ]
243243ignore_missing_imports = true
244244
245+ [[tool .mypy .overrides ]]
246+ module = [" edge_control_plane.*" ]
247+ ignore_missing_imports = true
248+
245249[[tool .mypy .overrides ]]
246250module = [" saml.*" ]
247251ignore_missing_imports = true
You can’t perform that action at this time.
0 commit comments