feat: create project from cloud with initial data support#9194
Open
AdityaHegde wants to merge 22 commits intomainfrom
Open
feat: create project from cloud with initial data support#9194AdityaHegde wants to merge 22 commits intomainfrom
AdityaHegde wants to merge 22 commits intomainfrom
Conversation
k-anshul
reviewed
Apr 16, 2026
| return id, nil | ||
| } | ||
|
|
||
| func (s *Server) createEmptyManagedRepo(ctx context.Context, org *database.Organization, project, ownerID string) (githubRepoID, instID *int64, mgdGitRepoID *string, remote, primaryBranch string, resErr error) { |
Member
There was a problem hiding this comment.
I think this should be simplified to just creating a managed repo.
We don't need to create a branch. If a branch does not exist on remote, runtime will create it. I added a change yesterday so that it pushes that branch immediately as well : #9229
| runtime.EditTrigger, | ||
| ) | ||
| } | ||
| if permissions.ManageDev { // TODO: add safeguard for editable deployments |
Member
There was a problem hiding this comment.
Sorry I didn't get context around this. This is set to false for deployments :
Lines 218 to 219 in 7249ecc
Collaborator
Author
There was a problem hiding this comment.
Borrowed this change from the bigger cloud editing PR. Without this I get action not allowed for the long standing watch resources/files endpoint.
7bfabe4 to
d04e305
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for creating a project from cloud. We show the same welcome page (with some features temporarily missing) as in rill dev. Creating a project will land the user on a generated canvas for now. In future this will land the user to the edit page.
Run
localStorage.set("rill:welcome:enabled", "true")in the console with UI open and refresh to enable this. This is a temporary hack of a feature flag since our usual feature flag is project level.Closes APP-800
Checklist: