MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / map_integration_to_engine

Function map_integration_to_engine

api/util/mappers/engine.py:115–124  ·  view source on GitHub ↗
(
    integration: Optional["EnvironmentIntegrationModel"],
)

Source from the content-addressed store, hash-verified

113
114
115def map_integration_to_engine(
116 integration: Optional["EnvironmentIntegrationModel"],
117) -> Optional[IntegrationModel]:
118 if not integration:
119 return None
120 return IntegrationModel(
121 api_key=integration.api_key,
122 base_url=integration.base_url,
123 entity_selector=getattr(integration, "entity_selector", None),
124 )
125
126
127def map_webhook_config_to_engine(

Callers 1

Calls 1

IntegrationModelClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…