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

Add API to get details of ancestors of a node #607

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hyanwong
Copy link
Member

Something like this probably exists already in order to populate the "where am I" popup bar, but I have reimplemented something for Chris Haughton and Tiziana

@hyanwong hyanwong force-pushed the ascending-ancestors branch 2 times, most recently from 802e375 to e266ca5 Compare November 11, 2022 16:51
Something like this probably exists already in order to populate the "where am I" popup bar, but I have reimplemented something for Chris Haughton and Tiziana
@lentinj
Copy link
Collaborator

lentinj commented May 2, 2023

Something like this probably exists already in order to populate the "where am I" popup bar

This happens entirely in the client, as it already has the details to hand: https://github.com/OneZoom/OZtree/blob/bfcc84f67a3ea3ba7864d345486483606468e798/OZprivate/rawJS/OZTreeModule/src/controller/controller_loc.js

We also have the highly-related common_ancestor_of_otts:

https://github.com/OneZoom/OZtree/blob/main/modules/pinpoint.py#L6-L41

Remove the filters at the end of the query and it'll return the full path to the root.

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