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

When loading data via the JSON-LD loader, the related resources section in the report may not be populated correctly #10608

Open
apeters opened this issue Feb 13, 2024 · 0 comments
Labels
Subject: JSON-LD Type: Bug Something isn't working

Comments

@apeters
Copy link
Member

apeters commented Feb 13, 2024

The related resources section at the bottom of a report may show all, some, or no related resources when there should be. This is because of the load order of resources. If a resource (AA) is loaded before another resource (BB) that references it, then the related resource (AA) shows up in the related resource section of the report for resource (BB). If AA was loaded after BB, then AA won't show up in the related resource section of resource BB.

This is due to the "resourceinstanceto_graphid" column in the "resource_x_resource" table not being populated when using the JSON-LD loader.

This could be fixed by running this bit of sql after the load:

UPDATE resource_x_resource x
SET resourceinstanceto_graphid = r.graphid
FROM resource_instances r
WHERE r.resourceinstanceid = x.resourceinstanceidto
AND x.resourceinstanceto_graphid is null;
@apeters apeters added Type: Bug Something isn't working Subject: JSON-LD labels Feb 13, 2024
@chiatt chiatt added this to pipeline Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: JSON-LD Type: Bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant