RoadTripMoustache / kana_to_kanji

Simple application to learn Japanese kana (hiragana, katakana) and kanji
5 stars 1 forks source link

feat: Reload all static data #241

Closed Adaendra closed 1 month ago

Adaendra commented 1 month ago

๐Ÿ“– Description

If the app receive an error 404 from GET /sync, it means that the app version is obsolete. So the app must clean all the collections with static data and call the API to all download again.

โ‰๏ธ Related Issues

closes: #222

๐Ÿงช How to test the change?

โ˜‘๏ธ Checklist before requesting a review

github-actions[bot] commented 1 month ago

Coverage after merging issue_222 into issue_221 will be

46.74%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src
   locator.dart1.75%100%100%1.75%102–104, 106, 109, 112–114, 116, 119, 122–124, 126, 129, 135, 28–29, 32–35, 37–39, 44–45, 48, 50–51, 60–72, 75–76, 79, 82–84, 86, 89, 92–94, 96, 99
lib/src/core/dataloaders
   group_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–34, 39–44, 50
   kana_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–33, 37–42, 48
   kanji_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 48, 50, 52, 54, 56–66, 68, 74
   vocabulary_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 49–50, 56
lib/src/core/models
   sync.dart40%100%100%40%23, 33–34
lib/src/core/services
   cleanup_service.dart0%100%100%0%28–31, 33, 38–39, 42–43, 46–47, 50–51, 55–57, 61–65, 69, 73–74, 76–85
   sync_service.dart0%100%100%0%17–20, 22, 26–27, 30–31, 34–35, 38–39, 42–44, 48–51, 53
github-actions[bot] commented 1 month ago

Coverage after merging issue_222 into issue_221 will be

46.20%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src
   locator.dart1.23%100%100%1.23%102–104, 106, 109, 112–114, 116, 119, 122–124, 127, 130–132, 134, 137, 140–142, 144, 147, 150–152, 154, 157, 160–162, 164, 167, 170–172, 174, 177, 183, 28–29, 32–35, 37–39, 44–45, 48, 50–51, 60–72, 75–76, 79, 82–84, 86, 89, 92–94, 96, 99
lib/src/core/dataloaders
   group_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–34, 39–44, 50
   kana_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–33, 37–42, 48
   kanji_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 48, 50, 52, 54, 56–66, 68, 74
   vocabulary_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 49–50, 56
lib/src/core/models
   sync.dart40%100%100%40%29, 39–40
lib/src/core/services
   cleanup_service.dart0%100%100%0%28–31, 33, 38–39, 42–43, 46–47, 50–51, 55–57, 61–65, 69, 73–74, 76–85
   sync_service.dart0%100%100%0%17–20, 22, 26–27, 30–31, 34–35, 38–39, 42–44, 48–51, 53
github-actions[bot] commented 1 month ago

Coverage after merging issue_222 into issue_221 will be

46.20%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src
   locator.dart1.23%100%100%1.23%102–104, 106, 109, 112–114, 116, 119, 122–124, 127, 130–132, 134, 137, 140–142, 144, 147, 150–152, 154, 157, 160–162, 164, 167, 170–172, 174, 177, 183, 28–29, 32–35, 37–39, 44–45, 48, 50–51, 60–72, 75–76, 79, 82–84, 86, 89, 92–94, 96, 99
lib/src/core/dataloaders
   group_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–34, 39–44, 50
   kana_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–33, 37–42, 48
   kanji_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 48, 50, 52, 54, 56–66, 68, 74
   vocabulary_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 49–50, 56
lib/src/core/models
   sync.dart40%100%100%40%29, 39–40
lib/src/core/services
   cleanup_service.dart0%100%100%0%28, 30–31, 33, 35, 40–41, 44–45, 48–49, 52–53, 57–59, 63–67, 71, 75–76, 78–87
   sync_service.dart0%100%100%0%17–20, 22, 26–27, 30–31, 34–35, 38–39, 42–44, 48–51, 53
github-actions[bot] commented 1 month ago

Bump version from 0.24.0+1 to 0.25.0+1

github-actions[bot] commented 1 month ago

Coverage after merging issue_222 into main will be

46.20%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src
   locator.dart1.23%100%100%1.23%102–104, 106, 109, 112–114, 116, 119, 122–124, 127, 130–132, 134, 137, 140–142, 144, 147, 150–152, 154, 157, 160–162, 164, 167, 170–172, 174, 177, 183, 28–29, 32–35, 37–39, 44–45, 48, 50–51, 60–72, 75–76, 79, 82–84, 86, 89, 92–94, 96, 99
lib/src/core/dataloaders
   group_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–34, 39–44, 50
   kana_dataloader.dart0%100%100%0%14, 19–20, 23, 26, 30–33, 37–42, 48
   kanji_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 48, 50, 52, 54, 56–66, 68, 74
   vocabulary_dataloader.dart0%100%100%0%15, 20–21, 24, 27, 31–35, 39–44, 46, 49–50, 56
lib/src/core/models
   sync.dart40%100%100%40%29, 39–40
lib/src/core/services
   cleanup_service.dart0%100%100%0%28, 30–31, 33, 35, 40–41, 44–45, 48–49, 52–53, 57–59, 63–67, 71, 75–76, 78–87
   sync_service.dart0%100%100%0%17–20, 22, 26–27, 30–31, 34–35, 38–39, 42–44, 48–51, 53