Skip to content

Ignore deferred combo work after an Ext4 combo is destroyed - #8286

Merged
labkey-jeckels merged 2 commits into
developfrom
fb_ehr_test_flake_fixes
Nov 6, 2026
Merged

labkey-jeckels merged 2 commits into
developfrom
fb_ehr_test_flake_fixes

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Destroying an Ext4 combo while it still has deferred work pending throws a client-side error, because Ext 4.2.1 nulls the combo's store on destroy but lets its delayed type-ahead, delayed query, and remote load callback run afterward. Any combo can hit this; the EHR Apply Template window does when Submit is clicked right after picking a template, which made TNPRC_RequestsTest fail intermittently. Fixing it in the shared Ext4 patches covers every combo, including the duplicated ONPRC template window, instead of patching one window.

Related Pull Requests

Changes

  • Skip a combo's delayed type-ahead, delayed query, and query completion once the combo has been destroyed

Tasks

  • Claude Code Review
  • Manual Testing - N/A
  • Test Automation - N/A - this is a test fix

@labkey-jeckels labkey-jeckels changed the title Cancel pending combo type-ahead when an Ext4 combo is destroyed Ignore deferred combo work after an Ext4 combo is destroyed Nov 4, 2026
@labkey-jeckels
labkey-jeckels marked this pull request as ready for review November 6, 2026 00:11
@labkey-jeckels labkey-jeckels self-assigned this Nov 6, 2026
@labkey-jeckels
labkey-jeckels requested a review from cnathe November 6, 2026 00:13
@labkey-jeckels
labkey-jeckels merged commit cb67456 into develop Nov 6, 2026
9 of 10 checks passed
@labkey-jeckels
labkey-jeckels deleted the fb_ehr_test_flake_fixes branch November 6, 2026 23:18
labkey-jeckels added a commit to LabKey/wnprc-modules that referenced this pull request Nov 10, 2026
## Rationale
Fix intermittent WNPRC_EHRTest virology import failures caused by test
timing, which recently showed up as a new failure on an unrelated
feature branch. The tests picked files by their position in a list whose
order varied between runs, and checked for import results and error
messages before the asynchronous import request had returned.

## Related Pull Requests
- LabKey/platform#8286
- LabKey/tnprcEHRModules#455
- LabKey/testAutomation#3274

## Changes
- Sort the import dialog's file list so its order is stable
- Select virology files by name rather than by position
- Wait for the import to finish before submitting, and for error
messages instead of expecting them right away
- Close the preview popup only after its check passes, so failure
screenshots capture it

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - test fix
labkey-tchad pushed a commit to LabKey/wnprc-modules that referenced this pull request Nov 10, 2026
Fix intermittent WNPRC_EHRTest virology import failures caused by test
timing, which recently showed up as a new failure on an unrelated
feature branch. The tests picked files by their position in a list whose
order varied between runs, and checked for import results and error
messages before the asynchronous import request had returned.

- LabKey/platform#8286
- LabKey/tnprcEHRModules#455
- LabKey/testAutomation#3274

- Sort the import dialog's file list so its order is stable
- Select virology files by name rather than by position
- Wait for the import to finish before submitting, and for error
messages instead of expecting them right away
- Close the preview popup only after its check passes, so failure
screenshots capture it

- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - test fix

(cherry picked from commit 9986ee4)
labkey-tchad pushed a commit that referenced this pull request Nov 10, 2026
## Rationale
Destroying an Ext4 combo while it still has deferred work pending throws
a client-side error, because Ext 4.2.1 nulls the combo's store on
destroy but lets its delayed type-ahead, delayed query, and remote load
callback run afterward. Any combo can hit this; the EHR Apply Template
window does when Submit is clicked right after picking a template, which
made TNPRC_RequestsTest fail intermittently. Fixing it in the shared
Ext4 patches covers every combo, including the duplicated ONPRC template
window, instead of patching one window.

## Related Pull Requests
- LabKey/tnprcEHRModules#455
- LabKey/wnprc-modules#1072
- LabKey/testAutomation#3274

## Changes
- Skip a combo's delayed type-ahead, delayed query, and query completion
once the combo has been destroyed

## Tasks
- [x] Claude Code Review
- [x] Manual Testing - N/A
- [x] Test Automation - N/A - this is a test fix

(cherry picked from commit cb67456)
labkey-tchad added a commit that referenced this pull request Nov 12, 2026
…uration errors (#8316)

- Cancel an Ext4 combo box's pending query and type-ahead when it's destroyed, and ignore a remote query that completes afterward (refines develop's #8286; merges forward)
- The authentication configuration dialog clears stale errors whensettings are applied again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants