Skip to content

fix(client): apply mask to dataset and score payloads - #1905

Open
asaraog wants to merge 4 commits into
langfuse:mainfrom
asaraog:fix/mask-dataset-and-score-payloads
Open

asaraog wants to merge 4 commits into
langfuse:mainfrom
asaraog:fix/mask-dataset-and-score-payloads

Conversation

@asaraog

@asaraog asaraog commented Sep 26, 2026 •

Copy link
Copy Markdown

Fixes #1896. Applies the client mask to create_dataset_item input/expected_output/metadata, create_dataset metadata and create_score comment, using the same fallback as span masking; those payloads bypassed mask entirely.

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no outstanding findings remain.

Summary

The PR applies the configured mask to dataset item payloads, dataset metadata, and score comments. It also serializes non-string masked score comments for the score API and adds focused tests.

Reviews (2) · Last reviewed commit: "fix(client): serialize non-string masked..."

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@CLAassistant

CLAassistant commented Sep 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread langfuse/_client/client.py
Comment thread langfuse/_client/client.py Outdated
Comment thread langfuse/_client/client.py
@asaraog
asaraog force-pushed the fix/mask-dataset-and-score-payloads branch from aae4ea4 to 33ad69a Compare October 2, 2026 01:07
@asaraog

asaraog commented Oct 2, 2026

Copy link
Copy Markdown
Author

@greptileai review

This branch has not been deployed

No deployments
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.

mask is not applied to create_dataset_item or create_score(comment=)

2 participants