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

Generic TopLevelDocument #423

Merged
merged 30 commits into from
Sep 24, 2024
Merged

Generic TopLevelDocument #423

merged 30 commits into from
Sep 24, 2024

Conversation

antoinebhs
Copy link
Collaborator

@antoinebhs antoinebhs commented Aug 2, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)

What kind of change does this PR introduce?
Create an abstraction for the class TopLevelDocument to have the possibility to create TopLevelDocument of anything (including for example resources, extension attributes).

What is the current behavior?
We can only create TopLevelDocument for resources (which is thus linked to IdentifiableAttributes).

What is the new behavior (if this is a feature change)?
The is one implementation of AbstractTopLevelDocument for resources (TopLevelDocument) and one for extensionAttributes ExtensionAttributesTopLevelDocument.
There is a need for an abstraction here as we can't use generics directly because of Jackson serialization not supporting generics at root level with polymorphic type information (see for example FasterXML/jackson-databind#699)

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: BOUHOURS Antoine <[email protected]>
…ess with tests and small edge cases handling

Signed-off-by: Antoine Bouhours <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
…ate to CollectionCache to avoid passing the same methods in CachedNetworkStoreClient for every call to CollectionCache

Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
@antoinebhs antoinebhs changed the base branch from main to lazy-loading-extension-attributes August 2, 2024 08:21
Copy link

sonarqubecloud bot commented Aug 2, 2024

Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: Antoine Bouhours <[email protected]>
@antoinebhs antoinebhs changed the title [WIP] Generic topleveldocument Generic topleveldocument Sep 2, 2024
@antoinebhs antoinebhs changed the title Generic topleveldocument Generic TopLevelDocument Sep 2, 2024
Signed-off-by: BOUHOURS Antoine <[email protected]>
Signed-off-by: BOUHOURS Antoine <[email protected]>
@antoinebhs antoinebhs force-pushed the generic-topleveldocument branch from 47ff568 to 87c9eee Compare September 23, 2024 07:19
@antoinebhs antoinebhs force-pushed the generic-topleveldocument branch from a97c675 to a370698 Compare September 23, 2024 12:07
Base automatically changed from lazy-loading-extension-attributes to main September 24, 2024 09:10
@antoinebhs antoinebhs force-pushed the generic-topleveldocument branch from b82b5ec to 3198454 Compare September 24, 2024 09:23
… into generic-topleveldocument

Signed-off-by: BOUHOURS Antoine <[email protected]>
@antoinebhs antoinebhs force-pushed the generic-topleveldocument branch from 3198454 to ebaf86f Compare September 24, 2024 09:27
Copy link

@antoinebhs antoinebhs merged commit 832cd8b into main Sep 24, 2024
4 checks passed
@antoinebhs antoinebhs deleted the generic-topleveldocument branch September 24, 2024 09:31
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.

3 participants