Repository navigation
Conversation
…dHardware#13972) Updated fields to be optional and added coercion methods for better handling of None values.
Refactor answer extraction logic to handle None values more gracefully.
Refactor Pydantic models for improved validation and clarity.
Added regression tests for IQ rating functionality, covering various edge cases including null content handling, empty choices, and malformed payloads.
Removed iq-rating-regression-tests check from manifest.
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks @PINYOPATTANAWASANPORN — this is a real bug and the fix is correct. Verified against the backend: POST /v2/integrations/{app_id}/user/memories is registered in backend/routers/integration.py (create_memories_via_integration, ExternalIntegrationCreateMemory body, uid query param, Bearer API key), and the unchanged payload {"text", "text_source": "other", "text_source_spec": "learning_notes"} matches the ExternalIntegrationCreateMemory schema exactly. Same host, same auth, same payload shape — only the stale path segment changes. The two comment updates are accurate too.
Two things block merge, neither in the code:
-
Hygiene (
failure-class-protocol) is red: a commit subject starting withfix:requires aFailure-Classdeclaration in the PR description. For a code-only fix like this, add the lineFailure-Class: noneto the PR body (do not usenew— that form is for adding a newFC-*.jsonfailure-class manifest entry, which this PR doesn't do). -
The verification in the description can't be reproduced: it shows a passing run of
python test_manual_import.py -v(2 tests), but no such file exists in the repo or in this PR. Please either add the test file to the PR — preferred, sinceplugins/import/manual-importcurrently has no regression coverage — or correct the description.
Side observation while verifying: plugins/composio/src/omi_api.py still builds the same stale /user/facts URL (line 61) and presumably 404s the same way. A follow-up PR in the same spirit would be welcome.
Once the PR body carries the declaration and the test claim is reconciled, this should be good to merge.
—
Automated maintainer review; a human maintainer will take the final merge decision.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
Hi @Git-on-my-level, Thank you for the verification and review! I have addressed both points:
Ready for final review and merge! |
kodjima33
left a comment
There was a problem hiding this comment.
Confirmed /user/facts still 404s on main; backend only serves /v2/integrations/{app_id}/user/memories. Tiny scoped fix, mirrors established v1->v2 route-fix pattern (see #14342), Hygiene/Failure-Class blocker already resolved in current body, CI green.
Summary of Changes
API_URLinplugins/import/manual-import/app.pyto point to/v2/integrations/{APP_ID}/user/memoriesinstead of the stale/user/factsroute which returned HTTP 404 on every submission.Root Cause / Technical Context
backend/routers/integration.pyregistersPOST /v2/integrations/{app_id}/user/memorieswith theExternalIntegrationCreateMemoryschema (create_memories_via_integration). The endpoint/user/factsdoes not exist in the v2 backend API, causing all manual text memory imports to fail with HTTP 404.Verification & Testing
backend/routers/integration.py(ExternalIntegrationCreateMemorypayload shape matches{"text": memory, "text_source": "other", "text_source_spec": "learning_notes"}).app.py:https://api.omi.me/v2/integrations/{APP_ID}/user/memories?uid={user_id}matches the backend router registration.\n).Failure-Class: none
Fixes #14341