Azure-Samples / Azure-Samples/digital-twins-explorer

Round tripping of exported relationships do not restore relationship properties.

Open
#290 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
215
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Relationships are exported like this:

```
{
"$relationshipId": "c8d57ca2-6cba-4c65-95da-dd17c97a102d",
"$sourceId": "mysourcetwin",
"$targetId": "mytargettwin",
"$relationshipName": "thisrelationshipisarelationship",
"myRelationshipStatus": "itscomplicated",
"$etag": "W/\"c431b939-f910-44e7-a682-f0def79d8b62\""
}
```

However, it looks like the importer is looking for relationship properties to be under a `$properties` node?

Contributor guide

Open the contributing guide

Research direction

Start by tracing the relationship export and import paths in the repository and compare the exported shape with the importer’s expected property location. Reproduce a round trip using the relationship example from the issue; done means relationship properties such as myRelationshipStatus are preserved after export and import.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript
Domain
backend, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.