Skip to content

SF-3880 Fix Lynx being automatically re-enabled after user turns it off - #4020

Open
Nateowami wants to merge 1 commit into
masterfrom
fix/SF-3880-lynx-automatically-renabled
Open

SF-3880 Fix Lynx being automatically re-enabled after user turns it off#4020
Nateowami wants to merge 1 commit into
masterfrom
fix/SF-3880-lynx-automatically-renabled

Conversation

@Nateowami

@Nateowami Nateowami commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

This change is Reviewable

@Nateowami Nateowami added the will require testing PR should not be merged until testers confirm testing is complete label Aug 4, 2026
@Nateowami
Nateowami temporarily deployed to screenshot_diff August 4, 2026 00:50 — with GitHub Actions Inactive
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.05%. Comparing base (06c10f5) to head (c958878).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4020   +/-   ##
=======================================
  Coverage   81.04%   81.05%           
=======================================
  Files         659      659           
  Lines       42761    42766    +5     
  Branches     7020     6996   -24     
=======================================
+ Hits        34657    34664    +7     
+ Misses       6960     6958    -2     
  Partials     1144     1144           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@RaymondLuong3 RaymondLuong3 self-assigned this Aug 4, 2026

@RaymondLuong3 RaymondLuong3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@RaymondLuong3 reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Nateowami).


src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/lynx/insights/lynx-insight-state.service.ts line 300 at r1 (raw file):

          }

          op.set(puc => puc.lynxInsightState.panelData, panelData);

Ok, I see. So it seems that every time the project user config was loaded we wrote to the doc and overwriting the value for the enabled states. Interested that overwriting the enabled state with undefined would enable the assessments.

Code quote:

          op.set(puc => puc.lynxInsightState.panelData, panelData);

@RaymondLuong3 RaymondLuong3 added ready to test and removed will require testing PR should not be merged until testers confirm testing is complete labels Aug 4, 2026

@Nateowami Nateowami left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@Nateowami made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on RaymondLuong3).


src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/lynx/insights/lynx-insight-state.service.ts line 300 at r1 (raw file):

Previously, RaymondLuong3 (Raymond Luong) wrote…

Ok, I see. So it seems that every time the project user config was loaded we wrote to the doc and overwriting the value for the enabled states. Interested that overwriting the enabled state with undefined would enable the assessments.

We were wiping out the user's personal settings. And since we default to having Lynx on if an admin enabled it for the project, not having a user-level setting means it defaulted to being on.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants