-
Notifications
You must be signed in to change notification settings - Fork 791
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
[20134] Change serialize function default behaviour to omit the data representation #4131
Conversation
…data representation Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
@richiprosima please test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests in the https://github.com/eProsima/DDS-Router that were failing (https://github.com/eProsima/DDS-Router/actions/runs/7202566190/job/19620934800) pass with Fast-DDS on this branch and Fast-CDR on master.
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
@richiprosima please test mac |
1 similar comment
@richiprosima please test mac |
@richiprosima please test this |
@richiprosima please test mac |
@Mergifyio backport 2.12.x |
✅ Backports have been created
|
…tation (#4131) * Refs #20134: Change serialize function default behaviour to omit the data representation Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Separate header and sources files for TopicDataType Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Add deprecation note Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Uncrustify Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> (cherry picked from commit 3625421) Signed-off-by: EduPonz <eduardoponz@eprosima.com>
…tation (#4131) * Refs #20134: Change serialize function default behaviour to omit the data representation Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Separate header and sources files for TopicDataType Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Add deprecation note Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Uncrustify Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
…tation (#4131) (#4154) * Change serialize function default behaviour to omit the data representation (#4131) * Refs #20134: Change serialize function default behaviour to omit the data representation Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Separate header and sources files for TopicDataType Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Add deprecation note Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Refs #20134: Uncrustify Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> (cherry picked from commit 3625421) Signed-off-by: EduPonz <eduardoponz@eprosima.com> * Refs #20055: Fix compilation of Fast DDS Python tests Signed-off-by: EduPonz <eduardoponz@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> Signed-off-by: EduPonz <eduardoponz@eprosima.com> Co-authored-by: Raul Sanchez-Mateos Lizano <raul@eprosima.com> Co-authored-by: EduPonz <eduardoponz@eprosima.com>
The write operation in latest versions of Fast DDS calls the new serialize method in which the topic data representation is needed (
serialize(void* data, SerializedPayload_t* payload, DataRepresentationId_t data_representation)
). If the data type was generated with old versions of Fast DDS Gen, this function is not implemented in the type support so the write operation will fail. This PR updates the default behaviour of this function so it will call the old serialize method in case this one is not overridden.Description
@Mergifyio backport 2.12.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist