From e32061cd17dd94f88b4547de105b385b248d09d7 Mon Sep 17 00:00:00 2001 From: David Kang Date: Thu, 4 Jan 2024 09:27:51 -0800 Subject: [PATCH] Add metadata to BFF Feature proto --- proto/lekko/bff/v1beta1/bff.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proto/lekko/bff/v1beta1/bff.proto b/proto/lekko/bff/v1beta1/bff.proto index a8ec1f89..ac2203e2 100644 --- a/proto/lekko/bff/v1beta1/bff.proto +++ b/proto/lekko/bff/v1beta1/bff.proto @@ -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; @@ -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; @@ -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 {