-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
XWIKI-21971: No options when using LiveData with a LevelsClass column #2982
Conversation
* Provide a list of maps of label / values in case of LevelsClass
* Provide equals/hashcode/tostring method in LiveDataPropertyDescriptor * Improve test to rely on LiveDataPropertyDescriptor objects instead of relying on JSON serialization
String expectedJSON = | ||
"[" + getExpectedDocPropsJSON() + "," + expectedClassProps.toString().replace('\'', '"') + "]"; | ||
assertEquals(expectedJSON, this.objectMapper.writeValueAsString(properties)); | ||
assertEquals(List.of(descriptor0, descriptor1, descriptor2, descriptor3, descriptor4), properties); |
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.
As discussed on the chat, I've refactored the test to use objects instead of JSON serialization to avoid issues with order of parameters.
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.
Thanks for refactoring this!
...xwiki-platform-livedata-api/src/main/java/org/xwiki/livedata/LiveDataPropertyDescriptor.java
Show resolved
Hide resolved
...xwiki-platform-livedata-api/src/main/java/org/xwiki/livedata/LiveDataPropertyDescriptor.java
Outdated
Show resolved
Hide resolved
...xwiki-platform-livedata-api/src/main/java/org/xwiki/livedata/LiveDataPropertyDescriptor.java
Outdated
Show resolved
Hide resolved
...able/src/main/java/org/xwiki/livedata/internal/livetable/LiveTableLiveDataPropertyStore.java
Outdated
Show resolved
Hide resolved
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.
lgtm except for the few code style comments.
* Minor fixes after review
…#2982) * Provide a list of maps of label / values in case of LevelsClass * Provide equals/hashcode/tostring method in LiveDataPropertyDescriptor * Improve test to rely on LiveDataPropertyDescriptor objects instead of relying on JSON serialization * Minor fixes after review (cherry picked from commit 65d216e)
…#2982) * Provide a list of maps of label / values in case of LevelsClass * Provide equals/hashcode/tostring method in LiveDataPropertyDescriptor * Improve test to rely on LiveDataPropertyDescriptor objects instead of relying on JSON serialization * Minor fixes after review (cherry picked from commit 65d216e)
…xwiki#2982) * Provide a list of maps of label / values in case of LevelsClass * Provide equals/hashcode/tostring method in LiveDataPropertyDescriptor * Improve test to rely on LiveDataPropertyDescriptor objects instead of relying on JSON serialization * Minor fixes after review
Jira URL
https://jira.xwiki.org/browse/XWIKI-21971
Changes
Description
Clarifications
Screenshots & Video
N/A
Executed Tests
Ran
mvn clean install -Pquality
on module livedata.Expected merging strategy