Skip to content

[4.x] Add Tenancy::reinitialize() method#1449

Merged
stancl merged 1 commit intomasterfrom
push-nxxkkynrkonp
Apr 8, 2026
Merged

[4.x] Add Tenancy::reinitialize() method#1449
stancl merged 1 commit intomasterfrom
push-nxxkkynrkonp

Conversation

@stancl
Copy link
Copy Markdown
Member

@stancl stancl commented Apr 3, 2026

Some bootstrappers read attributes of the tenant during bootstrap() but don't respond to changes made to the tenant afterwards.

Therefore, when making changes to the tenant that'd affect the behavior of a bootstrapper, it's necessary to reinitialize tenancy (if it matters that changes are reflected immediately). This adds a convenience helper for that purpose.

@stancl stancl force-pushed the push-nxxkkynrkonp branch from deb993f to 51ac200 Compare April 3, 2026 08:57
Some bootstrappers read attributes of the tenant during bootstrap()
but don't respond to changes made to the tenant afterwards.

Therefore, when making changes to the tenant that'd affect the behavior
of a bootstrapper, it's necessary to reinitialize tenancy (if it matters
that changes are reflected immediately). This adds a convenience helper
for that purpose.
@stancl stancl force-pushed the push-nxxkkynrkonp branch from 51ac200 to d8c7153 Compare April 3, 2026 08:58
@stancl stancl changed the title Add Tenancy::reinitialize() method [4.x] Add Tenancy::reinitialize() method Apr 3, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.08%. Comparing base (fb654e7) to head (d8c7153).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1449      +/-   ##
============================================
+ Coverage     86.05%   86.08%   +0.02%     
- Complexity     1152     1154       +2     
============================================
  Files           184      184              
  Lines          3371     3377       +6     
============================================
+ Hits           2901     2907       +6     
  Misses          470      470              

☔ 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.

@stancl stancl merged commit 60dd522 into master Apr 8, 2026
17 of 21 checks passed
@stancl stancl deleted the push-nxxkkynrkonp branch April 8, 2026 17:21
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.

1 participant