Skip to content

Conversation

@QuentinRousselet
Copy link
Contributor

@QuentinRousselet QuentinRousselet commented Oct 1, 2025

What does this PR do ?

This PR adds missing origin device groups in measure documents during ingestion.

Other changes

Linked to issue KZLPRD-1039 prevent the ingestion with no measures

@QuentinRousselet QuentinRousselet self-assigned this Oct 1, 2025
Copy link
Member

@etrousset etrousset left a comment

Choose a reason for hiding this comment

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

  • make a function to fill the source object to avoid copying the same code several time and allow future field addition with avoiding forgetting some places.

Repeated code :
source: { deviceMetadata: metadata, groups, id: _id, metadata: deviceMetadataChanges, model: model, reference: reference, type: "device", },

  • Implement the TODO and remove se code (should be a matter of using the same source object build function

@etrousset etrousset merged commit 35aa43d into next Oct 2, 2025
11 checks passed
@etrousset etrousset deleted the KZLPRD-1040-device-group-in-measure branch October 2, 2025 12:36
github-actions bot pushed a commit that referenced this pull request Oct 2, 2025
## [3.0.0-next.13](v3.0.0-next.12...v3.0.0-next.13) (2025-10-02)

### Bug Fixes

* **measures:** add device groups field to origin of measures documents ([#441](#441)) ([35aa43d](35aa43d))
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