Phase 6B Project Context Engine foundation ready#119
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/barangayoss-projects?upgradeToPro=build-rate-limit |
|
Warning Review limit reached
Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (18)
✨ Finishing Touches🧪 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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1b7eb5073
ℹ️ 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".
| return withOperatingApi(async () => { | ||
| const { projectKey } = await context.params; | ||
| const input = await parseJson(request, createProjectTaskSchema); | ||
| return createProjectTask(projectKey, input); |
There was a problem hiding this comment.
Pass namespace when creating project children
Because this child POST route never parses a namespace and calls createProjectTask without its namespace argument, the service defaults to real_life. For callers that created an au project via POST /api/operating/projects, posting AU task content here will either attach it to a same-key real_life project or fail with “Project not found” when only the AU project exists; the same pattern is present in the decisions/constraints/artifacts/open-loops routes, so the API can contaminate or make AU project context unusable.
Useful? React with 👍 / 👎.
| const client = await db(); | ||
| const { data, error } = await client | ||
| .from("operating_projects") | ||
| .update(sanitizeUpdate(input)) |
There was a problem hiding this comment.
Normalize project_key before saving updates
updateOperatingProjectSchema permits project_key, but this update writes the raw value while all lookups and links rely on normalizeProjectKey(projectKey) before querying. If a PATCH sets project_key to a value such as My Project, the row stores that exact string and subsequent GET/PATCH/context/child calls normalize the URL to my-project, so the project becomes unreachable until repaired directly in the database.
Useful? React with 👍 / 👎.
Ready merge copy of PR #118 because the draft transition endpoint was blocked. Same head commit: b1b7eb5. GitHub CI passed on the implementation branch; Vercel preview is blocked by build-rate-limit.