Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: populate repository store (#11307)

Danny Xu33e826a77ad6
diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.go
index df99a2eaee..12b1bfc73b 100644
--- a/backend/api/gitops/webhook.go
+++ b/backend/api/gitops/webhook.go
@@ -589,7 +589,7 @@ func (s *Service) filterRepository(ctx context.Context, webhookEndpointID string
)
continue
}
- externalVCS, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)
+ externalVCS, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})
if err != nil {
slog.Error("failed to find the vcs",
slog.Int("vcs_uid", repo.VCSUID),
@@ -1368,7 +1368,7 @@ func (s *Service) readFileContent(ctx context.Context, oauthContext *common.Oaut
}
repo := repos[0]
- externalVCS, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)
+ externalVCS, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ID: &repo.VCSUID})
if err != nil {
return "", err
}
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.go
index 264475678f..eec183d12c 100644
--- a/backend/api/v1/project_service.go
+++ b/backend/api/v1/project_service.go
@@ -454,6 +454,14 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *v
return s.createProjectGitOpsInfo(ctx, request, project)
}
+ vcs, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "failed to get vcs provider, error %v", err.Error())
+ }
+ if vcs == nil {
+ return nil, status.Errorf(codes.NotFound, "VCS provider not found")
+ }
+
if request.UpdateMask == nil {
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set to update gitops")
}
@@ -467,20 +475,9 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *v
case "branch_filter":
patch.BranchFilter = &request.ProjectGitopsInfo.BranchFilter
case "base_directory":
- intVCSUID, err := strconv.Atoi(request.ProjectGitopsInfo.VcsUid)
- if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, "invalid vcs uid: %s", request.ProjectGitopsInfo.VcsUid)
- }
- storeVCS, err := s.store.GetVCSProviderV2(ctx, intVCSUID)
- if err != nil {
- return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())
- }
- if storeVCS == nil {
- return nil, status.Errorf(codes.NotFound, "vcs %d not found", intVCSUID)
- }
baseDir := request.ProjectGitopsInfo.BaseDirectory
// Azure DevOps base directory should start with /.
- if storeVCS.Type == vcsplugin.AzureDevOps {
+ if vcs.Type == vcsplugin.AzureDevOps {
if !strings.HasPrefix(baseDir, "/") {
baseDir = "/" + request.ProjectGitopsInfo.BaseDirectory
}
@@ -505,15 +502,6 @@ func (s *ProjectService) UpdateProjectGitOpsInfo(ctx context.Context, request *v
if *v == "" {
return nil, status.Errorf(codes.InvalidArgument, "branch must be specified")
}
-
- vcs, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)
- if err != nil {
- return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())
- }
- if vcs == nil {
- return nil, status.Errorf(codes.NotFound, "vcs %d not found", repo.VCSUID)
- }
-
// When the branch names doesn't contain wildcards, we should make sure the branch exists in the repo.
if !strings.Contains(*v, "*") {
notFound, err := isBranchNotFound(
@@ -570,7 +558,7 @@ func (s *ProjectService) UnsetProjectGitOpsInfo(ctx context.Context, request *v1
return nil, err
}
- vcs, err := s.store.GetVCSProviderV2(ctx, repo.VCSUID)
+ vcs, err := s.store.GetVCSProviderV2(ctx, &store.FindVCSProviderMessage{ResourceID: &repo.VCSResourceID})
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())
}
@@ -982,21 +970,28 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *v
return nil, status.Errorf(codes.FailedPrecondition, setupExternalURLError)
}
- intVCSUID, err := strconv.Atoi(request.ProjectGitopsInfo.VcsUid)
+ vcsResourceID, err := common.GetVCSProviderID(request.ProjectGitopsInfo.Vcs)
if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, "invalid vcs uid: %s", request.ProjectGitopsInfo.VcsUid)
+ return nil, status.Errorf(codes.InvalidArgument, err.Error())
+ }
+ vcsResourceUID, isNumber := isNumber(vcsResourceID)
+ find := &store.FindVCSProviderMessage{}
+ if isNumber {
+ find.ID = &vcsResourceUID
+ } else {
+ find.ResourceID = &vcsResourceID
}
- storeVCS, err := s.store.GetVCSProviderV2(ctx, intVCSUID)
+ vcs, err := s.store.GetVCSProviderV2(ctx, find)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())
}
- if storeVCS == nil {
- return nil, status.Errorf(codes.NotFound, "vcs %d not found", intVCSUID)
+ if vcs == nil {
+ return nil, status.Errorf(codes.NotFound, "vcs %s not found", vcsResourceID)
}
baseDir := request.ProjectGitopsInfo.BaseDirectory
// Azure DevOps base directory should start with /.
- if storeVCS.Type == vcsplugin.AzureDevOps {
+ if vcs.Type == vcsplugin.AzureDevOps {
if !strings.HasPrefix(baseDir, "/") {
baseDir = "/" + request.ProjectGitopsInfo.BaseDirectory
}
@@ -1004,13 +999,9 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *v
baseDir = strings.Trim(request.ProjectGitopsInfo.BaseDirectory, "/")
}
- vcsID, err := strconv.Atoi(request.ProjectGitopsInfo.VcsUid)
- if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, "invalid vcs id: %s", request.ProjectGitopsInfo.VcsUid)
- }
-
repositoryCreate := &store.RepositoryMessage{
- VCSUID: int(vcsID),
+ VCSUID: vcs.ID,
+ VCSResourceID: vcs.ResourceID,
ProjectResourceID: project.ResourceID,
// TODO(d): pass in the resource ID from API.
ResourceID: "default",
@@ -1043,14 +1034,6 @@ func (s *ProjectService) createProjectGitOpsInfo(ctx context.Context, request *v
return nil, status.Errorf(codes.InvalidArgument, "invalid schema_path_template: %s", err.Error())
}
- vcs, err := s.store.GetVCSProviderV2(ctx, repositoryCreate.VCSUID)
- if err != nil {
- return nil, status.Errorf(codes.Internal, "failed to find vcs: %s", err.Error())
- }
- if vcs == nil {
- return nil, status.Errorf(codes.NotFound, "vcs %d not found", repositoryCreate.VCSUID)
- }
-
// When the branch names doesn't contain wildcards, we should make sure the branch exists in the repo.
if !strings.Contains(repositoryCreate.BranchFilter, "*") {
notFound, err := isBranchNotFound(
@@ -2559,7 +2542,7 @@ func validateMember(member string) error {
func convertToProjectGitOpsInfo(repository *store.RepositoryMessage) *v1pb.ProjectGitOpsInfo {
return &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s%s/gitOpsInfo", common.ProjectNamePrefix, repository.ProjectResourceID),
- VcsUid: fmt.Sprintf("%d", repository.VCSUID),
+ Vcs: fmt.Sprintf("%s%s", common.VCSProviderPrefix, repository.VCSResourceID),
Title: repository.Title,
FullPath: repository.FullPath,
WebUrl: repository.WebURL,
diff --git a/backend/api/v1/vcs_provider_service.go b/backend/api/v1/vcs_provider_service.go
index 79a8e0f9cc..abb0e33514 100644
--- a/backend/api/v1/vcs_provider_service.go
+++ b/backend/api/v1/vcs_provider_service.go
@@ -70,17 +70,9 @@ func (s *VCSProviderService) UpdateVCSProvider(ctx context.Context, request *v1p
if request.UpdateMask == nil {
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")
}
- vcsProviderUID, err := common.GetVCSProviderID(request.VcsProvider.Name)
+ vcsProvider, err := s.getVCS(ctx, request.VcsProvider.Name)
if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
- }
-
- vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)
- if err != nil {
- return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)
- }
- if vcsProvider == nil {
- return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)
+ return nil, err
}
update := &store.UpdateVCSProviderMessage{}
@@ -103,7 +95,7 @@ func (s *VCSProviderService) UpdateVCSProvider(ctx context.Context, request *v1p
if !ok {
return nil, status.Errorf(codes.Internal, "principal ID not found")
}
- vcsProvider, err = s.store.UpdateVCSProviderV2(ctx, principalID, vcsProviderUID, update)
+ vcsProvider, err = s.store.UpdateVCSProviderV2(ctx, principalID, vcsProvider.ID, update)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
}
@@ -112,20 +104,12 @@ func (s *VCSProviderService) UpdateVCSProvider(ctx context.Context, request *v1p
// DeleteVCSProvider deletes an existing vcs provider.
func (s *VCSProviderService) DeleteVCSProvider(ctx context.Context, request *v1pb.DeleteVCSProviderRequest) (*emptypb.Empty, error) {
- vcsProviderUID, err := common.GetVCSProviderID(request.Name)
+ vcsProvider, err := s.getVCS(ctx, request.Name)
if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
- }
-
- vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)
- if err != nil {
- return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)
- }
- if vcsProvider == nil {
- return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)
+ return nil, err
}
- if err := s.store.DeleteVCSProviderV2(ctx, vcsProviderUID); err != nil {
+ if err := s.store.DeleteVCSProviderV2(ctx, vcsProvider.ID); err != nil {
return nil, status.Errorf(codes.Internal, "Failed to delete vcs provider: %v", err)
}
return &emptypb.Empty{}, nil
@@ -133,17 +117,9 @@ func (s *VCSProviderService) DeleteVCSProvider(ctx context.Context, request *v1p
// SearchVCSProviderProjects searches vcs provider projects, for example, GitHub repository.
func (s *VCSProviderService) SearchVCSProviderProjects(ctx context.Context, request *v1pb.SearchVCSProviderProjectsRequest) (*v1pb.SearchVCSProviderProjectsResponse, error) {
- vcsProviderUID, err := common.GetVCSProviderID(request.Name)
- if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
- }
-
- vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)
+ vcsProvider, err := s.getVCS(ctx, request.Name)
if err != nil {
- return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)
- }
- if vcsProvider == nil {
- return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)
+ return nil, err
}
setting, err := s.store.GetWorkspaceGeneralSetting(ctx)
@@ -182,13 +158,12 @@ func (s *VCSProviderService) SearchVCSProviderProjects(ctx context.Context, requ
// ListProjectGitOpsInfo lists GitOps info of a project.
func (s *VCSProviderService) ListProjectGitOpsInfo(ctx context.Context, request *v1pb.ListProjectGitOpsInfoRequest) (*v1pb.ListProjectGitOpsInfoResponse, error) {
- vcsProviderUID, err := common.GetVCSProviderID(request.Name)
+ vcs, err := s.getVCS(ctx, request.Name)
if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
+ return nil, err
}
-
repoList, err := s.store.ListRepositoryV2(ctx, &store.FindRepositoryMessage{
- VCSUID: &vcsProviderUID,
+ VCSUID: &vcs.ID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to fetch external repository list: %v", err)
@@ -203,19 +178,25 @@ func (s *VCSProviderService) ListProjectGitOpsInfo(ctx context.Context, request
}
func (s *VCSProviderService) getVCS(ctx context.Context, name string) (*store.VCSProviderMessage, error) {
- vcsProviderUID, err := common.GetVCSProviderID(name)
+ vcsResourceID, err := common.GetVCSProviderID(name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
+ vcsResourceUID, isNumber := isNumber(vcsResourceID)
+ find := &store.FindVCSProviderMessage{}
+ if isNumber {
+ find.ID = &vcsResourceUID
+ } else {
+ find.ResourceID = &vcsResourceID
+ }
- vcsProvider, err := s.store.GetVCSProviderV2(ctx, vcsProviderUID)
+ vcsProvider, err := s.store.GetVCSProviderV2(ctx, find)
if err != nil {
return nil, status.Errorf(codes.Internal, "Failed to retrieve vcs provider: %v", err)
}
if vcsProvider == nil {
return nil, status.Errorf(codes.NotFound, "vcs provider not found: %v", err)
}
-
return vcsProvider, nil
}
diff --git a/backend/common/resource_name.go b/backend/common/resource_name.go
index 5e64c9ee89..8e03730a98 100644
--- a/backend/common/resource_name.go
+++ b/backend/common/resource_name.go
@@ -249,9 +249,13 @@ func GetIdentityProviderID(name string) (string, error) {
return tokens[0], nil
}
-// GetVCSProviderID returns the external version control ID from a resource name.
-func GetVCSProviderID(name string) (int, error) {
- return GetUIDFromName(name, VCSProviderPrefix)
+// GetVCSProviderID returns the VCS provider ID from a resource name.
+func GetVCSProviderID(name string) (string, error) {
+ tokens, err := GetNameParentTokens(name, VCSProviderPrefix)
+ if err != nil {
+ return "", err
+ }
+ return tokens[0], nil
}
// GetRiskID returns the risk ID from a resource name.
diff --git a/backend/store/repository.go b/backend/store/repository.go
index 92bde48f56..12876f4bf2 100644
--- a/backend/store/repository.go
+++ b/backend/store/repository.go
@@ -16,6 +16,7 @@ import (
type RepositoryMessage struct {
// Related fields
VCSUID int
+ VCSResourceID string
ProjectResourceID string
ResourceID string
@@ -42,6 +43,7 @@ type FindRepositoryMessage struct {
UID *int
WebURL *string
VCSUID *int
+ VCSResourceID *string
ProjectResourceID *string
ResourceID *string
WebhookEndpointID *string
@@ -254,6 +256,7 @@ func (s *Store) createRepositoryImplV2(ctx context.Context, tx *Tx, create *Repo
}
return nil, err
}
+ repository.VCSResourceID = create.VCSResourceID
return &repository, nil
}
@@ -266,6 +269,9 @@ func (*Store) listRepositoryImplV2(ctx context.Context, tx *Tx, find *FindReposi
if v := find.VCSUID; v != nil {
where, args = append(where, fmt.Sprintf("vcs_id = $%d", len(args)+1)), append(args, *v)
}
+ if v := find.VCSResourceID; v != nil {
+ where, args = append(where, fmt.Sprintf("vcs.resource_id = $%d", len(args)+1)), append(args, *v)
+ }
if v := find.ResourceID; v != nil {
where, args = append(where, fmt.Sprintf("resource_id = $%d", len(args)+1)), append(args, *v)
}
@@ -283,6 +289,7 @@ func (*Store) listRepositoryImplV2(ctx context.Context, tx *Tx, find *FindReposi
SELECT
repository.id AS id,
vcs_id,
+ vcs.resource_id,
project.resource_id AS project_resource_id,
repository.resource_id,
repository.name AS name,
@@ -299,6 +306,7 @@ func (*Store) listRepositoryImplV2(ctx context.Context, tx *Tx, find *FindReposi
webhook_secret_token
FROM repository
LEFT JOIN project ON project.id = repository.project_id
+ LEFT JOIN vcs ON vcs.id = repository.vcs_id
WHERE `+strings.Join(where, " AND "),
args...,
)
@@ -314,6 +322,7 @@ func (*Store) listRepositoryImplV2(ctx context.Context, tx *Tx, find *FindReposi
if err := rows.Scan(
&repository.UID,
&repository.VCSUID,
+ &repository.VCSResourceID,
&repository.ProjectResourceID,
&repository.ResourceID,
&repository.Title,
@@ -378,11 +387,12 @@ func (*Store) patchRepositoryImplV2(ctx context.Context, tx *Tx, patch *PatchRep
if err := tx.QueryRowContext(ctx, `
UPDATE repository
SET `+strings.Join(set, ", ")+`
- FROM project
- WHERE project.id = repository.project_id AND `+strings.Join(where, " AND ")+`
+ FROM project, vcs
+ WHERE project.id = repository.project_id AND vcs.id = repository.vcs_id AND `+strings.Join(where, " AND ")+`
RETURNING
repository.id AS id,
vcs_id,
+ vcs.resource_id,
project.resource_id AS project_resource_id,
repository.resource_id,
repository.name AS name,
@@ -402,6 +412,7 @@ func (*Store) patchRepositoryImplV2(ctx context.Context, tx *Tx, patch *PatchRep
).Scan(
&repository.UID,
&repository.VCSUID,
+ &repository.VCSResourceID,
&repository.ProjectResourceID,
&repository.ResourceID,
&repository.Title,
diff --git a/backend/store/vcs.go b/backend/store/vcs.go
index 9efdf949be..e537ede666 100644
--- a/backend/store/vcs.go
+++ b/backend/store/vcs.go
@@ -46,9 +46,11 @@ type FindVCSProviderMessage struct {
}
// GetVCSProviderV2 gets an VCS provider by ID.
-func (s *Store) GetVCSProviderV2(ctx context.Context, id int) (*VCSProviderMessage, error) {
- if v, ok := s.vcsIDCache.Get(id); ok {
- return v, nil
+func (s *Store) GetVCSProviderV2(ctx context.Context, find *FindVCSProviderMessage) (*VCSProviderMessage, error) {
+ if find.ID != nil {
+ if v, ok := s.vcsIDCache.Get(*find.ID); ok {
+ return v, nil
+ }
}
tx, err := s.db.BeginTx(ctx, &sql.TxOptions{ReadOnly: true})
@@ -57,7 +59,7 @@ func (s *Store) GetVCSProviderV2(ctx context.Context, id int) (*VCSProviderMessa
}
defer tx.Rollback()
- vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, &FindVCSProviderMessage{ID: &id})
+ vcsProviders, err := s.findVCSProvidersImplV2(ctx, tx, find)
if err != nil {
return nil, err
}
@@ -67,7 +69,7 @@ func (s *Store) GetVCSProviderV2(ctx context.Context, id int) (*VCSProviderMessa
if len(vcsProviders) == 0 {
return nil, nil
} else if len(vcsProviders) > 1 {
- return nil, errors.Errorf("expected 1 VCS provider with id %d, got %d", id, len(vcsProviders))
+ return nil, errors.Errorf("expected 1 VCS provider with find %+v, got %d", find, len(vcsProviders))
}
vcs := vcsProviders[0]
diff --git a/backend/tests/schema_update_test.go b/backend/tests/schema_update_test.go
index 09d960f5ee..9052ba271b 100644
--- a/backend/tests/schema_update_test.go
+++ b/backend/tests/schema_update_test.go
@@ -314,7 +314,7 @@ func TestSimpleVCS(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: test.repositoryFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),
@@ -664,7 +664,7 @@ func TestVCS_SDL_POSTGRES(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: test.repositoryFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),
@@ -1101,7 +1101,7 @@ func TestWildcardInVCSFilePathTemplate(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: repoFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, repoFullPath),
@@ -1322,7 +1322,7 @@ func TestBranchNameInVCSSetupAndUpdate(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", ctl.project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: vcsTest.repoFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, vcsTest.repoFullPath),
@@ -1842,7 +1842,7 @@ func TestVCS_SDL_MySQL(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: test.repositoryFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),
diff --git a/backend/tests/tenant_test.go b/backend/tests/tenant_test.go
index 25430737d7..df92d91a2d 100644
--- a/backend/tests/tenant_test.go
+++ b/backend/tests/tenant_test.go
@@ -316,7 +316,7 @@ func TestTenantVCS(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: test.repositoryFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),
@@ -626,7 +626,7 @@ func TestTenantVCS_YAML(t *testing.T) {
_, err = ctl.projectServiceClient.UpdateProjectGitOpsInfo(ctx, &v1pb.UpdateProjectGitOpsInfoRequest{
ProjectGitopsInfo: &v1pb.ProjectGitOpsInfo{
Name: fmt.Sprintf("%s/gitOpsInfo", project.Name),
- VcsUid: strings.TrimPrefix(evcs.Name, "vcsProviders/"),
+ Vcs: evcs.Name,
Title: "Test Repository",
FullPath: test.repositoryFullPath,
WebUrl: fmt.Sprintf("%s/%s", ctl.vcsURL, test.repositoryFullPath),
diff --git a/frontend/src/components/ProjectVersionControlPanel.vue b/frontend/src/components/ProjectVersionControlPanel.vue
index a62e2cd010..bc5138983d 100644
--- a/frontend/src/components/ProjectVersionControlPanel.vue
+++ b/frontend/src/components/ProjectVersionControlPanel.vue
@@ -122,7 +122,7 @@ watch(
true /* silent */
);
if (repo) {
- await vcsV1Store.fetchVCSByUid(repo.vcsUid);
+ await vcsV1Store.fetchVCSByName(repo.vcs);
}
},
{
@@ -143,7 +143,7 @@ const repository = computed(() => {
const vcs = computed(() => {
return (
- vcsV1Store.getVCSByUid(repository.value?.vcsUid ?? "") ??
+ vcsV1Store.fetchVCSByName(repository.value?.vcs ?? "") ??
({} as VCSProvider)
);
});
diff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vue
index 0799d8e050..0e8fc97e35 100644
--- a/frontend/src/components/RepositoryPanel.vue
+++ b/frontend/src/components/RepositoryPanel.vue
@@ -134,7 +134,6 @@ import {
useProjectV1Store,
useRepositoryV1Store,
} from "@/store";
-import { getVCSUid } from "@/store/modules/v1/common";
import { Project, SchemaChange } from "@/types/proto/v1/project_service";
import {
ProjectGitOpsInfo,
@@ -274,7 +273,7 @@ const doUpdate = async () => {
const repositoryPatch: Partial<ProjectGitOpsInfo> = {};
- repositoryPatch.vcsUid = `${getVCSUid(props.vcs.name)}`;
+ repositoryPatch.vcs = props.vcs.name;
if (props.repository.branchFilter != state.repositoryConfig.branchFilter) {
repositoryPatch.branchFilter = state.repositoryConfig.branchFilter;
diff --git a/frontend/src/components/RepositorySetupWizard.vue b/frontend/src/components/RepositorySetupWizard.vue
index 04b18b9509..d5981621ba 100644
--- a/frontend/src/components/RepositorySetupWizard.vue
+++ b/frontend/src/components/RepositorySetupWizard.vue
@@ -57,7 +57,6 @@ import { useRouter } from "vue-router";
import { StepTab } from "@/components/v2";
import { PROJECT_V1_ROUTE_GITOPS } from "@/router/dashboard/projectV1";
import { useRepositoryV1Store, useProjectV1Store } from "@/store";
-import { getVCSUid } from "@/store/modules/v1/common";
import {
Project,
TenantMode,
@@ -186,7 +185,7 @@ const tryFinishSetup = async () => {
}
const repositoryCreate: Partial<ProjectGitOpsInfo> = {
- vcsUid: `${getVCSUid(state.config.vcs.name)}`,
+ vcs: state.config.vcs.name,
title: state.config.repositoryInfo.name,
fullPath: state.config.repositoryInfo.fullPath,
webUrl: state.config.repositoryInfo.webUrl,
diff --git a/frontend/src/store/modules/v1/repository.ts b/frontend/src/store/modules/v1/repository.ts
index 157da4a862..16518f7140 100644
--- a/frontend/src/store/modules/v1/repository.ts
+++ b/frontend/src/store/modules/v1/repository.ts
@@ -57,7 +57,7 @@ export const useRepositoryV1Store = defineStore("repository_v1", () => {
allowMissing: true,
});
} else {
- gitopsInfo.vcsUid = repo.vcsUid;
+ gitopsInfo.vcs = repo.vcs;
const updateMask = getUpdateMaskForRepository(repo, gitopsInfo);
if (updateMask.length === 0) {
return repo;
diff --git a/frontend/src/types/proto/v1/vcs_provider_service.ts b/frontend/src/types/proto/v1/vcs_provider_service.ts
index f13068c305..11a3780566 100644
--- a/frontend/src/types/proto/v1/vcs_provider_service.ts
+++ b/frontend/src/types/proto/v1/vcs_provider_service.ts
@@ -174,8 +174,8 @@ export interface ProjectGitOpsInfo {
* Format: projects/{project}/gitOpsInfo
*/
name: string;
- /** The uid for related VCS. */
- vcsUid: string;
+ /** The name of the VCS. */
+ vcs: string;
/** The title of the repository. For axample: sample. */
title: string;
/** The full_path of the repository. For example: bytebase/sample. */
@@ -1068,7 +1068,7 @@ export const VCSProvider = {
function createBaseProjectGitOpsInfo(): ProjectGitOpsInfo {
return {
name: "",
- vcsUid: "",
+ vcs: "",
title: "",
fullPath: "",
webUrl: "",
@@ -1086,8 +1086,8 @@ export const ProjectGitOpsInfo = {
if (message.name !== "") {
writer.uint32(10).string(message.name);
}
- if (message.vcsUid !== "") {
- writer.uint32(18).string(message.vcsUid);
+ if (message.vcs !== "") {
+ writer.uint32(18).string(message.vcs);
}
if (message.title !== "") {
writer.uint32(26).string(message.title);
@@ -1138,7 +1138,7 @@ export const ProjectGitOpsInfo = {
break;
}
- message.vcsUid = reader.string();
+ message.vcs = reader.string();
continue;
case 3:
if (tag !== 26) {
@@ -1215,7 +1215,7 @@ export const ProjectGitOpsInfo = {
fromJSON(object: any): ProjectGitOpsInfo {
return {
name: isSet(object.name) ? globalThis.String(object.name) : "",
- vcsUid: isSet(object.vcsUid) ? globalThis.String(object.vcsUid) : "",
+ vcs: isSet(object.vcs) ? globalThis.String(object.vcs) : "",
title: isSet(object.title) ? globalThis.String(object.title) : "",
fullPath: isSet(object.fullPath) ? globalThis.String(object.fullPath) : "",
webUrl: isSet(object.webUrl) ? globalThis.String(object.webUrl) : "",
@@ -1233,8 +1233,8 @@ export const ProjectGitOpsInfo = {
if (message.name !== "") {
obj.name = message.name;
}
- if (message.vcsUid !== "") {
- obj.vcsUid = message.vcsUid;
+ if (message.vcs !== "") {
+ obj.vcs = message.vcs;
}
if (message.title !== "") {
obj.title = message.title;
@@ -1272,7 +1272,7 @@ export const ProjectGitOpsInfo = {
fromPartial(object: DeepPartial<ProjectGitOpsInfo>): ProjectGitOpsInfo {
const message = createBaseProjectGitOpsInfo();
message.name = object.name ?? "";
- message.vcsUid = object.vcsUid ?? "";
+ message.vcs = object.vcs ?? "";
message.title = object.title ?? "";
message.fullPath = object.fullPath ?? "";
message.webUrl = object.webUrl ?? "";
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index bbc64e2884..f5a538b9ab 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -5725,7 +5725,7 @@ The policy&#39;s `name` field is used to identify the instance to update. Format
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The name of the linked repository, generated by the server, and also is the unique identifier. Format: projects/{project}/gitOpsInfo |
-| vcs_uid | [string](#string) | | The uid for related VCS. |
+| vcs | [string](#string) | | The name of the VCS. |
| title | [string](#string) | | The title of the repository. For axample: sample. |
| full_path | [string](#string) | | The full_path of the repository. For example: bytebase/sample. |
| web_url | [string](#string) | | The web url of the repository. For axample: https://gitlab.bytebase.com/bytebase/sample. |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 4b04708f8a..16d83f2428 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -16368,10 +16368,10 @@ Format: projects/{project}/gitOpsInfo </p></td>
</tr>
<tr>
- <td>vcs_uid</td>
+ <td>vcs</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The uid for related VCS. </p></td>
+ <td><p>The name of the VCS. </p></td>
</tr>
<tr>
diff --git a/proto/generated-go/v1/vcs_provider_service.pb.go b/proto/generated-go/v1/vcs_provider_service.pb.go
index cc3d047648..088d2a2e53 100644
--- a/proto/generated-go/v1/vcs_provider_service.pb.go
+++ b/proto/generated-go/v1/vcs_provider_service.pb.go
@@ -688,8 +688,8 @@ type ProjectGitOpsInfo struct {
// The name of the linked repository, generated by the server, and also is the unique identifier.
// Format: projects/{project}/gitOpsInfo
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The uid for related VCS.
- VcsUid string `protobuf:"bytes,2,opt,name=vcs_uid,json=vcsUid,proto3" json:"vcs_uid,omitempty"`
+ // The name of the VCS.
+ Vcs string `protobuf:"bytes,2,opt,name=vcs,proto3" json:"vcs,omitempty"`
// The title of the repository. For axample: sample.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// The full_path of the repository. For example: bytebase/sample.
@@ -754,9 +754,9 @@ func (x *ProjectGitOpsInfo) GetName() string {
return ""
}
-func (x *ProjectGitOpsInfo) GetVcsUid() string {
+func (x *ProjectGitOpsInfo) GetVcs() string {
if x != nil {
- return x.VcsUid
+ return x.Vcs
}
return ""
}
@@ -995,99 +995,99 @@ var file_v1_vcs_provider_service_proto_rawDesc = []byte{
0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x01,
0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09,
0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x41,
- 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 0x22, 0x98, 0x03,
+ 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 0x22, 0x91, 0x03,
0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07,
- 0x76, 0x63, 0x73, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76,
- 0x63, 0x73, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66,
- 0x75, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x66, 0x75, 0x6c, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x5f,
- 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, 0x62, 0x55, 0x72,
- 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x66, 0x69, 0x6c, 0x74,
- 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64,
- 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
- 0x62, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x31, 0x0a,
- 0x12, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c,
- 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10,
- 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
- 0x12, 0x30, 0x0a, 0x14, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f,
- 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12,
- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61,
- 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69,
- 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,
- 0x6c, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x13, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x65,
- 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, 0x6e,
- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x32, 0x83, 0x08, 0x0a, 0x12, 0x56, 0x43, 0x53,
- 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
- 0x78, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
- 0x72, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x47, 0x65, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22,
- 0x28, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f,
- 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73,
- 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
- 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
- 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50, 0x72,
- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x7f, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x29, 0xda,
- 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x0c, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72,
- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50,
- 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0xad, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22,
- 0x57, 0xda, 0x41, 0x18, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
- 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x36, 0x3a, 0x0c, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
- 0x32, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69,
- 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76,
- 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x75, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
- 0xaf, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,
- 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x2d, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72,
- 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f,
- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
- 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a,
- 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03,
+ 0x76, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x63, 0x73, 0x12, 0x14,
+ 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
+ 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74,
+ 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x50, 0x61, 0x74,
+ 0x68, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, 0x62, 0x55, 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
+ 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
+ 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72,
+ 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x12, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70,
+ 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74,
+ 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74,
+ 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50,
+ 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x13,
+ 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
+ 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11,
+ 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49,
+ 0x64, 0x32, 0x83, 0x08, 0x0a, 0x12, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
+ 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x56,
+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x43, 0x53, 0x50,
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53,
+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x28, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f,
- 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
- 0x73, 0x12, 0x9a, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
- 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
- 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
- 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x11,
- 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76,
- 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,
+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76,
+ 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56,
+ 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10,
+ 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
+ 0x12, 0x7f, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,
+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,
+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x72,
+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x29, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x20, 0x3a, 0x0c, 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22,
+ 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
+ 0x73, 0x12, 0xad, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50,
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50,
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x43, 0x53,
+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x57, 0xda, 0x41, 0x18, 0x76, 0x63, 0x73,
+ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x0c, 0x76, 0x63, 0x73,
+ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x76, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x12, 0x75, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72,
+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x43, 0x53, 0x50, 0x72,
+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76,
+ 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x61,
+ 0x72, 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72,
+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72,
+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x43, 0x53, 0x50, 0x72, 0x6f,
+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a,
+ 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x63, 0x73, 0x50,
+ 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x61, 0x72,
+ 0x63, 0x68, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x9a, 0x01, 0x0a, 0x15, 0x4c,
+ 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73,
+ 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69,
+ 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
+ 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49,
+ 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76,
+ 0x63, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70,
+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
+ 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
}
var (
diff --git a/proto/v1/vcs_provider_service.proto b/proto/v1/vcs_provider_service.proto
index d2e7d6f378..43da4cedb6 100644
--- a/proto/v1/vcs_provider_service.proto
+++ b/proto/v1/vcs_provider_service.proto
@@ -163,8 +163,8 @@ message ProjectGitOpsInfo {
// Format: projects/{project}/gitOpsInfo
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- // The uid for related VCS.
- string vcs_uid = 2;
+ // The name of the VCS.
+ string vcs = 2;
// The title of the repository. For axample: sample.
string title = 3;