Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group optional encoder_v2 #144

Merged

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
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