Skip to content
Open
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
13 changes: 7 additions & 6 deletions admin/server/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ func (s *Server) GetRepoMeta(ctx context.Context, req *adminv1.GetRepoMetaReques
}

return &adminv1.GetRepoMetaResponse{
ExpiresOn: timestamppb.New(expiresAt),
LastUpdatedOn: timestamppb.New(proj.UpdatedOn),
GitUrl: gitURL,
GitSubpath: proj.Subpath,
GitBranch: depl.Branch,
GitEditBranch: editBranch,
ExpiresOn: timestamppb.New(expiresAt),
LastUpdatedOn: timestamppb.New(proj.UpdatedOn),
GitUrl: gitURL,
GitSubpath: proj.Subpath,
GitBranch: depl.Branch,
GitEditBranch: editBranch,
ManagedGitRepo: proj.ManagedGitRepoID != nil,
}, nil
}

Expand Down
7 changes: 6 additions & 1 deletion cli/pkg/local/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ func NewApp(ctx context.Context, opts *AppOptions) (*App, error) {
connectors = append(connectors, olapConnector)

// The repo connector is the local project directory
repoConfig, err := structpb.NewStruct(map[string]any{"dsn": projectPath})
repoConfig, err := structpb.NewStruct(map[string]any{
"dsn": projectPath,
"admin_url": opts.Ch.AdminURL(),
"access_token": opts.Ch.AdminToken(),
"org": opts.Ch.Org,
})
if err != nil {
return nil, err
}
Expand Down
3 changes: 3 additions & 0 deletions proto/gen/rill/admin/v1/admin.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5198,6 +5198,9 @@ definitions:
description: |-
A unique branch name generated for temporary/ephemeral use in edit mode where files may be mutated.
This enables checkpointing progress across hibernations and also more easily pinning to a specific commit of the base branch to delay conflict resolution.
managedGitRepo:
type: boolean
description: Whether the git repo is managed by Rill.
archiveDownloadUrl:
type: string
description: Signed URL for downloading a tarball of project files. If this is set, the git_* fields will be empty (and vice versa).
Expand Down
5,797 changes: 2,904 additions & 2,893 deletions proto/gen/rill/admin/v1/api.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions proto/gen/rill/admin/v1/api.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion proto/gen/rill/admin/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ components:
description: When the returned config was last modified. This covers all fields in the response except the ephemeral credentials embedded in git_url and archive_download_url.
format: date-time
type: string
managedGitRepo:
description: Whether the git repo is managed by Rill.
type: boolean
type: object
v1GetReportMetaResponse:
properties:
Expand Down Expand Up @@ -2272,7 +2275,7 @@ externalDocs:
info:
description: Rill Admin API enables programmatic management of Rill Cloud resources, including organizations, projects, and user access. It provides endpoints for creating, updating, and deleting these resources, as well as managing authentication and permissions.
title: Rill Admin API
version: v0.77.8
version: v0.78.0
openapi: 3.0.3
paths:
/v1/ai/complete:
Expand Down
5 changes: 4 additions & 1 deletion proto/gen/rill/admin/v1/public.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ components:
description: When the returned config was last modified. This covers all fields in the response except the ephemeral credentials embedded in git_url and archive_download_url.
format: date-time
type: string
managedGitRepo:
description: Whether the git repo is managed by Rill.
type: boolean
type: object
v1GetReportMetaResponse:
properties:
Expand Down Expand Up @@ -2272,7 +2275,7 @@ externalDocs:
info:
description: Rill Admin API enables programmatic management of Rill Cloud resources, including organizations, projects, and user access. It provides endpoints for creating, updating, and deleting these resources, as well as managing authentication and permissions.
title: Rill Admin API
version: v0.77.8
version: v0.78.0
openapi: 3.0.3
paths:
/v1/ai/complete: {}
Expand Down
Loading
Loading