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

Method update

api/integrations/github/views.py:188–199  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

186 )
187
188 def update(self, request, *args, **kwargs) -> Response | None: # type: ignore[no-untyped-def,override]
189 response: Response = super().update(request, *args, **kwargs)
190 github_configuration: GithubConfiguration = GithubConfiguration.objects.get(
191 id=self.kwargs["github_pk"]
192 )
193 if request.data.get("tagging_enabled", False):
194 create_flagsmith_flag_label(
195 installation_id=github_configuration.installation_id,
196 owner=request.data.get("repository_owner"),
197 repo=request.data.get("repository_name"),
198 )
199 return response
200
201
202@api_view(["GET"])

Callers 11

__init__Method · 0.45
_iter_paginated_itemsMethod · 0.45
get_flags_by_envsMethod · 0.45
set_base_urlFunction · 0.45
set_base_urlFunction · 0.45
update_companyMethod · 0.45
add_default_base_urlFunction · 0.45
createMethod · 0.45
saveMethod · 0.45

Calls 2

getMethod · 0.45

Tested by

no test coverage detected