Skip to content
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

task/fix develop merge issues #1617

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5a673a5
Bump Terminal.Gui from 1.13.1 to 1.13.4
dependabot[bot] Jul 20, 2023
bc3ddb7
Merge pull request #1582 from HicServices/dependabot/nuget/develop/Te…
dependabot[bot] Jul 20, 2023
fc20021
Bump Terminal.Gui from 1.13.4 to 1.13.5
dependabot[bot] Jul 27, 2023
3185ef2
Merge pull request #1584 from HicServices/dependabot/nuget/develop/Te…
dependabot[bot] Jul 28, 2023
4c5fec3
Bump svenstaro/upload-release-action from 2.6.1 to 2.7.0
dependabot[bot] Jul 31, 2023
da59448
Merge pull request #1585 from HicServices/dependabot/github_actions/s…
dependabot[bot] Jul 31, 2023
a10e7d2
Bump NLog from 5.2.2 to 5.2.3
dependabot[bot] Aug 7, 2023
ebbde52
Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0
dependabot[bot] Aug 7, 2023
858c14e
Merge pull request #1588 from HicServices/dependabot/nuget/develop/Mi…
dependabot[bot] Aug 7, 2023
e0c2e44
Merge pull request #1587 from HicServices/dependabot/nuget/develop/NL…
dependabot[bot] Aug 7, 2023
a9b3318
Feature/whitespaceetc (#1583)
jas88 Aug 8, 2023
d6b78aa
Bump Moq from 4.18.4 to 4.20.1
dependabot[bot] Aug 9, 2023
cc8e300
Bump shogo82148/actions-setup-perl from 1.23.0 to 1.23.1
dependabot[bot] Aug 9, 2023
243b5d9
Feature/rdmp 13 removable default logging server (#1589)
JFriel Aug 9, 2023
360aaf5
Bump Moq from 4.20.1 to 4.20.2
dependabot[bot] Aug 10, 2023
10e0fed
Add Clear User Settings Functionality (RDMP-7/GH#749) (#1586)
JFriel Aug 11, 2023
fa95b46
Update UserSettings.cs
jas88 Aug 11, 2023
7227879
Bump Moq from 4.20.2 to 4.20.69
dependabot[bot] Aug 14, 2023
1e1078d
Bump actions/setup-node from 3.7.0 to 3.8.0
dependabot[bot] Aug 15, 2023
6043558
Bump YamlDotNet from 13.1.1 to 13.2.0
dependabot[bot] Aug 15, 2023
31b23c1
Bump SixLabors.ImageSharp.Drawing from 1.0.0-beta15 to 1.0.0
dependabot[bot] Aug 15, 2023
61e3aad
Merge pull request #1601 from HicServices/dependabot/github_actions/a…
dependabot[bot] Aug 15, 2023
8e7a8d2
Bump actions/setup-node from 3.8.0 to 3.8.1
dependabot[bot] Aug 18, 2023
6327e9c
Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1
dependabot[bot] Aug 17, 2023
f286cf7
Bump Autoupdater.NET.Official from 1.8.3 to 1.8.4
dependabot[bot] Aug 21, 2023
a8921ab
Redo ProgressLog handling (#1603)
jas88 Aug 21, 2023
60f7a6b
Bump VPKSoft.ScintillaLexers.NET from 1.1.15 to 1.1.16
dependabot[bot] Aug 25, 2023
763cdb1
Update LoadDirectory.cs
jas88 Aug 28, 2023
b750d40
Feature/rdmp 18 remove moq (#1602)
JFriel Aug 28, 2023
e0a5af6
Feature/RDMP-28 Add BeginLoadData & EndLoadData to Datatables (#1598)
JFriel Aug 28, 2023
ea0bc63
RDMP-16 Add Max Message Length Check to Logging Notifications (#1595)
JFriel Aug 28, 2023
e5e8e75
Bump YamlDotNet from 13.2.0 to 13.3.1 (#1611)
dependabot[bot] Aug 29, 2023
6c7e04e
Bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2
dependabot[bot] Aug 30, 2023
bdf55e6
Bump SixLabors.ImageSharp from 3.0.1 to 3.0.2 (#1616)
dependabot[bot] Aug 31, 2023
c883687
Bump Terminal.Gui from 1.13.5 to 1.14.0 (#1615)
dependabot[bot] Aug 31, 2023
094afda
Merge branch 'develop' of https://github.com/HicServices/RDMP into ta…
JFriel Sep 1, 2023
3cba85c
fix up packages
JFriel Sep 1, 2023
680448c
fix up codeql
JFriel Sep 1, 2023
883bc3c
tidy up from merge
JFriel Sep 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nuget/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

<packages>
<package id="NUnit.Console" version="3.9.0" />
<package id="NUnit.ConsoleRunner" version="3.9.0" />
Expand Down
16 changes: 16 additions & 0 deletions Application/ResearchDataManagementPlatform/RDMP.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>ResearchDataManagementPlatform</id>
<version>$version$</version>
<authors>Health Informatics Service, University of Dundee</authors>
<description>Research Data Management Platform</description>
</metadata>
<files>
<file src="bin\$configuration$\net6.0-windows\win-x64\*" target="lib\net6.0-windows7.0" />
<file src="bin\$configuration$\net6.0-windows\win-x64\Curation\**\*" target="lib\net6.0-windows7.0" />
<file src="bin\$configuration$\net6.0-windows\win-x64\Icon\**\*" target="lib\net6.0-windows7.0" />
<file src="bin\$configuration$\net6.0-windows\win-x64\WindowManagement\**\*" target="lib\net6.0-windows7.0" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void GatherAndShare_Plugin_Test()
$"Imaginary1{PackPluginRunner.PluginPackageSuffix}"));
File.WriteAllBytes(f1.FullName, new byte[] { 0x1, 0x2 });

var plugin = new Plugin(CatalogueRepository, new FileInfo(
var plugin = new Rdmp.Core.Curation.Data.Plugin(CatalogueRepository, new FileInfo(
$"Imaginary{PackPluginRunner.PluginPackageSuffix}"), new Version(1, 1, 1), new Version(1, 1, 1));
var lma1 = new LoadModuleAssembly(CatalogueRepository, f1, plugin);

Expand Down
4 changes: 2 additions & 2 deletions Rdmp.Core.Tests/Curation/ImportTests/PluginClassTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void TestPlugin_OrphanImport_Sharing()
$"Blah3.{PackPluginRunner.PluginPackageSuffix}"));
File.WriteAllBytes(fi3.FullName, new byte[] { 0x3, 0x4 });

var p = new Plugin(Repository, fi, new Version(1, 1, 1), new Version(1, 1, 1, 1));
var p = new Rdmp.Core.Curation.Data.Plugin(Repository, fi, new Version(1, 1, 1), new Version(1, 1, 1, 1));
var lma = new LoadModuleAssembly(Repository, fi2, p);
var lma2 = new LoadModuleAssembly(Repository, fi3, p);

Expand Down Expand Up @@ -116,7 +116,7 @@ public void TestPlugin_OrphanImport_Sharing()
[TestCase("Rdmp.Dicom", "Rdmp.Dicom")]
public void Test_Plugin_ShortName(string fullname, string expected)
{
var p = WhenIHaveA<Plugin>();
var p = WhenIHaveA<Rdmp.Core.Curation.Data.Plugin>();
p.Name = fullname;
Assert.AreEqual(expected, p.GetShortName());
}
Expand Down
4 changes: 0 additions & 4 deletions Rdmp.Core.Tests/DataExport/DataAccess/SelectedColumnsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ public void CreateAndAssociateColumns()
try
{
_ = new SelectedDataSets(DataExportRepository, config, ds, null);

var cols = config.GetAllExtractableColumnsFor(ds);

Assert.AreEqual(1, cols.Length);
Assert.AreEqual(extractableColumn, cols.Single());

cols = config.GetAllExtractableColumnsFor(ds);

Assert.AreEqual(1, cols.Length);
Expand Down
2 changes: 1 addition & 1 deletion Rdmp.Core.Tests/Rdmp.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ private DataTable GetDataTable(IDataLoadEventListener listener)
throw new Exception(
"CohortIdentificationCriteria execution resulted in an empty dataset (there were no cohorts matched by the query?)");

var dt = execution.Identifiers;
DataTable dt = execution.Identifiers;
dt.BeginLoadData();
foreach (DataColumn column in dt.Columns)
column.ReadOnly = false;

dt.EndLoadData();
return dt;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private DataTable GetDataTable(int timeout, int? topX)

var colName = _extractionInformation.GetRuntimeName();

var dt = new DataTable();
DataTable dt = new DataTable();
dt.BeginLoadData();
dt.Columns.Add(colName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public override void Execute()
UserSettings.ClearUserSettings();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ private void CreateServers(PlatformDatabaseCreationOptions options)
Console.WriteLine("Successfully configured RAW server");
}


public void CreatePipelines(PlatformDatabaseCreationOptions options)
{
var bulkInsertCsvPipe =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class PlatformDatabaseCreationOptions

[Option('l', "Create Logging Server", Default = true, HelpText = "Create the default logging server in the Catalogue database once created. Is superseeded by 'Skip Pipelines'")]
public bool CreateLoggingServer { get; set; }

[Option('e', "ExampleDatasets", Default = false,
HelpText = "Create example datasets, projects, extraction configurations and cohort queries")]
public bool ExampleDatasets { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ private ColumnInfo GetNewColumnInfoForOld(ColumnInfo col, bool isOptional = fals

var toReturn = FindNewColumnNamed(syntaxHelper, col, col.GetRuntimeName(), isOptional) ??
FindNewColumnNamed(syntaxHelper, col, $"ANO{col.GetRuntimeName()}", isOptional);

if (toReturn == null)
return isOptional
? null
Expand Down
4 changes: 2 additions & 2 deletions Rdmp.Core/Curation/Data/Aggregation/AggregateConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Rdmp.Core.Curation.Data.Aggregation;
/// <para>3. 'Joinable PatientIndex Table' - Produce a patient identifier fact table for joining to other Cohort Aggregates during cohort building (See JoinableCohortAggregateConfiguration)</para>
/// <para>The above labels are informal terms. Use IsCohortIdentificationAggregate and IsJoinablePatientIndexTable to determine what type a given
/// AggregateConfiguration is. </para>
///
///
/// <para>If your Aggregate is part of cohort identification (Identifier List or Patient Index Table) then its name will start with cic_X_ where X is the ID of the cohort identification
/// configuration. Depending on the user interface though this might not appear (See ToString implementation).</para>
/// </summary>
Expand Down Expand Up @@ -257,7 +257,7 @@ private static bool IsBasicallyZero(object v) => v == null || v == DBNull.Value
/// When an AggregateConfiguration is used in a cohort identification capacity it can have one or more 'patient index tables' defined e.g.
/// 'Give me all prescriptions for morphine' (Prescribing) 'within 6 months of patient being discharged from hospital' (SMR01). In this case
/// a join is done against the secondary dataset.
///
///
/// <para>This property returns all such 'patient index table' AggregateConfigurations which are currently being used by this AggregateConfiguration
/// for building its join.</para>
/// </summary>
Expand Down
15 changes: 11 additions & 4 deletions Rdmp.Core/Curation/Data/Catalogue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,17 @@ public int? LoadMetadata_ID

/// <inheritdoc/>
[NoMappingToDatabase]
public ExternalDatabaseServer LiveLoggingServer =>
LiveLoggingServer_ID == null
? null
: Repository.GetObjectByID<ExternalDatabaseServer>((int)LiveLoggingServer_ID);
public ExternalDatabaseServer LiveLoggingServer {
get{
if(LiveLoggingServer_ID != null){
ExternalDatabaseServer[] dbs = Repository.GetAllObjectsWhere<ExternalDatabaseServer>("id",(int)LiveLoggingServer_ID);
if(dbs.Length > 0){
return dbs.First();
}
}
return null;
}
}

/// <inheritdoc/>
[NoMappingToDatabase]
Expand Down
1 change: 0 additions & 1 deletion Rdmp.Core/Curation/Data/DataLoad/ProcessTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ public IArgument[] CreateArgumentsForClassIfNotExists(Type t) =>
//convert the result back from generic to specific (us)
.ToArray();


/// <inheritdoc/>
public IArgument[] CreateArgumentsForClassIfNotExists<T>() => CreateArgumentsForClassIfNotExists(typeof(T));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ public DeployedExtractionFilterParameter ShallowClone(DeployedExtractionFilter i
CopyShallowValuesTo(clone);
return clone;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void Validate(DataTable dt, string validationColumnToPopulateIfAny)
{
if (!_initialized)
Initialize(dt);

dt.BeginLoadData();
foreach (DataRow r in dt.Rows)
{
//additive validation results, Results is a class that wraps DictionaryOfFailure which is an array of columns and each element is another array of consequences (with a row count for each consequence)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ public MigrateStagingToLive(HICDatabaseConfiguration databaseConfiguration,
HICLoadConfigurationFlags loadConfigurationFlags)
{
_databaseConfiguration = databaseConfiguration;

Description = "Migrate Staging to Live";
SkipComponent = !loadConfigurationFlags.DoMigrateFromStagingToLive;
}

public override ExitCodeType Run(IDataLoadJob job, GracefulCancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private void MigrateExistingData(Func<string, bool> shouldApplySql, DbConnection
throw new Exception("User decided not to perform update on table");
cmdUpdateMainTable.ExecuteNonQuery();
}
finally
finally
{
//always drop the temp anomap
using var dropMappingTable = DatabaseCommandHelper.GetCommand("DROP TABLE TempANOMap", con);
Expand Down
2 changes: 0 additions & 2 deletions Rdmp.Core/DataLoad/Engine/Pipeline/Components/CleanStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public DataTable ProcessPipelineData(DataTable toProcess, IDataLoadEventListener
GracefulCancellationToken cancellationToken)
{
timer.Start();

StartAgain:
foreach (DataRow row in toProcess.Rows)
{
Expand Down Expand Up @@ -85,7 +84,6 @@ public DataTable ProcessPipelineData(DataTable toProcess, IDataLoadEventListener
job.OnProgress(this,
new ProgressEventArgs(_taskDescription, new ProgressMeasurement(_rowsProcessed, ProgressType.Records),
timer.Elapsed));

return toProcess;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public FixedWidthFormatFile(FileInfo pathToFormatFile)
public DataTable GetDataTableFromFlatFile(FileInfo f)
{
//setup the table
var toReturn = new DataTable();
DataTable toReturn = new DataTable();

toReturn.BeginLoadData();
foreach (var fixedWidthColumn in FormatColumns)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public DataTable ProcessPipelineData(DataTable toProcess, IDataLoadEventListener
throw new Exception(
$"Cohort only contains {chosen.Count} unique identifiers. This is less than the requested sample size of {SampleSize} and {nameof(FailIfNotEnoughIdentifiers)} is true");

var dtToReturn = new DataTable();
DataTable dtToReturn = new DataTable();
dtToReturn.BeginLoadData();
dtToReturn.Columns.Add(expectedFieldName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void Check(ICheckNotifier notifier)

private DataTable GenerateTransposedTable(DataTable inputTable)
{
var outputTable = new DataTable();
DataTable outputTable = new DataTable();
outputTable.BeginLoadData();
// Add columns by looping rows

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public DataTable GetAllData(ISheet worksheet, IDataLoadEventListener listener)
{
var toReturn = new DataTable();
toReturn.BeginLoadData();

var rowEnumerator = worksheet.GetRowEnumerator();
var nColumns = -1;

Expand Down Expand Up @@ -188,7 +187,6 @@ public DataTable GetAllData(ISheet worksheet, IDataLoadEventListener listener)
if (!gotAtLeastOneGoodValue)
toReturn.Rows.Remove(r);
}

return toReturn;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ public DataTable StronglyTypeTable(DataTable workingTable, ExplicitTypingCollect
foreach (DataRow row in workingTable.Rows)
dtCloned.Rows.Add(row.ItemArray.Select((v, idx) =>
deciders.TryGetValue(idx, out var decider) && v is string s ? decider.Parse(s) : v).ToArray());

return dtCloned;
}

Expand Down
3 changes: 1 addition & 2 deletions Rdmp.Core/DataLoad/Modules/FileOperations/FileUnzipper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,34 @@

public ExitCodeType Fetch(IDataLoadJob job, GracefulCancellationToken cancellationToken)
{
foreach (var fileInfo in job.LoadDirectory.ForLoading.GetFiles("*.zip"))
{
foreach (var fileInfo in job.LoadDirectory.ForLoading.GetFiles("*.zip")){
//do it as regex rather than in GetFiles above because that method probably doesn't do regex
if (ZipArchivePattern != null && !string.IsNullOrWhiteSpace(ZipArchivePattern.ToString()) &&
!ZipArchivePattern.IsMatch(fileInfo.Name)) continue;
using var zipFile = ZipFile.Open(fileInfo.FullName, ZipArchiveMode.Read);
//fire event telling user we found some files in the zip file
job.OnNotify(this, new NotifyEventArgs(ProgressEventType.Information, zipFile.Entries.Aggregate(
"Identified the following zip entries:", (s, n) =>
$"{n.Name},").TrimEnd(',')));


foreach (var entry in zipFile.Entries)
{
if (entry.Length == 0)
continue;

//if we are matching everything or we are matching on a regex that matches the entry name
if (ZipEntryPattern != null && !string.IsNullOrWhiteSpace(ZipEntryPattern.ToString()) &&
!ZipEntryPattern.IsMatch(entry.Name)) continue;
//extract it
var existingFile = job.LoadDirectory.ForLoading.GetFiles(entry.Name).FirstOrDefault();

if (existingFile != null && existingFile.Length == entry.Length)
continue;

UnzipWithEvents(entry, job.LoadDirectory, job);
}
}

Check notice

Code scanning / CodeQL

Missed opportunity to use Where Note

This foreach loop
implicitly filters its target sequence
- consider filtering the sequence explicitly using '.Where(...)'.

return ExitCodeType.Success;
}
Expand Down
4 changes: 3 additions & 1 deletion Rdmp.Core/Logging/DataLoadInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,7 @@ public void LogProgress(ProgressEventType pevent, string Source, string Descript
{
Monitor.Pulse(_logWaiter);
}
lock (_logWaiter)
Monitor.Pulse(_logWaiter);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public virtual Patch GetInitialCreateScriptContents(DiscoveredDatabase db)
{
var sr = new StreamReader(assembly.GetManifestResourceStream(candidates[0]));

var sql = sr.ReadToEnd();
var sql = sr.ReadToEnd();

if (!sql.Contains(Patch.VersionKey))
sql = GetHeader(db.Server.DatabaseType, InitialScriptName, new Version(1, 0, 0)) + sql;
Expand Down
6 changes: 3 additions & 3 deletions Rdmp.Core/Providers/CatalogueChildProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ public class CatalogueChildProvider : ICoreChildProvider

public JoinableCohortAggregateConfigurationUse[] AllJoinableCohortAggregateConfigurationUse { get; private set; }
public AllPluginsNode AllPluginsNode { get; private set; }
public Plugin[] AllPlugins { get; private set; }
public Plugin[] AllCompatiblePlugins { get; private set; }
public Curation.Data.Plugin[] AllPlugins { get; private set; }
public Curation.Data.Plugin[] AllCompatiblePlugins { get; private set; }

public HashSet<StandardPipelineUseCaseNode> PipelineUseCases { get; set; } = new();

Expand Down Expand Up @@ -432,7 +432,7 @@ public CatalogueChildProvider(ICatalogueRepository repository, IChildProvider[]
ReportProgress("After Governance");

AllPluginsNode = new AllPluginsNode();
AllPlugins = GetAllObjects<Plugin>(repository);
AllPlugins = GetAllObjects<Curation.Data.Plugin>(repository);
AllCompatiblePlugins = _catalogueRepository.PluginManager.GetCompatiblePlugins();

AddChildren(AllPluginsNode);
Expand Down
5 changes: 3 additions & 2 deletions Rdmp.Core/Rdmp.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@
<PackageReference Include="Microsoft.XmlSerializer.Generator" Version="7.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.20.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NPOI" Version="2.6.0" />
<PackageReference Include="NLog" Version="5.2.3" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" />
<PackageReference Include="NPOI" Version="2.6.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
Expand All @@ -394,6 +394,7 @@
<PackageReference Include="System.Threading.ThreadPool" Version="4.3.0" />
<PackageReference Include="Terminal.Gui" Version="1.13.5" />
<PackageReference Include="YamlDotNet" Version="13.1.1" />
<PackageReference Include="Xam.Plugins.Settings" Version="3.1.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.XmlSerializer.Generator" Version="7.0.0" />
Expand Down
4 changes: 2 additions & 2 deletions Rdmp.Core/Repositories/CatalogueRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using Rdmp.Core.Repositories.Managers;
using Rdmp.Core.ReusableLibraryCode;
using Rdmp.Core.ReusableLibraryCode.Comments;

namespace Rdmp.Core.Repositories;

/// <inheritdoc cref="ICatalogueRepository"/>
Expand Down Expand Up @@ -96,7 +96,7 @@ public CatalogueRepository(DbConnectionStringBuilder catalogueConnectionString)
Constructors.Add(typeof(StandardRegex), (rep, r) => new StandardRegex((ICatalogueRepository)rep, r));
Constructors.Add(typeof(AnyTableSqlParameter),
(rep, r) => new AnyTableSqlParameter((ICatalogueRepository)rep, r));
Constructors.Add(typeof(Plugin), (rep, r) => new Plugin((ICatalogueRepository)rep, r));
Constructors.Add(typeof(Curation.Data.Plugin), (rep, r) => new Curation.Data.Plugin((ICatalogueRepository)rep, r));
Constructors.Add(typeof(ANOTable), (rep, r) => new ANOTable((ICatalogueRepository)rep, r));
Constructors.Add(typeof(AggregateConfiguration),
(rep, r) => new AggregateConfiguration((ICatalogueRepository)rep, r));
Expand Down
1 change: 0 additions & 1 deletion Rdmp.Core/Repositories/MEF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public static string GetCSharpNameForType(Type t)
if (t.GenericTypeArguments.Length != 1)
throw new NotSupportedException(
"Generic type has more than 1 token (e.g. T1,T2) so no idea what MEF would call it");

var genericTypeName = t.GetGenericTypeDefinition().Name;

Debug.Assert(genericTypeName.EndsWith("`1", StringComparison.Ordinal));
Expand Down
2 changes: 1 addition & 1 deletion Rdmp.Core/Repositories/Managers/IPluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ namespace Rdmp.Core.Repositories.Managers;
/// </summary>
public interface IPluginManager
{
Plugin[] GetCompatiblePlugins();
Curation.Data.Plugin[] GetCompatiblePlugins();
}
4 changes: 2 additions & 2 deletions Rdmp.Core/Repositories/YamlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void LoadObjects()
private int ObjectDependencyOrder(Type arg)
{
// Load Plugin objects before dependent children
if (arg == typeof(Plugin))
if (arg == typeof(Curation.Data.Plugin))
return 1;

return arg == typeof(LoadModuleAssembly) ? 2 : 3;
Expand Down Expand Up @@ -196,7 +196,7 @@ private string GetNupkgPath(LoadModuleAssembly lma)
var path = Path.GetDirectoryName(GetPath(lma));

//somedir/LoadModuleAssembly/MyPlugin1.0.0.nupkg
return Path.Combine(path, GetObjectByID<Plugin>(lma.Plugin_ID).Name);
return Path.Combine(path, GetObjectByID<Curation.Data.Plugin>(lma.Plugin_ID).Name);
}

public override void DeleteFromDatabase(IMapsDirectlyToDatabaseTable oTableWrapperObject)
Expand Down
Loading
Loading