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

potential fix for jsonld import bug, re #7542 #7546

Merged
merged 4 commits into from
Jul 14, 2021

Conversation

apeters
Copy link
Member

@apeters apeters commented Jun 30, 2021

re #7542

@apeters apeters changed the title portential fix for jsonld import bug, re #7542 potential fix for jsonld import bug, re #7542 Jul 1, 2021
@@ -429,8 +431,21 @@ def is_concept_node(self, uri):
return True
return False

def find_local_references(self, jsonld_document):
if "@id" in jsonld_document and "@type" in jsonld_document:
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggest a further check that it is NOT a tile reference, as tiles can only exist in one place in the tree.

Copy link
Member Author

Choose a reason for hiding this comment

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

what would that check look like? I'm unsure of how to check for that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I assume you mean references like these

"http://localhost:8000/tile/d83757c8-203e-4755-b1fb-45e260105d78/node/e2f83f46-bacf-11ea-81b2-3af9d3b32b71"

Copy link
Member Author

Choose a reason for hiding this comment

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

To me, the added complexity of implementing a regex to filter out those tile references doesn't seem to offset the additional entries in the cache. I think I'm just going to leave it as it for now.

@chiatt chiatt self-assigned this Jul 14, 2021
@chiatt chiatt self-requested a review July 14, 2021 20:20
Copy link
Member

@chiatt chiatt left a comment

Choose a reason for hiding this comment

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

Resolves #7542

@chiatt chiatt merged commit 9e09486 into stable/5.2.x Jul 14, 2021
@chiatt chiatt deleted the 7542_jsonld_import_bug branch July 14, 2021 20:21
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.

4 participants