feat: NCS-52 Rules as a microservice #36
Reference in New Issue
Block a user
Delete Branch "feat/NCS-52"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implemented module rules as a microservice.
Summary
rulemodule, making it independently deployable as a standalone microservice on port 8081RuleSetmethods via a REST API at/api/rules(candidate moves, legal moves, check/checkmate/stalemate/draw detection, applymove)
DtoMapperfor serializing/deserializing chess types (board, moves, game context) as flat JSON stringsJacksonConfigfor Scala module registration and anapplication.ymlfor the rule service@QuarkusTestHTTP-level tests + 29DtoMapperunit tests (100% condition coverage)Test plan
./compile— all modules build successfully./test— all tests pass (rule module: 107 tests total)./coverage— 100% condition coverage inrulemodule./gradlew :modules:rule:quarkusDevstarts on port 8081GET /api/rules/candidate-movesreturns valid moves for initial positionGET /api/rules/is-checkreturnsfalsefor initial positionContains changes that revert last commit
Recommend Cherry Picking
a176f9e7caCan you give me an example of where?
Hauptsächlich die manuellen DTOs fixen
@@ -0,0 +1,2 @@greeting:Bidde nicht adden
@@ -0,0 +1,6 @@-- This file allow to write SQL commands that will be emitted in test and dev.Das hier auch nicht
@@ -13,5 +13,5 @@ class JacksonConfig extends ObjectMapperCustomizer:override def version(): Version =// scalafix:off DisableSyntax.nullnew Version(2, 21, 1, null, "com.fasterxml.jackson.module", "jackson-module-scala")// scalafix:on DisableSyntax.nullDie arme Datei
@@ -0,0 +16,4 @@promotionPiece: Option[String],)case class GameContextDto(Warum wird der Context gemappt? Kann man doch direkt verwenden
Schau dir bitte das IO Modul an
c0e2a21688to4a69198e3d