Commit 1d96642
authored
Fix handling of mismatched datapoints against CDM (#630)
This was causing issues, because the code assumed that if there was no identity with `Id` in the datapoints request, it must be there using `ExternalId`. Now that we can use `InstanceId` instead, that was no longer correct.
I've fixed the issue, and also made it so that we throw an explicit exception if this should ever happen again.
There's an implicit ordering here. _Technically_ a caller could reference a timeseries in multiple ways in the same request, but I think it's fair to call that outside of what we want to support. None of our extractors currently do this, and I think it would fail against the timeseries API at another time.1 parent 40fa916 commit 1d96642
File tree
2 files changed
+14
-2
lines changed- Cognite.Extensions/TimeSeries
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments