MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / perform_create

Method perform_create

api/experimentation/views.py:90–96  ·  view source on GitHub ↗
(self, serializer: BaseSerializer[WarehouseConnection])

Source from the content-addressed store, hash-verified

88 lookup_url_kwarg = "connection_id"
89
90 def perform_create(self, serializer: BaseSerializer[WarehouseConnection]) -> None:
91 connection: WarehouseConnection = serializer.save(
92 environment=self._get_environment()
93 )
94 create_warehouse_audit_log(
95 connection, self._get_user(self.request), action="created"
96 )
97
98 def perform_update(self, serializer: BaseSerializer[WarehouseConnection]) -> None:
99 connection: WarehouseConnection = serializer.save()

Callers 1

createMethod · 0.95

Calls 4

_get_userMethod · 0.95
saveMethod · 0.45
_get_environmentMethod · 0.45

Tested by

no test coverage detected