Skip to content

Stop using System.ComponentModel.Composition #2569

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

Merged
merged 2 commits into from
Feb 21, 2019

Conversation

eerhardt
Copy link
Member

Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix #1595
Fix #2422

@codecov
Copy link

codecov bot commented Feb 15, 2019

Codecov Report

Merging #2569 into master will increase coverage by <.01%.
The diff coverage is 85.52%.

@@            Coverage Diff             @@
##           master    #2569      +/-   ##
==========================================
+ Coverage   71.57%   71.58%   +<.01%     
==========================================
  Files         800      802       +2     
  Lines      141789   141835      +46     
  Branches    16107    16113       +6     
==========================================
+ Hits       101488   101526      +38     
- Misses      35851    35859       +8     
  Partials     4450     4450
Flag Coverage Δ
#Debug 71.58% <85.52%> (ø) ⬆️
#production 67.88% <85.07%> (ø) ⬆️
#test 85.73% <88.88%> (-0.01%) ⬇️
Impacted Files Coverage Δ
src/Microsoft.ML.Core/Data/IHostEnvironment.cs 95.12% <ø> (ø) ⬆️
test/Microsoft.ML.FSharp.Tests/SmokeTests.fs 96.07% <ø> (ø) ⬆️
...rc/Microsoft.ML.Data/Utilities/LocalEnvironment.cs 84.48% <ø> (+1.67%) ⬆️
...rc/Microsoft.ML.Transforms/CustomMappingFactory.cs 100% <100%> (ø)
src/Microsoft.ML.Data/MLContext.cs 87.5% <100%> (-0.5%) ⬇️
...t.ML.Core/ComponentModel/ExtensionBaseAttribute.cs 100% <100%> (ø)
...s/Api/CookbookSamples/CookbookSamplesDynamicApi.cs 80.4% <100%> (+0.06%) ⬆️
src/Microsoft.ML.Transforms/LambdaTransform.cs 64.42% <40%> (-2.89%) ⬇️
...rosoft.ML.Tests/Transformers/CustomMappingTests.cs 89.23% <80%> (+0.16%) ⬆️
...crosoft.ML.Core/ComponentModel/ComponentCatalog.cs 67.07% <85.41%> (+1.68%) ⬆️
... and 5 more

Copy link
Contributor

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good @eerhardt, thank you for working on this. My only real major comment is the naming, something shouldn't call itself a transformer factory unless it is a factory that makes transformers, and this definitely is not that. 😄 But aside from that, looks great, thank you.

Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix dotnet#1595
Fix dotnet#2422
@eerhardt
Copy link
Member Author

OK, @TomFinley, I've renamed the classes. Can you take a look?

@Ivanidzo4ka @yaeldekel - can I get a second pair of eyes?

Copy link
Contributor

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good, thank you @eerhardt.

@eerhardt eerhardt requested a review from codemzs February 21, 2019 20:00
Copy link
Contributor

@shauheen shauheen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eerhardt eerhardt merged commit 412e1f9 into dotnet:master Feb 21, 2019
@eerhardt eerhardt deleted the RemoveMEF branch February 21, 2019 22:01
@ghost ghost locked as resolved and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants