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

Method save

api/app_analytics/serializers.py:106–122  ·  view source on GitHub ↗
(self, **kwargs: Any)

Source from the content-addressed store, hash-verified

104 }
105
106 def save(self, **kwargs: Any) -> None:
107 environment: Environment = kwargs["environment"]
108
109 if settings.USE_POSTGRES_FOR_ANALYTICS:
110 track_feature_evaluation_v2.delay(
111 args=(
112 environment.id,
113 self.validated_data["evaluations"],
114 )
115 )
116 elif settings.INFLUXDB_TOKEN:
117 track_feature_evaluation_influxdb_v2.delay(
118 args=(
119 environment.id,
120 self.validated_data["evaluations"],
121 )
122 )
123
124
125class SDKAnalyticsFlagsV1Serializer(serializers.Serializer): # type: ignore[type-arg]

Callers 3

perform_createMethod · 0.45
createMethod · 0.45
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected