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

[20903] DynamicData to JSON serializer #4780

Merged
merged 38 commits into from
Jul 11, 2024
Merged

[20903] DynamicData to JSON serializer #4780

merged 38 commits into from
Jul 11, 2024

Conversation

juanlofer-eprosima
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima commented May 14, 2024

Description

This PR introduces a couple of utility functions meant to ease the transformation of a DynamicData to a digestible JSON object, which is dumped to a user-provided ostream. The resulting JSON objects can follow the OMG standard format (as in https://www.omg.org/spec/DDS-JSON/1.0/Beta1/PDF), or an alternative custom one.

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • Any new/modified methods have been properly documented using Doxygen.
  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • Changes are ABI compatible.
  • Changes are API compatible.
  • New feature has been added to the versions.md file (if applicable).
  • New feature has been documented/Current behavior is correctly described in the documentation.
  • N/A Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@juanlofer-eprosima juanlofer-eprosima added this to the v3.0.0 milestone May 14, 2024
@juanlofer-eprosima
Copy link
Contributor Author

juanlofer-eprosima commented Jun 4, 2024

Bitset inheritance has recently been refactored, I would add coverage for this scenario.

test/unittest/CMakeLists.txt Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/idl_to_json_Tests.cpp Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/types/types.cpp Outdated Show resolved Hide resolved
test/unittest/utils/json/DataType.json Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/idl_to_json_Tests.cpp Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/idl_to_json_Tests.cpp Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/idl_to_json_Tests.cpp Outdated Show resolved Hide resolved
test/unittest/dds/xtypes/dyndata_idl/idl_to_json_Tests.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/xtypes/utils.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/xtypes/utils.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/xtypes/utils.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/xtypes/utils.cpp Outdated Show resolved Hide resolved
src/cpp/fastdds/xtypes/utils.cpp Outdated Show resolved Hide resolved
@elianalf elianalf removed the needs-review PR that is ready to be reviewed label Jun 24, 2024
versions.md Outdated Show resolved Hide resolved
juanlofer-eprosima and others added 20 commits July 10, 2024 10:57
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Copy link

@EduPonz EduPonz left a comment

Choose a reason for hiding this comment

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

Update of update_generated_code_from_idl.sh LGTM

Copy link
Contributor

@Tempate Tempate left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor Author

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

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

Tests LGTM

@EduPonz EduPonz merged commit ace3bc8 into master Jul 11, 2024
15 of 17 checks passed
@EduPonz EduPonz deleted the v3.0/dynamic-data-json branch July 11, 2024 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-pending PR which CI is running first-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants