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

fix: add lazy fetch for ObjectMapper in the json-ld context #4737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Jan 17, 2025

What this PR changes/adds

Adds lazy fetch of ObjectMapper for JSON-LD context from the TypeManager.

Why it does that

Fix possible wrong ObjectMapper fetched in the initialize phase

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #4734

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood force-pushed the fix/4734_jsonld_object_mapper branch from 9d224fa to aba67ee Compare January 17, 2025 15:44
@wolf4ood wolf4ood self-assigned this Jan 17, 2025
@wolf4ood wolf4ood added the bug Something isn't working label Jan 17, 2025
@wolf4ood wolf4ood force-pushed the fix/4734_jsonld_object_mapper branch 3 times, most recently from c5236ba to aa021ce Compare January 20, 2025 08:37
@wolf4ood wolf4ood marked this pull request as ready for review January 20, 2025 08:56
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

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

this looks to be a consistent change in core modules, a DR would be appreciated

@wolf4ood
Copy link
Contributor Author

On a second though this reduce the impact of the changes, but it will limit the extensibility of the TypeManager on the long run. I will go back to my original solution with having a lazy fetch of the ObjectMapper

@wolf4ood wolf4ood marked this pull request as draft January 20, 2025 11:14
@wolf4ood wolf4ood force-pushed the fix/4734_jsonld_object_mapper branch 3 times, most recently from 7767f07 to 5ecdab7 Compare January 20, 2025 11:33
@wolf4ood wolf4ood force-pushed the fix/4734_jsonld_object_mapper branch from 5ecdab7 to 1d15334 Compare January 20, 2025 13:15
@wolf4ood wolf4ood changed the title fix: add deterministic ObjectMapper for JSON-LD fix: add lazy ObjectMapper fetch for JSON-LD Jan 20, 2025
@wolf4ood wolf4ood changed the title fix: add lazy ObjectMapper fetch for JSON-LD fix: add lazy fetch for JSON-LD ObjectMapper Jan 20, 2025
@wolf4ood wolf4ood changed the title fix: add lazy fetch for JSON-LD ObjectMapper fix: add lazy fetch for ObjectMapper in the json-ld context Jan 20, 2025
@wolf4ood wolf4ood changed the title fix: add lazy fetch for ObjectMapper in the json-ld context fix: add lazy fetch for ObjectMapper Jan 20, 2025
@wolf4ood wolf4ood changed the title fix: add lazy fetch for ObjectMapper fix: add lazy fetch for ObjectMapper in the json-ld context Jan 20, 2025
@wolf4ood wolf4ood marked this pull request as ready for review January 20, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON-LD ObjectMapper resolution
3 participants