getAllGames returnt nicht alle Attribute von der game Klasse #45

Merged
flixcoo merged 20 commits from bug/37-getallgames-returnt-nicht-alle-attribute-von-der-game-klasse into development 2025-11-22 15:22:11 +00:00
Owner

getAllGames returnt nicht alle Attribute von der game Klasse

Zugehörige Issue(s):
Closes #37

Beschreibung

Der Fehler wurde behoben und betreffende Methoden wurden korrigiert. Desweiteren wurden die Tests vereinheitlicht und erweitert.

Änderungen

  • Methode getAllGames() korrigiert
  • null-Rückggabe für getGroupOfGame() und getPlayersOfGame() angepasst
  • Alle Tests erweitert und vereinheitlicht
  • Test für PlayerGroupTable,PlayerGameTable und GroupGameTable erstellt bzw. ausgelagert
  • Alle Testvariablen einheitlich benannt

Zusätzliche Anmerkungen

Die Test-TODOs werden in #33 erledigt, da dort diese Methoden implementiert sind

# getAllGames returnt nicht alle Attribute von der game Klasse **Zugehörige Issue(s):** Closes #37 ## Beschreibung Der Fehler wurde behoben und betreffende Methoden wurden korrigiert. Desweiteren wurden die Tests vereinheitlicht und erweitert. ## Änderungen - Methode `getAllGames()` korrigiert - `null`-Rückggabe für `getGroupOfGame()` und `getPlayersOfGame()` angepasst - Alle Tests erweitert und vereinheitlicht - Test für `PlayerGroupTable`,`PlayerGameTable` und `GroupGameTable` erstellt bzw. ausgelagert - Alle Testvariablen einheitlich benannt ## Zusätzliche Anmerkungen Die Test-TODOs werden in #33 erledigt, da dort diese Methoden implementiert sind
flixcoo added this to the Minimum Viable Product (MVP) milestone 2025-11-20 22:41:30 +00:00
flixcoo added the
Priority
High
2
PR
Ready for Review
2
labels 2025-11-20 22:41:30 +00:00
flixcoo self-assigned this 2025-11-20 22:41:30 +00:00
flixcoo added 3 commits 2025-11-20 22:41:30 +00:00
Overhauled tests
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m8s
Pull Request Pipeline / lint (pull_request) Successful in 2m8s
89b3f1ff69
flixcoo requested review from gelbeinhalb 2025-11-20 22:41:30 +00:00
flixcoo requested review from sneeex 2025-11-20 22:41:30 +00:00
flixcoo added 4 commits 2025-11-21 00:05:39 +00:00
Refactored tests in own files
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m5s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s
961c6bb679
flixcoo added 3 commits 2025-11-21 11:46:24 +00:00
Annotation for missing test & method
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m1s
Pull Request Pipeline / lint (pull_request) Successful in 2m4s
32f3f68da9
flixcoo removed the
PR
Ready for Review
2
label 2025-11-21 11:48:21 +00:00
flixcoo changed title from getAllGames returnt nicht alle Attribute von der game Klasse to WIP: getAllGames returnt nicht alle Attribute von der game Klasse 2025-11-21 11:48:22 +00:00
flixcoo added 1 commit 2025-11-21 12:12:39 +00:00
Added missing methods
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m7s
e15f5d163d
flixcoo added the
PR
Ready for Review
2
label 2025-11-21 12:20:46 +00:00
flixcoo changed title from WIP: getAllGames returnt nicht alle Attribute von der game Klasse to getAllGames returnt nicht alle Attribute von der game Klasse 2025-11-21 12:20:50 +00:00
flixcoo added 1 commit 2025-11-21 12:42:31 +00:00
Added iteration for multiple items test
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m5s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
d948f2f13d
flixcoo added 1 commit 2025-11-21 12:47:32 +00:00
Renamed variables to be consistent
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m5s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
8c05385203
flixcoo added 1 commit 2025-11-21 13:20:46 +00:00
Added missing awaits
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m7s
dbb52cfc48
flixcoo added 1 commit 2025-11-21 13:25:02 +00:00
Typo
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m25s
Pull Request Pipeline / test (pull_request) Successful in 2m25s
ab250e2df4
sneeex requested changes 2025-11-22 13:10:11 +00:00
Dismissed
@@ -23,0 +24,4 @@
id: row.id,
name: row.name,
group: group,
players: player,
Owner

sollte die variable player nicht players heißen? sind ja zwingend mehrere

sollte die variable player nicht players heißen? sind ja zwingend mehrere
flixcoo marked this conversation as resolved
@@ -13,0 +25,4 @@
return false;
}
if (await db.playerDao.playerExists(playerId: player.id) == false) {
Owner

warum == false und nicht if(!(....))

warum == false und nicht if(!(....))
flixcoo marked this conversation as resolved
@@ -88,0 +128,4 @@
expect(game.winner, expectedGame.winner);
// Group-Checks
if (expectedGame.group != null) {
Owner

was ist wenn bspw. testGame1 die group null ist, obwohl sie ja eigentlich nicht null sein soll? darauf müsste doch auch überprüft werden

was ist wenn bspw. testGame1 die group null ist, obwohl sie ja eigentlich nicht null sein soll? darauf müsste doch auch überprüft werden
flixcoo marked this conversation as resolved
@@ -52,0 +81,4 @@
});
test('Adding and fetching multiple groups works correctly', () async {
// TODO: Use upcoming addGroups() method
Owner

remove comment

remove comment
flixcoo marked this conversation as resolved
@@ -57,2 +58,2 @@
playerId: testPlayer.id,
);
test('Adding and fetching multiple players works correctly', () async {
// TODO: Use upcoming addPlayers() method
Owner

remove comment

remove comment
flixcoo marked this conversation as resolved
flixcoo added 5 commits 2025-11-22 13:22:12 +00:00
Renamed variable
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s
30645f06f8
sneeex approved these changes 2025-11-22 14:39:06 +00:00
flixcoo merged commit 78b511b207 into development 2025-11-22 15:22:11 +00:00
flixcoo deleted branch bug/37-getallgames-returnt-nicht-alle-attribute-von-der-game-klasse 2025-11-22 15:22:12 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: liquid-development/game-tracker#45