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

Jsonld alter caching #747

Merged
merged 2 commits into from
Dec 18, 2019
Merged

Conversation

dannylamb
Copy link

Github Issue: Islandora/documentation#1379

What does this Pull Request do?

Fixes tests by changing how we invalidate caching with our jsonld alters... and nudging the tests a little.

What's new?

I add some cache tags to the $context['cacheability'] metadata provided in the alter function.

How should this be tested?

Before this PR:

  • View a node's jsonld, it probabaly has schema:sameAs with the Drupal URL in there.
  • Go edit the Content context and change the self reference URL to owl:sameAs.
  • View the node's jsonld again, but you don't see owl:sameAs. It's still schema:sameAs!

After this PR:

  • View a node's jsonld, it probabaly has schema:sameAs with the Drupal URL in there.
  • Go edit the Content context and change the self reference URL to owl:sameAs.
  • View the node's jsonld again, and you'll see owl:sameAs as expected.

Additional Notes:

This unblocks a bunch of PRs because tests are failing.

Interested parties

@Islandora/8-x-committers

Copy link
Member

@whikloj whikloj left a comment

Choose a reason for hiding this comment

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

👍 Works as expected.

@whikloj whikloj merged commit b553f2c into Islandora:8.x-1.x Dec 18, 2019
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