Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aliu39 committed Oct 24, 2024
1 parent 7526295 commit 409791f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sentry/flags/unleashed.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
}


# https://docs.getunleash.io/reference/events
class UnleashedItemSerializer(serializers.Serializer):
"""Schema reference: https://docs.getunleash.io/reference/events"""

featureName = serializers.CharField(required=True) # Included by all event types we care about.
id = serializers.IntegerField(required=True)
type = serializers.CharField(required=True)
Expand Down Expand Up @@ -64,7 +65,7 @@ def handle_unleashed_event(
formatted_tags = {tag["type"]: tag["value"] for tag in event.get("tags", {})}
formatted_tags["project"] = event.get("project")
formatted_tags["environment"] = event.get("environment")
# TODO: can add 'inferred_value' (bool) tag for some events, using certain event fields.
# TODO: can add 'inferred_value' (bool) tag for some events, using the `data` field + others.

return [
{
Expand Down

0 comments on commit 409791f

Please sign in to comment.