Skip to content

Commit bdc6838

Browse files
committed
Add update list todo
1 parent 89772c8 commit bdc6838

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spine/model/update.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func UpdateList[T any](existingData []T, newData []T, filterPartial, filterDelet
3030
}
3131

3232
// check if items have no identifiers
33+
// Currently all fields marked as key are required
34+
// TODO: check how to handle if only one identifier is provided
3335
if len(newData) > 0 && !HasIdentifiers(newData[0]) {
3436
// no identifiers specified --> copy data to all existing items
3537
// (see EEBus_SPINE_TS_ProtocolSpecification.pdf, Table 7: Considered cmdOptions combinations for classifier "notify")

0 commit comments

Comments
 (0)