Conversation
Codecov Report
@@ Coverage Diff @@
## master #1931 +/- ##
=========================================
Coverage 95.04% 95.04%
Complexity 1555 1555
=========================================
Files 48 48
Lines 3670 3670
=========================================
Hits 3488 3488
Misses 182 182
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1931 +/- ##
=========================================
Coverage 94.98% 94.98%
Complexity 1565 1565
=========================================
Files 49 49
Lines 3689 3689
=========================================
Hits 3504 3504
Misses 185 185
Continue to review full report at Codecov.
|
|
It's much clearer now 👍 As I written in the comments I'm not sure about one thing in and I have class
I think there should be some extra logic: and or am I overthinking this? |
|
@palmiak You are right! The logic that you described doesn’t work. I added some more tests to cover the different use cases. I think the reason that your use case fails is that in Timber, there’s a somewhat hidden logic that automatically uses a class for a post when it has the same name as the requested post type (as described in #799 (comment)). So when there’s a class It’s also something that might change with object factories, according to @pascalknecht. |
|
@gchtr I fully understand. I think that for now we won't make it any better. Let's wait for @pascalknecht change and then we'll think should what to do next. Great work as always Lukas 👍 |
|
Some tests failed because of some autoloading issue. I submitted #1940 to fix that. |
|
@palmiak Now the tests work! I’d still need an approving review from you to be able to merge this 😉. |
|
I'll try to do this tomorrow or on monday
pt., 8 mar 2019, 21:19 użytkownik Lukas Gächter <notifications@github.com>
napisał:
… @palmiak <https://github.com/palmiak> Now the tests work! I’d still need
an approving review from you to be able to merge this 😉.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1931 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACO-OiSmlmpuOQYICfJCIpT4dDBU8GWtks5vUresgaJpZM4bMY9n>
.
|
|
Could @jarednova or @palmiak approve this pull request so I can finally merge it? 😉 |
palmiak
left a comment
There was a problem hiding this comment.
Everything was ok before. Just forgot the formal approval.
Ticket: #1917
Issue
The documentation for
Term::posts()could need some love. Currently, it’s quite hard what the function accepts without having a very close look at the code.Solution
Add more documentation.
Impact
Everybody happy.
Usage Changes
None.
Considerations
For 2.x, we could still consider to change the 1st and 2nd parameters so that they don’t accept different values (like "either post type or class"). Again, I suggest an arguments array that we also applied in #1845.
Testing
None.