Skip to content

Conversation

@soininen
Copy link
Contributor

@soininen soininen commented Nov 19, 2025

This fixes two issues in Database editor when more than one database is open in a single tab:

  • All databases can get fully fetched.
  • Closing the editor does not hang for eternity anymore.

Fixes #3151,#3221

Checklist before merging

  • Documentation is up-to-date
  • Release notes have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black & isort
  • Unit tests pass

Fetch parents must be marked as fetched when
1. The datbase is fully fetched
2. There are no external commits
3. The mapping has been iterated through

This fixes a situation where busy and forever unfetched fetch parents
would block the closing of a DB in DB worker.

Re #3221
@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.04%. Comparing base (2cd7334) to head (2de35b7).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3222      +/-   ##
==========================================
- Coverage   69.05%   69.04%   -0.01%     
==========================================
  Files         199      199              
  Lines       38643    38642       -1     
  Branches     4633     4632       -1     
==========================================
- Hits        26683    26682       -1     
  Misses      10651    10651              
  Partials     1309     1309              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@soininen soininen merged commit 057dc17 into master Nov 19, 2025
19 checks passed
@soininen soininen deleted the 3221_fix_double_db_endless_loop branch November 19, 2025 11:06
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.

FetchParent's fetched flag should be per-database

2 participants