Commit 78ab52f
Chris Rossi
fix: ignore datastore properties that are not mapped to NDB properties (#470)
During deserialization from Datastore, since NDB properties can be
arbitrarily mapped to Datastore properties of different names, it is
possible for a Datastore entity to have a property with the same name as
an NDB property, but that isn't the Datastore property mapped to that
NDB property. This fix prevents the unmapped Datastore property from
accidentally clobbering the NDB property of the same name.
Fixes #461.1 parent f9ca7bc commit 78ab52f
File tree
2 files changed
+42
-3
lines changed- packages/google-cloud-ndb
- google/cloud/ndb
- tests/system
2 files changed
+42
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5964 | 5964 | | |
5965 | 5965 | | |
5966 | 5966 | | |
5967 | | - | |
5968 | | - | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
5969 | 5988 | | |
5970 | 5989 | | |
5971 | 5990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
0 commit comments