fix(igdb): search only games a user can own and play
Build, Test & Push Core Service / quality-check (push) Failing after 49s
Build, Test & Push Core Service / docker (push) Skipped

The search listed DLC and e-Reader levels, and the limit of
10 pushed the main games out. Keep main games, standalone
expansions, seasons, remakes, remasters, expanded games and
ports, and show 20 hits.
This commit is contained in:
lobo committed 2026-09-25 15:24:05 +02:00
1 parent 4d50863cb8
commit e1d837bc78
2 files changed
+6 -3

No files matched your search

@@ -194,7 +194,7 @@ class IgdbApiServiceTest extends AbstractUnitTest {
expectToken();
igdb.expect(requestTo(containsString("/games")))
.andExpect(content().string(allOf(containsString("search \"zelda\";"), containsString("version_parent = null"),
containsString("limit 10"))))
containsString("game_type = (0,4,7,8,9,10,11)"), containsString("limit 20"))))
.andRespond(withSuccess(ZELDA, MediaType.APPLICATION_JSON));
List<IgdbApiService.Game> games = service.searchGames(" zelda ").orElseThrow();