Skip to content

x1555 client - Analyser Scan Errors - #1314

Merged
yoldas merged 3 commits into
develfrom
x1555-analyser-scan-errors
Nov 17, 2026
Merged

yoldas merged 3 commits into
develfrom
x1555-analyser-scan-errors

Conversation

@yoldas

@yoldas yoldas commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Changes proposed in this pull request

A follow-up to client PR #1303 (x1555 client), from the review comment on analyserScan.ts: report core errors when a slide is scanned on Atera Run and Xenium Analyser. x1555 client review [comment] (#1303 (comment))

Before: if core gave an error while the page was getting a scanned slide's details (FindLatestOperation or GetAnalyserScanData), the scanner kept the slide but the page never added it:

  • Nothing showed: no message, no slide and no Remove button.
  • Scanning it again said it had already been scanned, and it took one of the places until the page was reloaded.
  • If another slide was fine, the run could be saved without it.
  • GetAnalyserScanData wasn't awaited, so its errors weren't caught at all (an unhandled promise rejection).

Xenium Analyser in production does the same: #1303 (x1555 client) moved this code unchanged into analyserScan.ts.

Now: the slide is still added, with the reason, where "No probe hybridisation recorded for ..." shows:

  • For example: "Could not get the details of STAN-0615: Core is down. Remove it and scan it again." Core's reason is left out when core gives none, for example on a network failure.
  • It has a Remove button, and can be scanned again after removing it.
  • Save stays disabled while it is on the page, through the rules that already stop a slide without probe hybridisation being saved. On Atera Run, hybridisation must be true. On Xenium Analyser, the cassette position is required, and a slide without details has no panel to set it.

Changes:

  • analyserScan.ts:
    • await on GetAnalyserScanData, so its errors reach the catch.
    • The catch adds the slide with hybridisation: false and a fetchError, instead of returning.
    • Core's reason is read with extractServerErrors only for a ClientError with GraphQL errors, as it throws on anything else.
  • analyser.types.ts: fetchError on AnalyserLabwareForm.
  • Both pages: the warning shows fetchError when it is set.

Not changed:

  • Scanning without errors: the same calls, in the same order.
  • Atera Run: if a slide's details couldn't be fetched, the message next to Save still says, for example, "Remove STAN-0615 to save: no probe hybridisation recorded". The warning above the scanner gives the real reason.
  • Waiting for core: the slide isn't on the page until core answers, so if another slide is there, the run can be saved without it.
    • If core never answers, the slide doesn't appear until the page is reloaded.
    • If the request fails, for example on a timeout, the slide is added with the message.

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

…e reason so it can be removed and scanned again, on Atera Run and Xenium Analyser
@yoldas yoldas changed the title X1555 - Analyser Scan Errors x1555 - Analyser Scan Errors Nov 17, 2026
@yoldas yoldas self-assigned this Nov 17, 2026
@yoldas
yoldas requested a review from sabrine33 November 17, 2026 12:56
…reaches the catch and the slide is shown with the reason
@yoldas
yoldas requested a review from sabrine33 November 17, 2026 14:15
@yoldas
yoldas merged commit dff1734 into devel Nov 17, 2026
8 checks passed
@yoldas
yoldas deleted the x1555-analyser-scan-errors branch November 17, 2026 14:27
@yoldas yoldas mentioned this pull request Nov 17, 2026
2 tasks done
@yoldas yoldas changed the title x1555 - Analyser Scan Errors x1555 client - Analyser Scan Errors Nov 17, 2026
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