Skip to content

Conversation

@martinfantini
Copy link
Contributor

Hi
Here are more unit tests, but there is a case in this unit tests , which i can not find the solution.
The case is the one you have a message with optional group. And in this case the encoder_v2 is sending data wrongly.

@martinfantini martinfantini force-pushed the group_encoder_error_v2 branch from bdbd32b to 05d6f4a Compare March 3, 2025 14:29
@martinfantini martinfantini force-pushed the group_encoder_error_v2 branch from 05d6f4a to 3809d54 Compare March 3, 2025 18:30
{
out_ << " {\n"
<< " " << get_ext_cref_type(subinst) << " ext_cref_group((*this)[" << i << "]);\n"
<< " ext_cref_group.set_group_present(this->field_storage(" << i << ")->is_present());\n"
Copy link
Contributor Author

@martinfantini martinfantini Mar 3, 2025

Choose a reason for hiding this comment

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

Add the set of the group presence, at the encode time.

{
out_ << " {\n"
<< " " << get_ext_cref_type(subinst) << " ext_cref_group((*this)[" << i << "]);\n"
<< " ext_cref_group.set_group_present(this->field_storage(" << i << ")->is_present());\n"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add the set of the group presence, at the encode time.

@martinfantini martinfantini changed the title Group encoder error v2 Group optional encoder_v2 Mar 3, 2025
@martinfantini
Copy link
Contributor Author

@huangminghuang Here is the solution of the optional encoding for the encoder V2, since it is not working until now.

@huangminghuang huangminghuang merged commit 2627c36 into objectcomputing:master Mar 6, 2025
3 checks passed
@martinfantini martinfantini deleted the group_encoder_error_v2 branch July 28, 2025 20:30
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.

2 participants