Skip to content

Fix/738 scraper viewmodel dbcontext lifetime#740

Merged
astar-development-jb merged 3 commits into
mainfrom
fix/738-scraper-viewmodel-dbcontext-lifetime
Jul 12, 2026
Merged

Fix/738 scraper viewmodel dbcontext lifetime#740
astar-development-jb merged 3 commits into
mainfrom
fix/738-scraper-viewmodel-dbcontext-lifetime

Conversation

@jbarden

@jbarden jbarden commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolve ScrapeConfigurationViewModel holds a long-lived DbContext and skips CancellationToken propagation

Type of change

  • Feature
  • Bug fix
  • Refactor
  • CI/CD
  • Documentation
  • Maintenance

Related issues / links

Closes #768

How was this tested?

  • Unit tests added/updated
  • Manual validation
  • Not applicable

Impacted areas

Scrapper app


TDD Checklist (required)

  • Builds locally
  • Tests pass (dotnet test)
  • No new analyzer warnings
  • Public API changes reviewed
  • Documentation updated (if applicable)
  • Not applicable

How to run tests locally

# Restore and run tests
dotnet restore AStar.Dev.slnx
dotnet test --verbosity normal

Notes for reviewers

  • Ensure CI passed for all OS runners where configured.

jbarden added 3 commits July 12, 2026 05:53
…actor

- Tests expect LoadAsync/SaveAsync to accept CancellationToken
- Tests expect methods to return Result<Unit, ScrapeError>
- Tests verify per-operation DbContext usage
- Tests verify token propagation
- Tests verify manager.ReloadAsync is called
@jbarden
jbarden requested a review from a team July 12, 2026 05:12
@astar-development-jb
astar-development-jb enabled auto-merge (squash) July 12, 2026 05:13
@github-actions

Copy link
Copy Markdown

Test results

3 188 tests  +12   3 187 ✅ +12   2m 10s ⏱️ -11s
   13 suites ± 0       1 💤 ± 0 
   13 files   ± 0       0 ❌ ± 0 

Results for commit 2b1caac. ± Comparison against base commit 244c88b.

@astar-development-jb
astar-development-jb merged commit 2d05dc8 into main Jul 12, 2026
7 checks passed
@astar-development-jb
astar-development-jb deleted the fix/738-scraper-viewmodel-dbcontext-lifetime branch July 12, 2026 05:17
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