Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(database.eloquent): Add tenant child model functionality #32

Merged
merged 21 commits into from
Sep 24, 2024

Conversation

ollieread
Copy link
Member

Add functionality to support tenant child models, from relationship handlers, to automating query context.

@ollieread ollieread added the type: feat New feature label Sep 10, 2024
@ollieread ollieread self-assigned this Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 98.19277% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.41%. Comparing base (b60b395) to head (d34b3dc).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/TenancyOptions.php 75.00% 2 Missing ⚠️
src/Support/DefaultTenancy.php 90.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #32      +/-   ##
============================================
+ Coverage     85.68%   89.41%   +3.72%     
- Complexity      208      272      +64     
============================================
  Files            30       41      +11     
  Lines           573      737     +164     
============================================
+ Hits            491      659     +168     
+ Misses           82       78       -4     

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

@ollieread ollieread marked this pull request as ready for review September 23, 2024 21:01
@ollieread ollieread merged commit 777265f into main Sep 24, 2024
4 checks passed
@ollieread ollieread deleted the feat/single-database branch September 24, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feat New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tenant Relationship Handling Automated Query Scoping Tenant Aware Eloquent Models
1 participant