Commit ceb085d
Data parity for seasons and episodes (#1593)
* Ensure data parity for seasons and episodes retrieved by section searchSeasons() and searchEpisodes() methods and Show.seasons() and Season.episodes() methods
* Extract includeGuids inclusion for parent/child searches into a mixin
* Implement the key-building mixin for all parent/child retrieval methods
* Add unit tests for all permutations
* Fix the mistakes the unit tests inevitably show up
* Linting corrections (too many spaces)
* Linting corrections (trailing whitespace)
* More linting issues
* Preserve fetchItem's failure mode when encountering invalid keys
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Improve Season unit tests to provide partial objects have guids
* Change the relational key builder to explicitly support filters in its parameters
* Correct the implementation of relational key construction in Episode._season(), separating XML attributes from key construction.
* Add the TV parent-child mixin to the collection of composite mixins.
* Improve the statement of intent when building relational keys
* Prevent test local variables from shadowing fixtures
* Move any parent-child query params into the key-building stage
* Move the relational key builder into PlexObject and remove the parent-child mixin.
* Restore the trailing comma for Composite Mixins
* Rename the relational key builder to be a query key builder
---------
Co-authored-by: Touchstone64 <touchstone64@gweb.me.uk>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent e512ccd commit ceb085d
3 files changed
+115
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
179 | 198 | | |
180 | 199 | | |
181 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
| 909 | + | |
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
| 922 | + | |
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
931 | | - | |
| 931 | + | |
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1140 | 1145 | | |
1141 | 1146 | | |
1142 | 1147 | | |
| |||
1213 | 1218 | | |
1214 | 1219 | | |
1215 | 1220 | | |
1216 | | - | |
| 1221 | + | |
1217 | 1222 | | |
1218 | 1223 | | |
1219 | 1224 | | |
1220 | | - | |
| 1225 | + | |
1221 | 1226 | | |
1222 | 1227 | | |
1223 | 1228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
993 | 1018 | | |
994 | 1019 | | |
995 | 1020 | | |
| |||
1171 | 1196 | | |
1172 | 1197 | | |
1173 | 1198 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1178 | 1208 | | |
1179 | 1209 | | |
1180 | 1210 | | |
| |||
1213 | 1243 | | |
1214 | 1244 | | |
1215 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1216 | 1269 | | |
1217 | 1270 | | |
1218 | 1271 | | |
| |||
1283 | 1336 | | |
1284 | 1337 | | |
1285 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1286 | 1363 | | |
1287 | 1364 | | |
1288 | 1365 | | |
| |||
0 commit comments