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

Invert graph tree #95

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Invert graph tree #95

merged 6 commits into from
Feb 6, 2024

Conversation

riccardofano
Copy link
Owner

@riccardofano riccardofano commented Feb 4, 2024

Adds an endpoint at /api/inverted/inheritance.
It accepts a list of people that only have a relation to their nearest relative, not all the relatives they have as it is the case with the other endpoint.

[
    { id: '1', name: 'Fratello', available: true, relation: 'fratello', relatedTo: '' },
    { id: '2', name: 'Sorella', available: true, relation: 'fratello', relatedTo: '' },
]

instead of:

{
    '0': { id: '0', name: 'Defunto', available: false, root: null, relatives: ['1', '2'], category: 'children' },
    '1': { id: '1', name: 'Fratello', available: true, root: '0', relatives: [], category: 'bilinear' },
    '2': { id: '2', name: 'Sorella', available: true, root: '0', relatives: [], category: 'bilinear' },
]

Copy link

vercel bot commented Feb 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
calcoloeredita ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2024 7:44pm

@riccardofano riccardofano marked this pull request as ready for review February 6, 2024 15:34
@riccardofano riccardofano merged commit 90a2b05 into main Feb 6, 2024
4 checks passed
@riccardofano riccardofano deleted the invert-graph branch February 6, 2024 15:34
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.

1 participant