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

Function _get_segment_name

api/integrations/launch_darkly/services.py:204–213  ·  view source on GitHub ↗

Generate a unique and descriptive name for the segment. This name is re-used on consecutive imports to prevent duplicate segments. :param name: Name of the Launch Darkly segment. :param env: Environment name of the Launch Darkly segment. :return: A unique and descriptive name f

(name: str, env: str)

Source from the content-addressed store, hash-verified

202
203
204def _get_segment_name(name: str, env: str) -> str:
205 """
206 Generate a unique and descriptive name for the segment. This name is re-used on consecutive imports to
207 prevent duplicate segments.
208
209 :param name: Name of the Launch Darkly segment.
210 :param env: Environment name of the Launch Darkly segment.
211 :return: A unique and descriptive name for the segment targeting a specific environment.
212 """
213 return f"{name} (Override for {env})"
214
215
216def _create_feature_segments_for_segment_match_clauses(

Callers 1

_create_segments_from_ldFunction · 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…