-
Notifications
You must be signed in to change notification settings - Fork 19
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
Move getEntityUri to separate utility class. #58
Conversation
Applied the patch to a fresh isle-dc local build and encountered a WSOD with this (trimmed) in the logs:
Edit: cleared cache to resolve the error. Should have thought of that after applying the patch. |
This appears to work on Drupal 9.2 after clearing the cache based on my manual testing, but the Github Actions' tests aren't happy. |
There it is, the tests need to be updated to use the new service definitions: https://github.com/whikloj/claw-jsonld/blob/issue-1766/tests/src/Kernel/JsonldKernelTestBase.php#L187,L189 |
Also add --debug to PHPUnit to see what tests are run.
It was not picked up previously and may never have been run.
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.
👍
GitHub Issue: Islandora/documentation#1766
What does this Pull Request do?
Creates a new small utility class to provide the
getEntityUri
to modules implementing thehook_jsonld_alter_normalized_array
.What's new?
Adds a new service
jsonld.normalizer_utils
and loads this class into the ContentEntityNormalizer and FileEntityNormalizer to use itsgetEntityUri
method.Passes the new class to modules implementing the above hook inside the
$context
array with keyutils
. ie ($context['utils']->getEntityUri($some_entity)
)jsonld.api.php
has been updated(i.e. Regeneration activity, etc.)? no
How should this be tested?
Easiest to test with the PR Islandora/controlled_access_terms#72 on controlled_access_terms. Instructions are on that PR.
Additional Notes:
Any additional information that you think would be helpful when reviewing this
PR.
Interested parties
@Islandora/8-x-committers @seth-shaw-unlv @mdlincoln @kspurgin