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

Use new taxon metrics in API #1511

Open
mdoering opened this issue Dec 4, 2024 · 3 comments
Open

Use new taxon metrics in API #1511

mdoering opened this issue Dec 4, 2024 · 3 comments
Assignees

Comments

@mdoering
Copy link
Member

mdoering commented Dec 4, 2024

For releases and imported external datasets the backend now has [taxon metrics](Use new taxon metrics).
The tree API has slightly changed and the countBy rank parameter is removed. Species counts will now always be present in the existing count property. The existing TreeNode datasetSectors map property is replaced by an int array of source dataset keys in sourceDatasetKeys.

  • adapt assembly tree and portal tree component:
    • to show the species counts
    • use TreeNode.sourceDatasetKeys instead of datasetSectors map
@mdoering
Copy link
Member Author

mdoering commented Dec 4, 2024

see CatalogueOfLife/portal#23

@mdoering
Copy link
Member Author

mdoering commented Dec 5, 2024

metrics is on dev now, but only exist for the datasets imported since that deployment, e.g. donalds:
https://www.dev.checklistbank.org/dataset/2207/classification?taxonKey=2

@mdoering
Copy link
Member Author

mdoering commented Dec 5, 2024

When browsing the tree there are 2 calls being done when opening a node. One for the children and one does an automplete search - I assume to populate the search box above. Can that be populated by the tree directly somehow?

thomasstjerne added a commit that referenced this issue Dec 6, 2024
thomasstjerne added a commit that referenced this issue Dec 9, 2024
thomasstjerne added a commit to CatalogueOfLife/portal-components that referenced this issue Dec 9, 2024
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

No branches or pull requests

2 participants