Skip to content

Commit

Permalink
Remove LanguageForgeProxy class entirely
Browse files Browse the repository at this point in the history
Now that the MongoConnection knows how to update role views and user
views, this is no longer needed at all.
  • Loading branch information
rmunn committed Dec 7, 2021
1 parent 1c15408 commit f51090c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 240 deletions.

This file was deleted.

30 changes: 0 additions & 30 deletions src/LfMerge.Core.Tests/LanguageForgeProxyMock.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,15 @@ public bool CreateCustomFieldsConfigViews(ILfProject project, Dictionary<string,
return CreateCustomFieldsConfigViews(project, lfCustomFieldList, lfCustomFieldTypes, false);
}

// TODO: Get rid of isTest bool
public bool CreateCustomFieldsConfigViews(ILfProject project, Dictionary<string, LfConfigFieldBase> lfCustomFieldList, Dictionary<string, string> lfCustomFieldTypes, bool isTest)
{
var customFieldSpecs = new List<CustomFieldSpec>();
foreach (string lfCustomFieldName in lfCustomFieldList.Keys)
{
customFieldSpecs.Add(new CustomFieldSpec(lfCustomFieldName, lfCustomFieldTypes[lfCustomFieldName]));
}

var lfproxy = MainClass.Container.Resolve<ILanguageForgeProxy>();
string output = lfproxy.UpdateCustomFieldViews(project.ProjectCode, customFieldSpecs, isTest);

if (string.IsNullOrEmpty(output) || output == "false")
return false;
// TODO: This no longer needs to return a bool
return true;
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/LfMerge.Core/MainClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ internal static ContainerBuilder RegisterTypes()
containerBuilder.RegisterType<MongoProjectRecordFactory>().AsSelf();
containerBuilder.RegisterType<EntryCounts>().AsSelf();
containerBuilder.RegisterType<SyslogProgress>().As<IProgress>();
containerBuilder.RegisterType<LanguageForgeProxy>().As<ILanguageForgeProxy>();
Action.Register(containerBuilder);
Queue.Register(containerBuilder);
return containerBuilder;
Expand Down

0 comments on commit f51090c

Please sign in to comment.