Skip to content

Apply source scope by default in any loader#191

Open
tntrex wants to merge 4 commits intocycle:1.xfrom
tntrex:apply-source-scope-by-default-in-any-loader
Open

Apply source scope by default in any loader#191
tntrex wants to merge 4 commits intocycle:1.xfrom
tntrex:apply-source-scope-by-default-in-any-loader

Conversation

@tntrex
Copy link
Copy Markdown
Contributor

@tntrex tntrex commented Jun 21, 2021

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 21, 2021

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.39%. Comparing base (fc7ead8) to head (55d7978).
⚠️ Report is 25 commits behind head on 1.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                1.x     #191      +/-   ##
============================================
- Coverage     94.48%   94.39%   -0.10%     
+ Complexity      937      936       -1     
============================================
  Files            81       81              
  Lines          2413     2409       -4     
============================================
- Hits           2280     2274       -6     
- Misses          133      135       +2     

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

@roxblnfk roxblnfk self-requested a review June 21, 2021 16:10
@wolfy-j
Copy link
Copy Markdown
Contributor

wolfy-j commented Jun 22, 2021

Please explain what usecase is covered by this change?

https://github.com/cycle/orm/blob/master/src/Factory.php#L177 Scopes were attached by default at source level - so all repositories were reading them correctly. Select was created without a scope on purpose.

@tntrex
Copy link
Copy Markdown
Contributor Author

tntrex commented Jun 22, 2021

Please explain what usecase is covered by this change?

I thought this more clear way to define scope on any loader, not just joinable. May be I get it wrong, but what is the purpose to not attach scope to select?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants