Skip to content

fix(web): block use of predictable "fallback" result to cases where no corrections could be found 🚂#15911

Open
jahorton wants to merge 2 commits into
feat/web/substitution-spursfrom
fix/web/block-default-predictable-unless-needed
Open

fix(web): block use of predictable "fallback" result to cases where no corrections could be found 🚂#15911
jahorton wants to merge 2 commits into
feat/web/substitution-spursfrom
fix/web/block-default-predictable-unless-needed

Conversation

@jahorton
Copy link
Copy Markdown
Contributor

@jahorton jahorton commented May 5, 2026

Build-bot: skip build:web
Test-bot: skip

…o corrections could be found

Build-bot: skip build:web
Test-bot: skip
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot Bot commented May 5, 2026

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot Bot changed the title fix(web): block use of predictable "fallback" result to cases where no corrections could be found fix(web): block use of predictable "fallback" result to cases where no corrections could be found 🚂 May 5, 2026
@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S28 milestone May 5, 2026
@jahorton jahorton marked this pull request as ready for review May 6, 2026 14:00
@jahorton jahorton requested a review from ermshiperete May 7, 2026 17:22
Copy link
Copy Markdown
Contributor

@ermshiperete ermshiperete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 280 to 281
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const correctionIsThePredictable = correctableToUpdate == this._predictable;
const delistCorrectable = () => {
if(!correctionIsThePredictable) {

}
}

const correctionIsThePredictable = correctableToUpdate == this._predictable;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we move this line a few lines higher then we can use it already for delistCorrectable.

Suggested change
const correctionIsThePredictable = correctableToUpdate == this._predictable;

}

// We can make no further predictions if we've exhausted all search options.
if(correctableToUpdate == this._predictable) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(correctableToUpdate == this._predictable) {
if(correctionIsThePredictable) {

@keyman-server keyman-server modified the milestones: A19S28, A19S29 May 11, 2026
const correctionIsThePredictable = correctableToUpdate == this._predictable;
const delistCorrectable = () => {
if(correctableToUpdate != this._predictable) {
if(correctionIsThePredictable) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now the opposite. Should be:

Suggested change
if(correctionIsThePredictable) {
if(!correctionIsThePredictable) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants