Skip to content

XCOMMONS-3321: Upgrade to Jackson 2.19.0 #4152

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

manuelleduc
Copy link
Contributor

@manuelleduc manuelleduc commented May 12, 2025

Jira URL

Changes

Description

  • The upgrade of jackson changed the order when serializing objects to json strings. As this is not support to have an impact on tests, I fixed the tests by moving to objects comparison instead of the current string comparison approach.

Clarifications

Screenshots & Video

Executed Tests

All of the tests of the live data module.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A

@@ -323,7 +323,8 @@ private DisplayerDescriptor getDisplayerConfig(String column, ObjectNode columnP
DisplayerDescriptor displayerConfig = new DisplayerDescriptor();
if (columnProperties.path(ACTIONS).isArray()) {
displayerConfig.setId(ACTIONS);
displayerConfig.setParameter(ACTIONS, columnProperties.get(ACTIONS));
displayerConfig.setParameter(ACTIONS,
columnProperties.get(ACTIONS).valueStream().map(JsonNode::asText).toList());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pointing out that I had to replace arrays with list to values comparable with what is in the test.


LiveDataEntryDescriptor that = (LiveDataEntryDescriptor) o;

return new EqualsBuilder()
Copy link
Member

Choose a reason for hiding this comment

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

Not sure it worth creating a EqualsBuilder for a single property. Objects.equals should do fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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


LiveDataSelectionConfiguration that = (LiveDataSelectionConfiguration) o;

return new EqualsBuilder()
Copy link
Member

Choose a reason for hiding this comment

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

Not sure it worth creating a EqualsBuilder for a single property. Objects.equals should do fine.

@manuelleduc manuelleduc merged commit 41317e6 into xwiki:master May 13, 2025
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