-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
Add none generic service middleware registration methods in Autofac #1417
Conversation
These changes introduce new methods to register service middleware in the Autofac library. Also, a new test has been added to Autofac.Specification.Test to ensure that the middleware is getting invoked correctly when a service is registered. These methods allow for more precise control of the pipeline during the resolve request process.
Hi @idiotsky, can you please elaborate on the purpose of these new methods? What issue are you trying to address? Typically we'd raise an issue to discuss a feature request or bug before we open a PR. |
Ah, ok, this is for #1416. |
does my change broken the build, on my side all the test passed? looks the unit test failed not related to my code |
I mean, this isn't a question I can answer off the top of my head, it's just what we see:
Unclear if it's due to a problem in the test or something in this PR or what. But that's what I see - the same thing as you. I kicked off the build again to see if it consistently fails. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1417 +/- ##
===========================================
- Coverage 78.52% 78.51% -0.02%
===========================================
Files 200 200
Lines 5713 5719 +6
Branches 1168 1168
===========================================
+ Hits 4486 4490 +4
- Misses 714 716 +2
Partials 513 513 ☔ View full report in Codecov by Sentry. |
Build seems to be passing now, but it appears the coverage is unhappy. I haven't gotten around to reviewing this yet (but it looks like it's reasonable); I did see there was one unit test added to the Here's what I'd say:
That should take care of the coverage issue and give us a place where we can put additional tests as needed. |
It looks like this has been sitting for a while. My understanding of the status:
We'd love to get this into a new release, but it does need a little more work. If we don't hear back in, say, a month? By end of October 2024? Then we'll close it and not integrate it. |
Since we haven't heard anything and we're in December 2024 now, I'm going to close this. |
I simply copied the three old RegisterServiceMiddleware overload methods and made the generic TService a parameter called serviceType. I ran the code coverage locally because this method doesn't have any existing tests or code coverage, and as a result, the related methods also lack code coverage. Could you please add code coverage for this method so I can add tests as well?
|
I get that, but we have a couple of problems:
So, no, I can't really commit to going in here and adding coverage for existing stuff. I'm sorry, I don't mean that to be harsh, but I have to set expectations. I'm not going to get around to it. There are already a few other PRs I'm trying to get through on other integrations and given the slow feedback here it's not something I can sink time into. If you want these extensions, submit a new PR with the coverage satisfied. Again, sorry, there just aren't enough people to help do it for you. |
These changes introduce new methods to register service middleware in the Autofac library. Also, a new test has been added to Autofac.Specification.Test to ensure that the middleware is getting invoked correctly when a service is registered. These methods allow for more precise control of the pipeline during the resolve request process.