{{ message }}
fix PGN export for force variations#20150
Draft
Mephimeow wants to merge 2 commits intolichess-org:masterfrom
Draft
fix PGN export for force variations#20150Mephimeow wants to merge 2 commits intolichess-org:masterfrom
Mephimeow wants to merge 2 commits intolichess-org:masterfrom
Conversation
Fixes lichess-org#20081 Force variations (created via 'Force variation' context menu action) were not being rendered in PGN brackets. This bug affected both Analysis and Studies pages. The fix modifies: 1. Branches.variations to exclude forceVariation nodes 2. NewTree.apply to use mainlineFirst (non-forceVariation) for mainline 3. NewTree.apply to combine regular variations and forceVariations
a2ce5a0 to
a79863f
Compare
Author
Collaborator
You mean for the one case you tested? That new test looks wrong to me, or I don't understand what you're trying to do. |
Author
that one test is wrong in ci for my update in force variations |
Author
|
The expectation in the test appears logically incorrect from the point of view of chess notation. |
Collaborator
|
Indeed. And yet you did write that test. So how can you say that it "appears logically incorrect"? I don't get it. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #20081
Force variations (created via 'Force variation' context menu action) were not being rendered in PGN brackets. This bug affected both Analysis and Studies pages.
The fix:
Example before fix: 1. e4 c5 1. d4
Example after fix: 1. e4 c5 (1. d4)