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

Vuu 81 definition as json node #104

Merged

Conversation

vferraro-scottlogic
Copy link

@vferraro-scottlogic vferraro-scottlogic commented Nov 10, 2023

Changes

  • use ObjectNode for definition instead of String/JsonNode

@vferraro-scottlogic vferraro-scottlogic added this to the Layout Management milestone Nov 15, 2023
@vferraro-scottlogic vferraro-scottlogic linked an issue Nov 15, 2023 that may be closed by this pull request
@vferraro-scottlogic vferraro-scottlogic changed the base branch from main to VUU333-layout-server November 15, 2023 11:26

service.persistApplicationLayout(user, definition);

verify(mockRepo, times(1))
.save(new ApplicationLayout(user, definition));
}

@Test
public void createApplicationLayout_invalidDefinition_throwsJsonException() {

Choose a reason for hiding this comment

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

this test case is not relevant anymore as definition is now an ObjectNode rather than a string

Copy link

@pling-scottlogic pling-scottlogic left a comment

Choose a reason for hiding this comment

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

Good stuff! Just a very minor thing on wording, but that won't stop me from approving.

@@ -32,14 +39,16 @@
@ActiveProfiles("test")
public class LayoutIntegrationTest {

private static final String DEFAULT_LAYOUT_DEFINITION = "Default layout definition";
private static final String DEFAULT_LAYOUT_DEFINITION_STRING = "{\"id\":\"main-tabs\"}";
private static final String DEFAULT_UPDATED_LAYOUT_DEFINITION_STRING = "{\"id\":\"updated-main-tabs\"}";

Choose a reason for hiding this comment

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

Minor semantic thing that's not going to stop me from approving: I would remove the word "default" and just call this UPDATED_LAYOUT_DEFINITION_STRING.

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.

Implement JsonNode in Layout DTOs
3 participants