chore: address PR #613 review nits (test PII + meta docstring) - #646
Conversation
Two low-risk cleanups from the automated review of the staging->main release PR (#613): - tests/test_usage_tracking.py: replace the real employee email used to build USER_ID with a fictitious example.com address. Keeps the base64 encoding behaviour identical while keeping PII out of test data. - api/routes/meta.py: the module docstring referenced "version/health" but only /version exists. Align the docstring with the actual surface. The other automated findings were verified as false positives and are left unchanged (see PR replies): publish-pypi.yml already builds once and shares the artifact across both publish jobs with success-gated `needs`; the Vite dev proxy already forwards /version via the /api prefix (buildApiUrl -> /api/version); and `openai` is a transitive dependency of graphiti-core (0.29.1), so the [server] extra install always includes it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Completed Working on "Code Review"✅ Code review complete. No issues found - all changes look good! ✅ ✅ Workflow completed successfully. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes update the metadata route module documentation to reference ChangesMetadata route documentation
Usage tracking test fixture
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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
Low-risk cleanup PR addressing nits from the staging→main release review: removes real-looking PII from a unit test fixture and aligns the public metadata module docstring with the actual route surface.
Changes:
- Replaced a real employee email used in
tests/test_usage_tracking.pywith a fictitious example email while keeping identical base64 behavior. - Updated
api/routes/meta.pymodule docstring to reference the/versionendpoint (and removed the outdated/healthmention).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/test_usage_tracking.py | Swaps the hardcoded email test value to a fictitious address while preserving the same encoding/decoding behavior. |
| api/routes/meta.py | Adjusts the module docstring to match the actual public metadata endpoint(s). |
Comments suppressed due to low confidence (1)
api/routes/meta.py:5
- The module docstring now says “route” (singular) but still refers to “endpoints”, “them”, and “Their tag” (plural). Since this module only exposes a single
/versionendpoint, update the wording to be consistent and avoid confusing API readers.
"""Public metadata route (``/version``) for the QueryWeaver API.
These endpoints are intentionally unauthenticated so the frontend can read
them before login. Their tag is not mapped to any MCP type, so FastMCP's
default EXCLUDE route map keeps them out of the MCP tool surface.
Summary
Two low-risk cleanups surfaced by the automated review of the staging→main release PR (#613). The remaining automated findings were verified as false positives and left unchanged (rationale below + replied on #613).
Fixed
tests/test_usage_tracking.py— theUSER_IDfixture was built from a real employee email (gal.shubeli@falkordb.com). Replaced with a fictitioustest.user@example.com; base64 behaviour is identical. (Copilot)api/routes/meta.py— module docstring referencedversion/health, but only/versionexists. Aligned the docstring with the actual route surface. (Copilot)pytest tests/test_usage_tracking.py tests/test_meta_route.py→ 13 passed.Verified false positives (no change)
openaimissing from[server]extra →use_memoryImportError (Copilot):graphiti-core0.29.1 declaresopenaias a core dependency, soqueryweaver[server]installs it transitively.from openai import AsyncAzureOpenAIalways resolves.buildjob, uploads the artifact, and both publish jobs consume that same artifact;needs:is success-gated by default and each publish job is behind a protectedenvironment./version(overcut-ai): the frontend callsbuildApiUrl('/version'), which resolves to/api/versionon the dev server (BASE_URL='/api') and is forwarded by the existing/apiproxy. Works in dev as-is.🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Tests