Skip to content

fix(pii): Skip overlapping remarks in split_chunks - #6343

Merged
jjbayer merged 6 commits into
masterfrom
fix/pii-chunks
Sep 2, 2026
Merged

fix(pii): Skip overlapping remarks in split_chunks#6343
jjbayer merged 6 commits into
masterfrom
fix/pii-chunks

Conversation

@jjbayer

@jjbayer jjbayer commented Sep 1, 2026

Copy link
Copy Markdown
Member

Fixes INGEST-1137

@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

INGEST-1137

Comment on lines +105 to +107
pos = from;
}
if let Some(piece) = text.get(from..to) {
if let Some(piece) = text.get(pos..to) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This makes sure the cursor always advances and no part of the string is copied twice.

@jjbayer

jjbayer commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

@cursor review

Comment thread relay-event-schema/src/processor/chunks.rs Outdated
Comment thread relay-event-schema/src/processor/chunks.rs

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 173c07c. Configure here.

Comment thread relay-event-schema/src/processor/chunks.rs
@jjbayer
jjbayer marked this pull request as ready for review September 2, 2026 10:15
@jjbayer
jjbayer requested a review from a team as a code owner September 2, 2026 10:15
Comment thread relay-event-schema/src/processor/chunks.rs
@jjbayer
jjbayer enabled auto-merge September 2, 2026 12:52
@jjbayer
jjbayer added this pull request to the merge queue Sep 2, 2026
Merged via the queue into master with commit ee5277d Sep 2, 2026
34 of 35 checks passed
@jjbayer
jjbayer deleted the fix/pii-chunks branch September 2, 2026 13:31
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.

3 participants