Prevent persisting and clean up empty analyses, and disable Analyze for zero-move games#667
Prevent persisting and clean up empty analyses, and disable Analyze for zero-move games#667Copilot wants to merge 18 commits into
Conversation
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/e5bca412-d71c-4cb3-91db-9cc3bd6787e6 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/c4dfdd1d-63bb-43ce-ae64-f3359aa886c9 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/0a98c20c-9014-45e5-9eff-59bbda3330c3 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Done in 0e3f19a. The Save Analysis button is now greyed out and disabled whenever the move tree is empty, including after clearing/import flows. Screenshot captured locally: |
|
@copilot resolve the merge conflicts in this pull request |
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/1226f43e-7163-4a0b-9e9d-8989b1ee7a51 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Resolved in |
|
@copilot resolve the merge conflicts in this pull request |
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/e5f9d39a-b160-463c-927c-8c88ad670ab1 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Resolved in |
|
@copilot Add a changeset in liquibase to remove empty analysis and update changelog with today date and issue number |
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/43040c59-bf5b-4740-8a7f-38f24b25e480 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Done in |
|
@copilot Also update validateAnalysisShouldStart in GameDataService |
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/3666db27-d639-4390-85a1-2701f99bc7ac Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Done in |
| @BeforeTest | ||
| fun before() = runTest { | ||
| userId = UserId(AUTHENTICATED, signUpTestUser().second) | ||
| gameDataService = GameDataService( |
There was a problem hiding this comment.
Done in be28620. The test now injects GameDataService directly; I moved the mocked EnginePool override into the shared ServiceTest Koin bootstrap so the service can be wired normally without starting real engines.
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/27ca30ab-8d95-4016-b182-9c1356de808d Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/b546fa68-d8aa-40e3-953d-5ce2619cd663 Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Resolved in |
|
@copilot resolve the merge conflicts in this pull request |
masterorigin/masterinto this branch if needed