Skip to content

chore: remove unnecessary ViewerScopedEntityMutatorFactory#599

Open
wschurman wants to merge 1 commit into
mainfrom
05-13-chore_make_viewercontext_specification_explicit_for_viewerscopedentitymutatorfactory
Open

chore: remove unnecessary ViewerScopedEntityMutatorFactory#599
wschurman wants to merge 1 commit into
mainfrom
05-13-chore_make_viewercontext_specification_explicit_for_viewerscopedentitymutatorfactory

Conversation

@wschurman
Copy link
Copy Markdown
Member

@wschurman wschurman commented May 13, 2026

Why

ViewerScopedEntityMutatorFactory existed to make both the loader and mutator patterns more aligned. But it doesn't make as much sense for mutators since for update and delete, the viewerContext used is the one from the entity being updated/deleted instead of the one for the viewer scoped factory. So, in practice the one from the factory was only being used for create mutations.

The simplest change is to just remove the ViewerScopedEntityMutatorFactory to reduce confusion.

How

Remove class.

Test Plan

CI

Copy link
Copy Markdown
Member Author

wschurman commented May 13, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9dda1bb) to head (0d2eade).

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #599    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          110       109     -1     
  Lines        17694     17607    -87     
  Branches       911      1514   +603     
==========================================
- Hits         17694     17607    -87     
Flag Coverage Δ
integration 28.67% <0.00%> (+0.14%) ⬆️
unittest 94.56% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wschurman wschurman force-pushed the 05-13-chore_make_viewercontext_specification_explicit_for_viewerscopedentitymutatorfactory branch from 181256e to aab4b91 Compare May 13, 2026 17:14
@wschurman wschurman changed the title chore: make viewerContext specification explicit for ViewerScopedEntityMutatorFactory chore: remove unnecessary ViewerScopedEntityMutatorFactory May 13, 2026
@wschurman wschurman force-pushed the 05-13-chore_make_viewercontext_specification_explicit_for_viewerscopedentitymutatorfactory branch from aab4b91 to 0d2eade Compare May 13, 2026 17:20
@wschurman wschurman marked this pull request as ready for review May 13, 2026 17:20
@wschurman wschurman requested review from ide and quinlanj May 14, 2026 21:35
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