JSON Import für Testdaten & Funktion zum Löschen aller Daten #33

Merged
flixcoo merged 44 commits from feature/31-json-import-fuer-testdaten into development 2025-11-22 16:47:15 +00:00
Owner

JSON Import für Testdaten

Zugehörige Issue(s):
Closes #31 #32

Beschreibung

Die Spieldaten können nun über die Einstellungen exportiert werden. Importierte Spieldaten werden über ein JSON-Schema überprüft und der Datenbank hinzugefügt. Ein Button der alle Daten der Datenbank löscht wurde hinzugefügt.

Änderungen

  • SettingsListTile implementiert
  • SettingsView Layout grob implementiert
  • Import & Export implementiert
  • Alle Daten löschen implementiert
  • Datenbank angepasst
  • Methoden addGames(), AddGroups() und addPlayers() implementiert
  • JSON-Schema-Überprüfung implementiert

Zusätzliche Anmerkungen

Aufgrund von Problemen beim kaskadierenden Löschen musste die Datenbank mit einem Custom Statement angepasst werden.

# JSON Import für Testdaten **Zugehörige Issue(s):** Closes #31 #32 ## Beschreibung Die Spieldaten können nun über die Einstellungen exportiert werden. Importierte Spieldaten werden über ein JSON-Schema überprüft und der Datenbank hinzugefügt. Ein Button der alle Daten der Datenbank löscht wurde hinzugefügt. ## Änderungen - `SettingsListTile` implementiert - `SettingsView` Layout grob implementiert - Import & Export implementiert - Alle Daten löschen implementiert - Datenbank angepasst - Methoden `addGames()`, `AddGroups()` und `addPlayers()` implementiert - JSON-Schema-Überprüfung implementiert ## Zusätzliche Anmerkungen Aufgrund von Problemen beim kaskadierenden Löschen musste die Datenbank mit einem Custom Statement angepasst werden.
flixcoo added this to the Minimum Viable Product (MVP) milestone 2025-11-17 22:26:49 +00:00
flixcoo added the
Priority
High
2
label 2025-11-17 22:26:49 +00:00
flixcoo self-assigned this 2025-11-17 22:26:49 +00:00
flixcoo added 4 commits 2025-11-17 22:26:49 +00:00
Owner

grafik.png

schrift muss auf jeden fall kleiner und warum ist das "Menu" auf einmal nicht mehr in der AppBar oben?
Ist ja sonst überall so

![grafik.png](/attachments/fef1de2e-d763-44a9-942c-5eb71bae3419) schrift muss auf jeden fall kleiner und warum ist das "Menu" auf einmal nicht mehr in der AppBar oben? Ist ja sonst überall so
Owner

aber sieht cool aus

aber sieht cool aus
Author
Owner

grafik.png

schrift muss auf jeden fall kleiner und warum ist das "Menu" auf einmal nicht mehr in der AppBar oben?
Ist ja sonst überall so

Also 1. chill doch ich bin doch noch garnicht fertig
2. Wollte keine AppBar haben weil das dadurch weniger Android Like aussieht, meine Inspiration war das:

Ich find die DönerCheck App hat halt n gutes Hybrides Design und wollte mich daran bisschen orientieren

