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

[FIX] primaryreplica connection init #561

Merged

Conversation

sserbin
Copy link
Contributor

@sserbin sserbin commented Aug 28, 2023

this was accidentally passing the tests
(the configuration was still accepted even though it was just empty and the EM was setup with a non primary read connection but a regular one) which I've also made a fix for to verify the resulting connection is indeed a PrimaryReadReplicaConnection

Changes proposed in this pull request:

  • fix primary read replica connection giving error upon init

this was accidentally passing the tests
(the configuration was still accepted even though it was just empty
and the EM was setup with a non primary read connection but a regular one)
which I've also made a fix for to verify the resulting connection is indeed a PrimaryReadReplicaConnection
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.07% 🎉

Comparison is base (8e6d22e) 66.92% compared to head (e388365) 66.99%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.0     #561      +/-   ##
============================================
+ Coverage     66.92%   66.99%   +0.07%     
  Complexity      564      564              
============================================
  Files            83       83              
  Lines          1808     1809       +1     
============================================
+ Hits           1210     1212       +2     
+ Misses          598      597       -1     
Files Changed Coverage Δ
src/EntityManagerFactory.php 96.05% <100.00%> (+0.51%) ⬆️

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

@eigan eigan merged commit c3f48a9 into laravel-doctrine:2.0 Aug 29, 2023
3 of 6 checks passed
@eigan
Copy link
Member

eigan commented Aug 29, 2023

Thanks!

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.

3 participants