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

Fix: SkeletonTemplates not creating Edges correctly #574

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

Jim-Encord
Copy link
Contributor

Introduction and Explanation

As quickly spotted by Laverne, the creation of templates did not wholly line up with the FE and was not making edges correctly. With a battle with serialisation logic, this now aligns carefully.

Documentation

Spotted on the way to the docs. Originally this logic was just to facilitate the testing of the handling of SkeletonCoordinates.

Tests

Tests have been amended on this end to inspect creation also of edges. Still passes tests on BE.

Known issues

I battled hugely with trying to keep BaseDTO and the aliasing class. The aliasing class was removed as the new parsing logic returns a SkeletonTemplateORM and then the logic would need to be repeated to make the aliasing class happy. This issue with the two types caused lots of confusion on my end. If we keep the two types, tests fail on SDK side where it is deserialised into ORM type and user creates interface type.
I'm not sure that there is a better solution, we could remove the redirection file and just share the type directly.

@Jim-Encord
Copy link
Contributor Author

Had a realisation that cls constructor would have saved me like an hours work

@Jim-Encord Jim-Encord merged commit d771cdb into master Apr 16, 2024
3 of 4 checks passed
@Jim-Encord Jim-Encord deleted the jb/skeletonEdges_fixe branch April 16, 2024 10:33
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.

None yet

2 participants