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

Remove lazy loading for getSupportedObjects in Registration. #1009

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

sbernard31
Copy link
Contributor

@sbernard31 sbernard31 commented May 10, 2021

By the past getSupportedObjects was added in "Lazy loading" way.

But there is now more and more data to extract from LinkObject :

  • root path
  • supported objects
  • supported content format
  • (To be done : available instances)

It sounds better parse ObjectLink and extract data only when needed, then use classic serialize/deserialize for those data. (and so for supported objects too)

@sbernard31 sbernard31 force-pushed the refactor_get_supported_object branch from a5538de to 7ba642a Compare June 3, 2021 09:34
Copy link
Contributor

@msangoi msangoi left a comment

Choose a reason for hiding this comment

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

👍

@@ -157,18 +157,10 @@ public void test_object_links_with_text_in_not_lwm2m_path() {
assertEquals("1.1", supportedObject.get(3));
}

@Test
@Test(expected = IllegalArgumentException.class)
public void test_object_links_with_text_in_lwm2m_path() {
Copy link
Contributor

Choose a reason for hiding this comment

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

ahah 😄

@sbernard31 sbernard31 changed the base branch from ct_for_server to master June 3, 2021 13:42
@sbernard31 sbernard31 merged commit 7ba642a into master Jun 3, 2021
@sbernard31 sbernard31 deleted the refactor_get_supported_object branch June 30, 2021 08:36
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