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

Class FeatureOwnerInputSerializer

api/features/serializers.py:590–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588
589
590class FeatureOwnerInputSerializer(UserIdsSerializer):
591 def add_owners(self, feature: Feature): # type: ignore[no-untyped-def]
592 user_ids = self.validated_data["user_ids"]
593 feature.owners.add(*user_ids)
594
595 def remove_users(self, feature: Feature): # type: ignore[no-untyped-def]
596 user_ids = self.validated_data["user_ids"]
597 feature.owners.remove(*user_ids)
598
599
600class FeatureGroupOwnerInputSerializer(serializers.Serializer): # type: ignore[type-arg]

Callers 2

add_ownersMethod · 0.85
remove_ownersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…