Skip to content

fix: read trace post ids from info payload#209

Open
sztoplover-bit wants to merge 1 commit intocamel-ai:mainfrom
sztoplover-bit:fix/recsys-trace-post-id
Open

fix: read trace post ids from info payload#209
sztoplover-bit wants to merge 1 commit intocamel-ai:mainfrom
sztoplover-bit:fix/recsys-trace-post-id

Conversation

@sztoplover-bit
Copy link
Copy Markdown

Summary

  • safely extract post_id values from the serialized trace.info payload
  • stop rec_sys_personalized_with_trace() from crashing on trace rows that do not include a post id
  • reuse the same safe parsing in related trace helpers to avoid the same key access bug

Verification

  • python3 -m py_compile oasis/social_platform/recsys.py test/infra/recsys/test_recsys.py
  • validated the issue scenario with a minimal direct call to rec_sys_personalized_with_trace() using a trace row whose info only contains refresh metadata

Fixes #198

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.

[BUG] rec_sys_personalized_with_trace() access an invalid key

1 participant