Skip to content

Conversation

@wsobel
Copy link
Member

@wsobel wsobel commented Nov 11, 2025

Imporved the validation transform in the pipeline.

@wsobel wsobel requested review from Copilot and simonyg November 11, 2025 15:54
Copilot finished reviewing on behalf of wsobel November 11, 2025 15:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes validation for sample observations in the pipeline by improving the validation transform. The changes ensure that sample values are properly validated based on their data types and add comprehensive test coverage for various sample validation scenarios.

  • Refactored the validation logic to handle sample observations with different value types (double, int64_t)
  • Consolidated validation error handling and logging into a single code path
  • Added new test cases for sample validation covering valid samples, int64 values, and double values

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test_package/observation_validation_test.cpp Renamed test and added three new test cases to validate samples with different value types (double, int64_t)
src/mtconnect/pipeline/validator.hpp Refactored validation logic to consolidate error handling and properly validate sample observations based on value types
src/mtconnect/device_model/device.cpp Fixed error message from "Duplicate source" to "Duplicate name" for clarity
src/mtconnect/configuration/agent_config.hpp Added afterConfigHooks callback manager for post-configuration hooks
src/mtconnect/configuration/agent_config.cpp Added execution of afterAgentHooks after loading adapters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wsobel wsobel merged commit aab0080 into main Nov 11, 2025
7 checks passed
@wsobel wsobel deleted the 575_fix_quality_for_samples branch November 18, 2025 11:11
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