Skip to content

Conversation

@cisse21
Copy link
Member

@cisse21 cisse21 commented Dec 22, 2025

🔒 Scanned for secrets using gitleaks 8.28.0

Description

Added sourceId field to the EventSchemaMessage protobuf definition
Changes:

  • Added sourceId to EventSchemaMessage proto
  • Updated transformer to extract and validate sourceId from job parameters
  • Updated batcher tests to include sourceId for consistency

Linear Ticket

fixes AI-344

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.44%. Comparing base (7aed657) to head (6e1a535).
⚠️ Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6570      +/-   ##
==========================================
- Coverage   79.46%   79.44%   -0.02%     
==========================================
  Files         543      543              
  Lines       60796    60797       +1     
==========================================
- Hits        48309    48298      -11     
- Misses       9612     9614       +2     
- Partials     2875     2885      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cisse21 cisse21 force-pushed the feat.addSrcIdToSchemaDef branch 2 times, most recently from 1d810fb to 6732db0 Compare December 22, 2025 11:08
🔒 Scanned for secrets using gitleaks 8.28.0
@cisse21 cisse21 force-pushed the feat.addSrcIdToSchemaDef branch from 6732db0 to 7fdd6b0 Compare December 22, 2025 11:45
@cisse21 cisse21 marked this pull request as ready for review December 22, 2025 11:46
🔒 Scanned for secrets using gitleaks 8.28.0
…er-server into feat.addSrcIdToSchemaDef

🔒 Scanned for secrets using gitleaks 8.28.0
@cisse21 cisse21 requested a review from atzoum December 23, 2025 11:19
Schema: testdata.TrackSchema,
Hash: proto.SchemaHash(testdata.TrackSchema),
Sample: []byte("{}"),
Key: &proto.EventSchemaKey{
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need any modification here?

Suggested change
Key: &proto.EventSchemaKey{
Key: &testdata.TestEventSchemaKey,

EventType: "track",
EventIdentifier: "event-name",
}
require.Equal(t, schemaTransformer.getSchemaKeyFromJob(testdata.TrackEvent, testdata.WriteKeyEnabled), expectedKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need any modification here?

Suggested change
require.Equal(t, schemaTransformer.getSchemaKeyFromJob(testdata.TrackEvent, testdata.WriteKeyEnabled), expectedKey)
require.Equal(t, schemaTransformer.getSchemaKeyFromJob(testdata.TrackEvent, testdata.WriteKeyEnabled), &testdata.TestEventSchemaKey)

@github-actions
Copy link

This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.

@github-actions github-actions bot added the Stale label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants