Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[featureflag] expose feature flag API via frontend #1349

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ services:
- CART_SERVICE_ADDR
- CHECKOUT_SERVICE_ADDR
- CURRENCY_SERVICE_ADDR
- FEATURE_FLAG_GRPC_SERVICE_ADDR
- PRODUCT_CATALOG_SERVICE_ADDR
- RECOMMENDATION_SERVICE_ADDR
- SHIPPING_SERVICE_ADDR
Expand Down
18 changes: 12 additions & 6 deletions pb/demo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -271,41 +271,47 @@ service FeatureFlagService {
rpc DeleteFlag(DeleteFlagRequest) returns (DeleteFlagResponse) {}
}

message Flag {
message FlagEvaluationResult {
string name = 1;
string description = 2;
bool enabled = 3;
}

message FlagProbability {
string name = 1;
string description = 2;
float enabled = 3;
}

message GetFlagRequest {
string name = 1;
}

message GetFlagResponse {
Flag flag = 1;
FlagEvaluationResult flag = 1;
}

message CreateFlagRequest {
string name = 1;
string description = 2;
bool enabled = 3;
float enabled = 3;
}

message CreateFlagResponse {
Flag flag = 1;
FlagProbability flag = 1;
}

message UpdateFlagRequest {
string name = 1;
bool enabled = 2;
float enabled = 2;
}

message UpdateFlagResponse {}

message ListFlagsRequest {}

message ListFlagsResponse {
repeated Flag flag = 1;
repeated FlagProbability flag = 1;
}

message DeleteFlagRequest {
Expand Down
3 changes: 3 additions & 0 deletions restart-service.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh

set -euo pipefail

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

Expand Down
Loading
Loading