Skip to content

fix: "false" is treated as valid CEL#1144

Merged
adityachoudhari26 merged 2 commits into
mainfrom
treat-false-as-valid-cel
May 19, 2026
Merged

fix: "false" is treated as valid CEL#1144
adityachoudhari26 merged 2 commits into
mainfrom
treat-false-as-valid-cel

Conversation

@adityachoudhari26
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 20:39
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 18, 2026

Warning

Rate limit exceeded

@adityachoudhari26 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 37 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: eff0d971-2c37-4f8d-85a9-9407ed56472d

📥 Commits

Reviewing files that changed from the base of the PR and between 96a87ca and 3b090cd.

📒 Files selected for processing (2)
  • apps/api/src/routes/v1/workspaces/deployments.ts
  • e2e/tests/api/deployments.spec.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch treat-false-as-valid-cel

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates deployment selector formatting so the CEL expression "false" is preserved instead of being treated as absent.

Changes:

  • Removes special-casing of "false" in the deployment route selector parser.
  • Affects formatted deployment, job agent selector, and deployment variable selector responses in this route.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const parseSelector = (raw: string | null | undefined): string | undefined => {
if (raw == null || raw === "false") return undefined;
if (raw == null) return undefined;
Comment on lines +25 to 26
if (raw == null) return undefined;
return raw;
@adityachoudhari26 adityachoudhari26 merged commit 16d184b into main May 19, 2026
9 checks passed
@adityachoudhari26 adityachoudhari26 deleted the treat-false-as-valid-cel branch May 19, 2026 15:32
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