> ![grafik.png](/attachments/fef1de2e-d763-44a9-942c-5eb71bae3419) > > schrift muss auf jeden fall kleiner und warum ist das "Menu" auf einmal nicht mehr in der AppBar oben? > Ist ja sonst überall so Also 1. chill doch ich bin doch noch garnicht fertig 2. Wollte keine AppBar haben weil das dadurch weniger Android Like aussieht, meine Inspiration war das: <img height="500" src="/attachments/c6cdb6ea-0162-4dae-8122-094f2b8d60bc"> Ich find die DönerCheck App hat halt n gutes Hybrides Design und wollte mich daran bisschen orientieren
486 KiB
flixcoo added 2 commits 2025-11-18 21:50:06 +00:00
sneeex changed title from WIP: JSON Import für Testdaten to WIP: JSON Import für Testdaten & Funktion zum Löschen aller Daten 2025-11-18 22:03:25 +00:00
flixcoo added a new dependency 2025-11-18 22:54:55 +00:00
flixcoo added 10 commits 2025-11-18 23:32:27 +00:00
flixcoo requested review from gelbeinhalb 2025-11-18 23:32:44 +00:00
flixcoo requested review from sneeex 2025-11-18 23:32:44 +00:00
flixcoo added the
PR
Ready for Review
2
label 2025-11-18 23:32:48 +00:00
flixcoo changed title from WIP: JSON Import für Testdaten & Funktion zum Löschen aller Daten to JSON Import für Testdaten & Funktion zum Löschen aller Daten 2025-11-18 23:33:14 +00:00
flixcoo added a new dependency 2025-11-19 00:06:28 +00:00
flixcoo added a new dependency 2025-11-19 00:13:51 +00:00
flixcoo removed a dependency 2025-11-19 00:13:58 +00:00
flixcoo added 1 commit 2025-11-19 08:44:55 +00:00
sneeex requested changes 2025-11-19 17:44:40 +00:00
Dismissed
sneeex left a comment
Owner

createdAt field hinzufügen zu jeder group, game und player.
Davor muss #36 approved und gemerged werden.

createdAt field hinzufügen zu jeder group, game und player. Davor muss #36 approved und gemerged werden.
flixcoo added 1 commit 2025-11-19 18:23:14 +00:00
# Conflicts:
#	lib/presentation/views/main_menu/home_view.dart
flixcoo added 1 commit 2025-11-19 18:26:39 +00:00
sneeex added
PR
In Review
1
and removed
PR
Ready for Review
2
labels 2025-11-19 18:59:39 +00:00
flixcoo added 13 commits 2025-11-19 19:22:00 +00:00
flixcoo requested review from sneeex 2025-11-19 19:22:03 +00:00
flixcoo added 1 commit 2025-11-19 19:22:27 +00:00
flixcoo removed a dependency 2025-11-19 19:23:24 +00:00
flixcoo added 1 commit 2025-11-19 19:27:34 +00:00
flixcoo added 1 commit 2025-11-19 19:35:42 +00:00
Merge branch 'development' into feature/31-json-import-fuer-testdaten
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m13s
17dabb773d
sneeex requested changes 2025-11-19 19:42:01 +00:00
sneeex left a comment
Owner

@flixcoo test fehlgeschlagen hier

@flixcoo test fehlgeschlagen hier
sneeex requested changes 2025-11-19 19:52:27 +00:00
@@ -11,0 +80,4 @@
await DataTransferService.getAppDataAsJson(context);
final result = await DataTransferService.exportData(
json,
'exported_data',
Owner

name exported data blöd, lieber game_tracker_data oder sowas

name exported data blöd, lieber game_tracker_data oder sowas
flixcoo marked this conversation as resolved
@@ -11,0 +108,4 @@
context: context,
message: 'Data successfully deleted',
);
},
Owner
  • bei delete all data auf jeden fall ein Dialog mit bestätigen, habe gerade ausversehen alle daten gelöscht xD, dachte da kommt sowas
  • musst die jeweilige page dann neuladen, updated aktuell nicht
