chore: align version list endpoint CEL filtering#1123
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR corrects the CEL variable name used when filtering deployment versions from ChangesCEL Variable Name Refactoring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR aligns the CEL filtering variable name used by the deployment version list endpoint and its e2e coverage, switching the CEL context from deploymentVersion to version for consistency with other CEL usages in the codebase.
Changes:
- Updated the deployment version list endpoint’s CEL evaluation context to expose the current item as
version. - Updated e2e tests to use
version.metadata.*in CEL expressions instead ofdeploymentVersion.metadata.*.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| e2e/tests/api/deployment-version-list.spec.ts | Updates CEL filter strings in e2e tests to reference version instead of deploymentVersion. |
| apps/api/src/routes/v1/workspaces/deployments.ts | Changes the CEL evaluation context variable passed to cel-js from deploymentVersion to version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| return versions.filter((version) => { | ||
| try { | ||
| return evaluate(cel, { deploymentVersion: version }); | ||
| return evaluate(cel, { version }); |
Summary by CodeRabbit
Bug Fixes