Skip to content

Commit

Permalink
Add metadata to BFF Feature proto
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSGK committed Jan 4, 2024
1 parent 9f8a7c0 commit e32061c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proto/lekko/bff/v1beta1/bff.proto
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ message ContextKey {
ContextKeyType type = 2;
}

// The configs will have metadata fields populated based on the latest rolled
// out version of the repo.
// If a config was newly created since, created_at will not be set.
// If a config existed already but was updated, last_updated_at will not be set.
message GetRepositoryContentsResponse {
Branch branch = 1;
NamespaceContents namespace_contents = 2;
Expand Down Expand Up @@ -468,6 +472,11 @@ message GetFeatureHistoryResponse {
repeated FeatureHistoryItem history = 1;
}

message ConfigMetadata {
google.protobuf.Timestamp created_at = 1;
google.protobuf.Timestamp last_updated_at = 2;
}

message Feature {
string name = 1;
string namespace_name = 2;
Expand All @@ -479,6 +488,7 @@ message Feature {
// the blob sha of the proto bin file according to git
string sha = 6;
lekko.feature.v1beta1.StaticFeature static_feature_new = 7;
ConfigMetadata metadata = 8;
}

message FeatureHistoryItem {
Expand Down

0 comments on commit e32061c

Please sign in to comment.