Skip to content

Pin swagger to pre-virtualization removal - #429

Open
JohemianKnapsody wants to merge 5 commits into
mainfrom
pin-swagger
Open

JohemianKnapsody wants to merge 5 commits into
mainfrom
pin-swagger

Conversation

@JohemianKnapsody

@JohemianKnapsody JohemianKnapsody commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Swagger UI 5.33 introduced virtualization, which prevents the browser's built-in Ctrl+F (find) feature from searching endpoints that aren't currently rendered (only slightly off the current screen view). See: swagger-api/swagger-ui#11056

OFM-Feature-Branch: v3

Closes #427

This MR contains the following

AI Contributions

AI has been used as part of this pull request to:

  • Assist in debugging or research (no need to include in commit messages):
    • used to find the swagger documentation on how to enable this feature

AI tools used as part of this pull request were:

  • ChatGPT 6
  • This Pull Request description has been written by a human.
  • Any AI-generated code or documentation has been fully reviewed by a human (the PR creator).
  • Any AI-generated code or documentation is disclosed in commit messages.
  • I (the pull request creator) have the authority to release this contribution under the project's license (MIT).

If your AI use is not documented in commit messages, please rewrite your commit messages to include this. If that's impossible, leave the checkbox empty: whoever merges this should include an AI use statement in the merge commit.

Merge checklist:

  • All new/changed functions have up to date typehints and docstrings.
  • Any changes to the public API have been updated in docs/src/public_api.rst.
  • New or changed features have been added to (or updated in) the conceptual documentation.
  • Any new or updated dependencies have been added to the project configuration (e.g., pyproject.toml).
  • New functionality is fully tested.
  • Any new lines of code not covered by tests have been justified.
  • Either the test-against-ofm-v3 job passes, or test-against-ofm-feature-branch passes.
  • New features have been used in a branch of the OpenFlexure Microscope, which is tested in test-against-ofm-feature-branch.
  • This code has been tested manually against simulated hardware (detail tests in "Before merge").
  • This code has been tested against real hardware (detail tests in "Before merge").

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
100.0%

 passed

████████████████████ 100.0% on changed lines

17 lines changed   0 uncovered   1 file

 📂 1 file changed
  File Coverage Uncovered Lines
🟢 src/labthings_fastapi/server/__init__.py 100.0% —
 📋 Full diff-cover report

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

  • src/labthings_fastapi/server/init.py (100%)

Summary

  • Total: 17 lines
  • Missing: 0 lines
  • Coverage: 100%

🛡️ diff-cover-action

@bprobert97
bprobert97 requested a review from rwb27 November 23, 2026 17:25

@rwb27 rwb27 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.

This looks good to me. I've suggested a tweak to the test for consistency, but otherwise this is a helpful change. We should remember to revert it if they fix the problem.

It would be lovely to build on this to fix #103 in due course.

Comment thread tests/test_server.py Resolved
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>

This branch has not been deployed

No deployments
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.

Swagger page uses virtualization, so can't Ctrl F

2 participants