Skip to content

feat: create project from cloud with initial data support#9194

Open
AdityaHegde wants to merge 22 commits intomainfrom
feat/create-project-from-cloud
Open

feat: create project from cloud with initial data support#9194
AdityaHegde wants to merge 22 commits intomainfrom
feat/create-project-from-cloud

Conversation

@AdityaHegde
Copy link
Copy Markdown
Collaborator

@AdityaHegde AdityaHegde commented Apr 7, 2026

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:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Comment thread admin/server/projects.go Outdated
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) {
Copy link
Copy Markdown
Member

@k-anshul k-anshul Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Comment thread admin/server/projects.go Outdated
runtime.EditTrigger,
)
}
if permissions.ManageDev { // TODO: add safeguard for editable deployments
Copy link
Copy Markdown
Member

@k-anshul k-anshul Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't get context around this. This is set to false for deployments :

rill/admin/permissions.go

Lines 218 to 219 in 7249ecc

ManageDev: false,
ReadProvisionerResources: true,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borrowed this change from the bigger cloud editing PR. Without this I get action not allowed for the long standing watch resources/files endpoint.

@AdityaHegde AdityaHegde force-pushed the feat/create-project-from-cloud branch from 7bfabe4 to d04e305 Compare April 20, 2026 12:03
@AdityaHegde AdityaHegde marked this pull request as ready for review April 20, 2026 15:05
@AdityaHegde AdityaHegde requested a review from k-anshul April 20, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants