Closed D-GopalKrishna closed 3 months ago
Simplification of the code in the image - valid, since we have a code for constraint already in place as following
class Meta:
constraints = [
CheckConstraint(
check=(
Q(simple_entity__isnull=False, region_layer__isnull=True) |
Q(simple_entity__isnull=True, region_layer__isnull=False)
),
name='check_anatomical_entity_exclusivity'
)
]
by @afonsobspinto
So we never have the condition for the "else". Also the region and layer have required
conditions.
Jira Link - https://metacell.atlassian.net/browse/SCKAN-277
Implementation/Requirements :
When the destination is one of RegionLayer AE, it shows as -> Region, Layer in the "Connected from". This is since RegionLayerPair is also AnatomicalEntity.![image](https://github.com/MetaCell/sckan-composer/assets/59233227/90d225dc-1e71-4994-a106-6316ebb4299c)
@ddelpiano thoughts?
When origin is a RegionLayer AE, the identifier is a pair separated by a comma. uri for - region, layer![Screenshot 2024-03-29 122140](https://github.com/MetaCell/sckan-composer/assets/59233227/06a6a617-83a8-476f-a742-15c3bb8b9855)