Commit fad4eff
authored
fix: nullable relationship detection and FileObject nested metadata (#679)
* fix(dto): detect nullable one-to-one relationships on inverse side (#227)
`detect_nullable_relationship()` only checked MANYTOONE direction,
missing ONETOMANY+uselist=False (inverse side of one-to-one). Also
fixed `parse_type_from_element()` to not treat scalar one-to-one
relationships as collections.
* fix(file-object): serialize nested metadata for obstore attributes (#676)
Obstore attributes must be strings. Non-string metadata values (lists,
dicts, numbers) are now serialized via encode_json before passing to
obstore's put(). Fixes TypeError when FileObject has nested metadata.1 parent 9488dd7 commit fad4eff
4 files changed
Lines changed: 106 additions & 6 deletions
File tree
- advanced_alchemy
- extensions/litestar
- types/file_object/backends
- tests
- integration
- unit/test_extensions/test_litestar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
517 | 520 | | |
518 | 521 | | |
519 | 522 | | |
| |||
535 | 538 | | |
536 | 539 | | |
537 | 540 | | |
538 | | - | |
539 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
546 | 550 | | |
547 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
57 | 80 | | |
58 | 81 | | |
59 | 82 | | |
| |||
132 | 155 | | |
133 | 156 | | |
134 | 157 | | |
| 158 | + | |
135 | 159 | | |
136 | | - | |
| 160 | + | |
137 | 161 | | |
138 | 162 | | |
139 | 163 | | |
| |||
188 | 212 | | |
189 | 213 | | |
190 | 214 | | |
| 215 | + | |
191 | 216 | | |
192 | | - | |
| 217 | + | |
193 | 218 | | |
194 | 219 | | |
195 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
1834 | 1862 | | |
1835 | 1863 | | |
1836 | 1864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
543 | 584 | | |
544 | 585 | | |
545 | 586 | | |
| |||
0 commit comments