Skip to content

Commit 2ea6243

Browse files
committed
fix(front): unmarshal global feature flag message
1 parent 9b92eb5 commit 2ea6243

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

front/lib/front/feature_hub_provider.ex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ defmodule Front.FeatureHubProvider do
66
Availability,
77
Machine,
88
OrganizationFeature,
9+
Feature,
910
OrganizationMachine
1011
}
1112

@@ -53,6 +54,21 @@ defmodule Front.FeatureHubProvider do
5354
end)
5455
end
5556

57+
defp feature_from_grpc(%Feature{
58+
availability: availability,
59+
name: name,
60+
type: type,
61+
description: description
62+
}) do
63+
%FeatureProvider.Feature{
64+
name: name,
65+
type: type,
66+
description: description,
67+
quantity: quantity_from_availability(availability),
68+
state: state_from_availability(availability)
69+
}
70+
end
71+
5672
defp feature_from_grpc(%OrganizationFeature{feature: feature, availability: availability}) do
5773
%FeatureProvider.Feature{
5874
name: feature.name,

0 commit comments

Comments
 (0)