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

ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO #3928

Conversation

andresmr
Copy link
Collaborator

Description

Fix create bidirectional relationship creation

jira issue

@andresmr andresmr force-pushed the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch 2 times, most recently from dabf4d7 to f15a858 Compare December 18, 2024 09:57
gradle/libs.versions.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@Balcan Balcan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@andresmr andresmr force-pushed the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch from f15a858 to 50e1cbf Compare December 18, 2024 14:32
Copy link
Contributor

@xavimolloy xavimolloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job!

}
}
return RelationshipModel(
relationship,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huge data model with a lot of parameters, do you think it would make sense to group some of the parameters to a separate model like RelationshipGeometry, RelationshipProfileDetails, etc...?

//Here checks if the TEI is the from or to of the relationship
when (teiUid) {
relationship.from()?.trackedEntityInstance()?.trackedEntityInstance() -> {
direction = RelationshipDirection.TO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would make sense to extract these assignments into separate functions ?

@andresmr andresmr force-pushed the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch from 50e1cbf to 74124cc Compare December 19, 2024 08:35
@xavimolloy xavimolloy self-requested a review December 19, 2024 09:15
@Balcan Balcan force-pushed the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch from 74124cc to a867f5b Compare December 23, 2024 07:50
@xavimolloy xavimolloy force-pushed the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch from a867f5b to b958111 Compare December 23, 2024 08:29
@Balcan Balcan merged commit ccc9a35 into develop Dec 23, 2024
4 checks passed
@Balcan Balcan deleted the ANDROAPP-6535-Bidirectional-relationships-are-created-in-the-oppsite-direction-when-created-from-TO branch December 23, 2024 09:12
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.

3 participants