- bei delete all data auf jeden fall ein Dialog mit bestätigen, habe gerade ausversehen alle daten gelöscht xD, dachte da kommt sowas - musst die jeweilige page dann neuladen, updated aktuell nicht
flixcoo marked this conversation as resolved
flixcoo added 1 commit 2025-11-19 20:13:58 +00:00
Added missing await
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m1s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
f7c1d6e975
sneeex requested changes 2025-11-19 20:34:39 +00:00
@@ -0,0 +23,4 @@
"type": "null"
},
"group": {
"type": "null"
Owner

alles was null ist, ist forced null, d.h. es muss null sein, ist hier aber ja nicht richtig

alles was null ist, ist forced null, d.h. es muss null sein, ist hier aber ja nicht richtig
flixcoo marked this conversation as resolved
flixcoo added 4 commits 2025-11-19 20:42:16 +00:00
Updated schema
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m1s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s
f40a9ad09b
flixcoo added 1 commit 2025-11-19 20:51:17 +00:00
Corrected schema again
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m14s
45650133a7
sneeex removed a dependency 2025-11-19 21:00:08 +00:00
Author
Owner

Immer noch Probleme beim exportieren, vielleicht werden irgendwo daten überschrieben?

Immer noch Probleme beim exportieren, vielleicht werden irgendwo daten überschrieben?
flixcoo changed title from JSON Import für Testdaten & Funktion zum Löschen aller Daten to WIP: JSON Import für Testdaten & Funktion zum Löschen aller Daten 2025-11-20 17:30:01 +00:00
flixcoo added 2 commits 2025-11-20 22:00:29 +00:00
Merge branch 'bug/37-getallgames-returnt-nicht-alle-attribute-von-der-game-klasse' into feature/31-json-import-fuer-testdaten
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
29a3e77fc4
flixcoo added 4 commits 2025-11-20 22:51:31 +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
Added methods for multiple inserts to tests
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
8e63a01705
flixcoo added 12 commits 2025-11-21 13:01:50 +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
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
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
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
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
# Conflicts:
#	lib/data/dao/player_group_dao.dart
#	test/db_tests/game_test.dart
#	test/db_tests/group_test.dart
#	test/db_tests/player_test.dart
Added batch insert methods to tests
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m9s
Pull Request Pipeline / lint (pull_request) Successful in 2m9s
51722eb7fd
flixcoo added 1 commit 2025-11-21 13:17:43 +00:00
Added missing await
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s
c56663d15e
flixcoo added 3 commits 2025-11-21 13:26:27 +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
Typo
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m25s
Pull Request Pipeline / test (pull_request) Successful in 2m25s
ab250e2df4
Merge branch 'bug/37-getallgames-returnt-nicht-alle-attribute-von-der-game-klasse' into feature/31-json-import-fuer-testdaten
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m21s
Pull Request Pipeline / lint (pull_request) Successful in 2m21s
7cd53aa695
# Conflicts:
#	test/db_tests/player_test.dart
flixcoo added 3 commits 2025-11-21 23:48:36 +00:00
Moved method validateJsonSchema()
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m5s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s
2ebd4274f0
flixcoo requested review from sneeex 2025-11-21 23:51:05 +00:00
flixcoo changed title from WIP: JSON Import für Testdaten & Funktion zum Löschen aller Daten to JSON Import für Testdaten & Funktion zum Löschen aller Daten 2025-11-21 23:51:13 +00:00
Author
Owner

Beispieldaten, welche ab jetzt genutzt werden können und ggf. erweitert werden können sind im Discord

Beispieldaten, welche ab jetzt genutzt werden können und ggf. erweitert werden können sind im [Discord](https://discord.com/channels/921763177245605888/938410896299028570/1441581737733001288)
flixcoo added
PR
Ready for Review
2
and removed
PR
In Review
1
labels 2025-11-22 00:12:07 +00:00
flixcoo added 1 commit 2025-11-22 00:12:52 +00:00
Schema corrected
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m10s
Pull Request Pipeline / lint (pull_request) Successful in 2m11s
893eb91143
flixcoo added 1 commit 2025-11-22 15:44:19 +00:00
Merge branch 'development' into feature/31-json-import-fuer-testdaten
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m16s
Pull Request Pipeline / test (pull_request) Successful in 2m16s
0593297fc3
gelbeinhalb approved these changes 2025-11-22 16:40:36 +00:00
gelbeinhalb left a comment
Owner

LGTM

lhm3ijxuv0f91.gif

LGTM ![lhm3ijxuv0f91.gif](/attachments/b4ff4aba-79a3-4412-9421-8c6ccf6b36d0)
flixcoo merged commit 6af1df5fbc into development 2025-11-22 16:47:15 +00:00
flixcoo deleted branch feature/31-json-import-fuer-testdaten 2025-11-22 16:47:15 +00:00
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: liquid-development/game-tracker#33