Skip to content

fix: unpublished project's env is not editable#9665

Open
AdityaHegde wants to merge 3 commits into
mainfrom
fix/unpublished-project-editable-env
Open

fix: unpublished project's env is not editable#9665
AdityaHegde wants to merge 3 commits into
mainfrom
fix/unpublished-project-editable-env

Conversation

@AdityaHegde

@AdityaHegde AdityaHegde commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

We linked published project's env editor to project's env management page. But for unpublished projects settings page is unavailable. This is a temporary fix to allow editing env for this case. The long term goal will have to be to add a thin project page for unpublished project.

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!

@AdityaHegde AdityaHegde requested a review from nishantmonu51 July 8, 2026 10:47

@nishantmonu51 nishantmonu51 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 , LGTM

@nishantmonu51

Copy link
Copy Markdown
Collaborator

@codex: review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af44520eec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

export function isManaged(path: string): boolean {
if (isCloudRuntimeEditEnvironment()) {
return CLOUD_READONLY.some((m) => m(path));
return CLOUD_READONLY.some((m) => m(path)) && !!cloudReadonlyNotice;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Fail closed when the primary deployment lookup is inconclusive

When the edit layout's new unscoped GetProject request completes without data (for example, a transient error while the branch-scoped project query still succeeds), it calls setCloudReadonlyNotice(undefined). Since this predicate now treats a missing notice as "not managed", a published project's .env files become editable and the rename/create guards stop blocking env paths instead of preserving the previous read-only behavior until the deployment state is known.

Useful? React with 👍 / 👎.

@nishantmonu51 nishantmonu51 added Type:Bug Something isn't working Size:S Small change: under 100 lines labels Jul 10, 2026
@nishantmonu51

Copy link
Copy Markdown
Collaborator

merged test fixes from main, hopefully CI will pass now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size:S Small change: under 100 lines Type:Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants