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

Exclude unnecessary fields from provenance results #747

Open
yuanzhou opened this issue Oct 1, 2024 · 0 comments
Open

Exclude unnecessary fields from provenance results #747

yuanzhou opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@yuanzhou
Copy link
Member

yuanzhou commented Oct 1, 2024

The Provenance Section on portal-ui's individual entity page displays the sequence of events and actions that led to the creation of a given entity, which uses the /entities/<id>/provenance call essentially. Based on feedback from Harvard team, they'll only need the following fields:

entity

hubmap:dataset_type
hubmap:uuid
hubmap:hubmap_id
hubmap:entity_type
hubmap:status
hubmap:created_timestamp

activity

hubmap:creation_action
hubmap:uuid
hubmap:status (code indicates this exists, but haven’t been able to inspect live data with this field included)
hubmap:created_timestamp
wasGeneratedBy
prov:activity
prov:entity

Previously we did performance tuning with using Neo4j query to return the results, without going through the schema yaml. This exclusion operation should be handled in the Neo4j cypher as well if possible.

def get_provenance(neo4j_driver, uuid, depth):

@github-project-automation github-project-automation bot moved this to Backlog in Pitt HIVE Oct 1, 2024
@yuanzhou yuanzhou moved this from Backlog to Ready in Pitt HIVE Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

2 participants