Repository navigation
test(ui): a listing told to stop makes no question (#2978) - #3004
jgregoriorincon merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewPR #3004 moves the Add Data listing in Bugs: None found.
Security: None found. No new input handling or external data. Performance: None found. The change adds no copies or work. Quality: Nothing worth an inline comment. AGENTS.md: No breaks found.
Twins checked:
Prior review threads: none exist on this PR, so there were no earlier concerns to leave alone. Limits: The one hop the PR says is untested is Change sizeCompared with the base branch (merge base 36b8e7c to PR head 21853a7).
|
…browser build uses (opengeos#2978)
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Code reviewI read the diff, the base-branch AGENTS.md, and the surrounding code in Bugs: None found.
Security: None found. Performance: None found. The change adds one Quality: None worth an inline comment. The only observations are optional:
AGENTS.md: No breaks found.
Twins checked:
Limits of this review: The PR body says the Prior reviews: Change sizeCompared with
|
Summary
add_file's linealso_stop_when(stopped)(the one that lets Cancel on Add Data's chooser stop its listing, #2827) was pinned by no test:cancel_stops_the_listing_on_its_wayand its sibling build the chooser by hand, so deleting the line kept every test green.The listing moves into two functions
add_filecalls:list_in_background(the thread) andlist_layers(what the thread runs:info.fileLayersunderalso_stop_when). A new test goes throughlist_in_background. No behaviour change.list_in_backgroundtakes the function that starts the thread (aswork_off_frame_withdoes), so the test runs the work where it stands: no thread and no waits, whichtest_hygieneforbids. One hop is not tested: thatadd_filehands its ownstopflag (the one the chooser's Cancel sets) tolist_in_background. It goes through a real thread, so it could only be tested with waits.Testing
layerchooser::tests::a_listing_told_to_stop_makes_no_question: throughlist_in_background, on a GeoPackage of two tables, a flag already set lands the listing with no question made; a flag still clear lands it with one. Withalso_stop_whenremoved fromlist_layersit fails with "stopped: no question made".checks.sh 2978: fmt, clippy, nextest (9651 passed), doctests, layers andschema --checkall exit 0.UI evidence
None: no visible change.
Related issue
Closes #2978.
Summary by CodeRabbit