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

marge develop into main #1890

Merged
merged 58 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
8c51a28
add cron test
JFriel Jul 3, 2024
03ea71f
fix yaml
JFriel Jul 3, 2024
5a69530
fix yaml
JFriel Jul 3, 2024
dfd8435
update spacing
JFriel Jul 3, 2024
1eeb269
use example
JFriel Jul 3, 2024
dae3b76
update cron
JFriel Jul 3, 2024
1b74e4b
update to push
JFriel Jul 3, 2024
35582bd
add 2am cron
JFriel Jul 4, 2024
8135158
update yaml
JFriel Jul 4, 2024
3efba50
use utc
JFriel Jul 4, 2024
77cd11f
Merge branch 'develop' of https://github.com/HicServices/RDMP into bu…
JFriel Jul 4, 2024
2245118
add first update
JFriel Jul 4, 2024
f40a8fe
add populate function
JFriel Jul 4, 2024
e443f36
add changelog
JFriel Jul 4, 2024
79abfd7
update tests
JFriel Jul 5, 2024
5499620
fix test
JFriel Jul 5, 2024
fdff404
attempt to fix test
JFriel Jul 5, 2024
50ae5fb
interim
JFriel Jul 8, 2024
35e0a9d
interim
JFriel Jul 8, 2024
24eef57
add label
JFriel Jul 8, 2024
dbff9b2
add description field
JFriel Jul 8, 2024
0dde639
add vertical scaling
JFriel Jul 8, 2024
4d72012
working UI
JFriel Jul 9, 2024
f5dd969
add tooltips
JFriel Jul 9, 2024
e6d5e86
working ui
JFriel Jul 9, 2024
7e3bab1
add to cignorelist
JFriel Jul 9, 2024
347e992
Merge branch 'develop' of https://github.com/HicServices/RDMP into ta…
JFriel Jul 9, 2024
fbf88c0
Merge branch 'develop' of https://github.com/HicServices/RDMP into ta…
JFriel Jul 9, 2024
178d800
add changelog entry
JFriel Jul 9, 2024
79f87ec
Merge branch 'develop' of https://github.com/HicServices/RDMP into bu…
JFriel Jul 9, 2024
428bfc0
tidy up
JFriel Jul 9, 2024
28d60b4
fix typo
JFriel Jul 10, 2024
309c809
Merge branch 'develop' into tak/RDMP-173-improve-lookup-generator
JFriel Jul 10, 2024
4e87e66
fix codeql
JFriel Jul 10, 2024
997da81
Merge branch 'tak/RDMP-173-improve-lookup-generator' of https://githu…
JFriel Jul 10, 2024
d0df892
Merge branch 'develop' into bugfix/RDMP-188
bpeacock001 Jul 10, 2024
fc572b2
Merge pull request #1869 from HicServices/bugfix/RDMP-188
bpeacock001 Jul 10, 2024
236abbc
Merge branch 'develop' into tak/RDMP-173-improve-lookup-generator
bpeacock001 Jul 10, 2024
187544e
Merge pull request #1876 from HicServices/tak/RDMP-173-improve-lookup…
bpeacock001 Jul 10, 2024
6e5718b
Merge branch 'develop' into task/RDMP-202-improved-load-metadata-api
JFriel Jul 10, 2024
949adc4
Task/rdmp-1 Update Ticketing System (#1870)
JFriel Jul 10, 2024
bf4d0fe
Merge branch 'develop' into task/RDMP-202-improved-load-metadata-api
JFriel Jul 10, 2024
4c4cd21
Merge pull request #1871 from HicServices/task/RDMP-202-improved-load…
rdteviotdale Jul 10, 2024
b8192e6
Bump ObjectListView.Repack.NET6Plus from 2.9.4 to 2.9.5
dependabot[bot] Jul 11, 2024
86dc3de
Bump Terminal.Gui from 1.17.0 to 1.17.1 (#1879)
dependabot[bot] Jul 15, 2024
10755aa
Bump actions/setup-dotnet from 4.0.0 to 4.0.1 (#1875)
dependabot[bot] Jul 15, 2024
5526899
add read onlu to plugins
JFriel Jul 15, 2024
63fa68c
update changelog
JFriel Jul 15, 2024
cf7db57
Merge pull request #1883 from HicServices/bugfix/RDMP-211
bpeacock001 Jul 15, 2024
b46736c
Bugfix/rdmp 210: Improve LoadMetadata directory checking (#1884)
JFriel Jul 16, 2024
dfff919
Bump HIC.FAnsiSql from 3.2.5 to 3.2.6 (#1886)
dependabot[bot] Jul 16, 2024
04bc5fc
Delete directory.build.props (#1887)
jas88 Jul 17, 2024
05111ef
add changelog
JFriel Jul 17, 2024
65e4fd9
Bugfix/rdmp 209 default instance (#1889)
JFriel Jul 17, 2024
ef78e00
Bugfix: Fix overeager PK setting for extraction Identifiers (#1888)
JFriel Jul 17, 2024
e6edaeb
Bump YamlDotNet from 15.3.0 to 16.0.0
dependabot[bot] Jul 17, 2024
b98afdf
Update VersionYamlTypeConverter.cs
jas88 Jul 17, 2024
fc0b70f
Update CHANGELOG.md
JFriel Jul 18, 2024
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
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Build

# Run this workflow every time a new commit pushed to your repository

on: push
on:
push:
schedule:
- cron: '0 1 * * *'

env:
DOTNET_NOLOGO: 1
Expand Down Expand Up @@ -72,7 +75,6 @@ jobs:
files: ./db-ui.lcov ./db-core.lcov
flag-name: unit tests


tests_file_system:
name: Run File System Tests
runs-on: windows-latest
Expand Down Expand Up @@ -145,7 +147,7 @@ jobs:
shell: bash
run: perl -ne "print \"rdmpversion=\$1\n\" if /AssemblyInformationalVersion\(\"([0-9a-z.-]+)\"\)/;" SharedAssemblyInfo.cs >> $GITHUB_OUTPUT
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.0
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 7.0.x
- name: BundleSource
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.0
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 6.0.x
- name: Cache Nuget
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public partial class RDMPTopMenuStripUI : RDMPUserControl

private SaveMenuItem _saveToolStripMenuItem;
private AtomicCommandUIFactory _atomicCommandUIFactory;
private ConnectionStringsYamlFile _connectionStringsFileInUse;

public RDMPTopMenuStripUI()
{
Expand All @@ -87,10 +88,10 @@ private void BuildSwitchInstanceMenuItems()
// somehow app was launched without populating the load args
if (args == null) return;

var origYamlFile = args.ConnectionStringsFileLoaded;
_connectionStringsFileInUse = args.ConnectionStringsFileLoaded;

//default settings were used if no yaml file was specified or the file specified did not exist
var defaultsUsed = origYamlFile == null;
var defaultsUsed = _connectionStringsFileInUse == null;

// if defaults were not used then it is valid to switch to them
switchToDefaultSettings.Enabled = !defaultsUsed;
Expand All @@ -100,11 +101,11 @@ private void BuildSwitchInstanceMenuItems()

// load the yaml files in the RDMP binary directory
var exeDir = UsefulStuff.GetExecutableDirectory();
AddMenuItemsForSwitchingToInstancesInYamlFilesOf(origYamlFile, exeDir);
AddMenuItemsForSwitchingToInstancesInYamlFilesOf(_connectionStringsFileInUse, exeDir);

// also add yaml files from wherever they got their original yaml file
if (origYamlFile?.FileLoaded != null && !exeDir.FullName.Equals(origYamlFile.FileLoaded.Directory?.FullName))
AddMenuItemsForSwitchingToInstancesInYamlFilesOf(origYamlFile, origYamlFile.FileLoaded.Directory);
if (_connectionStringsFileInUse?.FileLoaded != null && !exeDir.FullName.Equals(_connectionStringsFileInUse.FileLoaded.Directory?.FullName))
AddMenuItemsForSwitchingToInstancesInYamlFilesOf(_connectionStringsFileInUse, _connectionStringsFileInUse.FileLoaded.Directory);
}

private void AddMenuItemsForSwitchingToInstancesInYamlFilesOf(ConnectionStringsYamlFile origYamlFile,
Expand Down Expand Up @@ -162,6 +163,16 @@ private void configureExternalServersToolStripMenuItem_Click(object sender, Even
new ExecuteCommandConfigureDefaultServers(Activator).Execute();
}

private void launchDefaultInstance(object sender, EventArgs e)
{
if (_connectionStringsFileInUse != null)
{
var exeName = Path.Combine(UsefulStuff.GetExecutableDirectory().FullName,
Process.GetCurrentProcess().ProcessName);
Process.Start(exeName);
}
}

private void setTicketingSystemToolStripMenuItem_Click(object sender, EventArgs e)
{
var ui = new TicketingSystemConfigurationUI();
Expand Down Expand Up @@ -291,7 +302,7 @@ public void SetWindowManager(WindowManager windowManager)
// Location menu
instancesToolStripMenuItem.DropDownItems.Add(_atomicCommandUIFactory.CreateMenuItem(
new ExecuteCommandChoosePlatformDatabase(Activator.RepositoryLocator)
{ OverrideCommandName = "Change Default Instance" }));
{ OverrideCommandName = "Change Default Instance" }));

Activator.Theme.ApplyTo(menuStrip1);

Expand Down Expand Up @@ -463,7 +474,7 @@ private void navigateForwardToolStripMenuItem_Click(object sender, EventArgs e)
_windowManager.Navigation.Forward(true);
}



private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e)
{
Expand Down
1 change: 0 additions & 1 deletion Application/ResearchDataManagementPlatform/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System;
using System.Runtime.InteropServices;
using CommandLine;
using Rdmp.Core.Logging.PastEvents;
using Rdmp.Core.ReusableLibraryCode;
using Rdmp.Core.ReusableLibraryCode.Checks;
using Rdmp.Core.ReusableLibraryCode.Settings;
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@

# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [8.2.1] - 2024-07-18

- Add Release status options to the ticketing system
- Improve Interface for Lookup table generation
- Add directory validity checking to data loads
- Open plugin files read-only to avoid permissions errors on Linux
- Improve PK mapping for ExtractionIdentifiers when extracting data
- Fix issue with default instance button not launching instance

## [8.2.0] - 2024-07-09

## Changed
Expand Down
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageVersion Include="ExcelNumberFormat" Version="1.1.0"/>
<PackageVersion Include="FluentFTP" Version="50.1.0"/>
<PackageVersion Include="HIC.SynthEHR" Version="2.0.0"/>
<PackageVersion Include="HIC.FAnsiSql" Version="3.2.5"/>
<PackageVersion Include="HIC.FAnsiSql" Version="3.2.6"/>
<PackageVersion Include="LibArchive.Net" Version="0.1.5"/>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -19,15 +19,15 @@
<PackageVersion Include="SixLabors.ImageSharp.Drawing" Version="2.1.3"/>
<PackageVersion Include="Spectre.Console" Version="0.49.1"/>
<PackageVersion Include="SSH.NET" Version="2024.1.0"/>
<PackageVersion Include="Terminal.Gui" Version="1.17.0"/>
<PackageVersion Include="YamlDotNet" Version="15.3.0"/>
<PackageVersion Include="Terminal.Gui" Version="1.17.1"/>
<PackageVersion Include="YamlDotNet" Version="16.0.0"/>
<PackageVersion Include="ConsoleControl" Version="1.3.0"/>
<PackageVersion Include="Autoupdater.NET.Official" Version="1.9.1"/>
<PackageVersion Include="DockPanelSuite.ThemeVS2015" Version="3.1.0"/>
<PackageVersion Include="System.Threading.ThreadPool" Version="4.3.0"/>
<PackageVersion Include="WeCantSpell.Hunspell" Version="5.0.0"/>
<PackageVersion Include="NUnit" Version="4.1.0"/>
<PackageVersion Include="ObjectListView.Repack.NET6Plus" Version="2.9.4"/>
<PackageVersion Include="ObjectListView.Repack.NET6Plus" Version="2.9.5"/>
<PackageVersion Include="Scintilla.NET" Version="5.3.2.9"/>
<PackageVersion Include="System.Resources.Extensions" Version="8.0.0"/>
<PackageVersion Include="VPKSoft.ScintillaLexers.NET" Version="1.1.16"/>
Expand Down
9 changes: 2 additions & 7 deletions Rdmp.Core.Tests/Caching/Integration/CachingHostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,10 @@ public void CacheHostOutwithPermissionWindow()
if (testDir.Exists)
Directory.Delete(testDir.FullName, true);

var loadDirectory = LoadDirectory.CreateDirectoryStructure(testDir, "Test");


var cp = WhenIHaveA<CacheProgress>();
var loadMetadata = cp.LoadProgress.LoadMetadata;
loadMetadata.LocationOfForLoadingDirectory = Path.Combine(loadDirectory.RootPath.FullName , ((LoadMetadata)loadMetadata).DefaultForLoadingPath);
loadMetadata.LocationOfForArchivingDirectory = Path.Combine(loadDirectory.RootPath.FullName , ((LoadMetadata)loadMetadata).DefaultForArchivingPath);
loadMetadata.LocationOfExecutablesDirectory = Path.Combine(loadDirectory.RootPath.FullName , ((LoadMetadata)loadMetadata).DefaultExecutablesPath);
loadMetadata.LocationOfCacheDirectory = Path.Combine(loadDirectory.RootPath.FullName , ((LoadMetadata)loadMetadata).DefaultCachePath);

LoadDirectory.CreateDirectoryStructure(testDir, "Test", false, (LoadMetadata)loadMetadata);

// This feels a bit nasty, but quick and much better than having the test wait for an arbitrary time period.
var listener = new ExpectedNotificationListener("Download not permitted at this time, sleeping for 60 seconds");
Expand Down
9 changes: 2 additions & 7 deletions Rdmp.Core.Tests/Caching/Integration/CustomDateCachingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@ public void FetchMultipleDays_Success(bool singleDay)
pipeline.Destination.Returns(destinationComponent);
pipeline.Repository.Returns(CatalogueRepository);
pipeline.PipelineComponents.Returns(Enumerable.Empty<IPipelineComponent>().OrderBy(o => o).ToList());
var lmd = Substitute.For<ILoadMetadata>();

var projDir =
LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.TestDirectory), "delme",
true);

var lmd = Substitute.For<ILoadMetadata>();
lmd.LocationOfForLoadingDirectory = Path.Combine(projDir.RootPath.FullName , Path.Combine("Data", "ForLoading"));
lmd.LocationOfForArchivingDirectory = Path.Combine(projDir.RootPath.FullName , Path.Combine("Data", "ForArchiving"));
lmd.LocationOfExecutablesDirectory = Path.Combine(projDir.RootPath.FullName ,"Executables");
lmd.LocationOfCacheDirectory = Path.Combine(projDir.RootPath.FullName , Path.Combine("Data", "Cache"));
true, lmd);

var loadProgress = Substitute.For<ILoadProgress>();
loadProgress.OriginDate.Returns(new DateTime(2001, 01, 01));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

using NUnit.Framework;
using Rdmp.Core.CommandExecution.AtomicCommands;
using System;
using System.Linq;
using Rdmp.Core.CommandExecution;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Linq;
using NUnit.Framework;
using Rdmp.Core.CommandExecution;
using Rdmp.Core.CommandExecution.AtomicCommands;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ protected override void SetUp()
_lmd = new LoadMetadata(CatalogueRepository, "Ive got a lovely bunch o' coconuts");
_LoadDirectory =
LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.TestDirectory),
@"EndToEndCacheTest", true);
_lmd.LocationOfForLoadingDirectory = Path.Combine(_LoadDirectory.RootPath.FullName , _lmd.DefaultForLoadingPath);
_lmd.LocationOfForArchivingDirectory = Path.Combine(_LoadDirectory.RootPath.FullName , _lmd.DefaultForArchivingPath);
_lmd.LocationOfExecutablesDirectory = Path.Combine(_LoadDirectory.RootPath.FullName , _lmd.DefaultExecutablesPath);
_lmd.LocationOfCacheDirectory = Path.Combine(_LoadDirectory.RootPath.FullName , _lmd.DefaultCachePath);
@"EndToEndCacheTest", true,_lmd);
_lmd.SaveToDatabase();

Clear(_LoadDirectory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using Tests.Common;
using Tests.Common.Scenarios;
using TypeGuesser;
using System.IO;

namespace Rdmp.Core.Tests.CommandLine.AutomationLoopTests;

Expand Down Expand Up @@ -46,10 +45,7 @@ public void TestDle_DodgyColumnNames(DatabaseType dbType)

var cata = Import(tbl);
var lmd = new LoadMetadata(CatalogueRepository, nameof(TestDle_DodgyColumnNames));
lmd.LocationOfForLoadingDirectory = Path.Combine(LoadDirectory.RootPath.FullName , lmd.DefaultForLoadingPath);
lmd.LocationOfForArchivingDirectory = Path.Combine(LoadDirectory.RootPath.FullName , lmd.DefaultForArchivingPath);
lmd.LocationOfExecutablesDirectory = Path.Combine(LoadDirectory.RootPath.FullName , lmd.DefaultExecutablesPath);
lmd.LocationOfCacheDirectory = Path.Combine(LoadDirectory.RootPath.FullName , lmd.DefaultCachePath);
LoadDirectory.PopulateLoadMetadata(lmd);
lmd.SaveToDatabase();

CreateFlatFileAttacher(lmd, "Troll.csv", cata.GetTableInfoList(false).Single());
Expand Down
1 change: 0 additions & 1 deletion Rdmp.Core.Tests/Curation/Integration/LoadMetadataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System;
using System.IO;
using NUnit.Framework;
using Rdmp.Core.Curation;
using Rdmp.Core.Curation.Data.DataLoad;
using Rdmp.Core.DataLoad.Engine.Checks.Checkers;
using Rdmp.Core.DataLoad.Engine.DatabaseManagement.EntityNaming;
Expand Down
9 changes: 2 additions & 7 deletions Rdmp.Core.Tests/Curation/Integration/LoadProgressUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,10 @@ public void LoadProgress_JobFactory_NoDates()
var stratFactory =
new JobDateGenerationStrategyFactory(new AnyAvailableLoadProgressSelectionStrategy(lp.LoadMetadata));
var strat = stratFactory.Create(lp, ThrowImmediatelyDataLoadEventListener.Quiet);
var lmd = lp.LoadMetadata;

var dir = LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.WorkDirectory),
"LoadProgress_JobFactory_NoDates", true);

var lmd = lp.LoadMetadata;
lmd.LocationOfForLoadingDirectory = Path.Combine(dir.RootPath.FullName , ((LoadMetadata)lmd).DefaultForLoadingPath);
lmd.LocationOfForArchivingDirectory = Path.Combine(dir.RootPath.FullName , ((LoadMetadata)lmd).DefaultForArchivingPath);
lmd.LocationOfExecutablesDirectory = Path.Combine(dir.RootPath.FullName , ((LoadMetadata)lmd).DefaultExecutablesPath);
lmd.LocationOfCacheDirectory = Path.Combine(dir.RootPath.FullName , ((LoadMetadata)lmd).DefaultCachePath);
"LoadProgress_JobFactory_NoDates", true, (LoadMetadata)lmd);

foreach (var cata in lmd.GetAllCatalogues())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void ReExtractToADatabaseWithNoNewData()
var chiColumnInfo = catalogue.CatalogueItems.Where(ci => ci.Name == "chi").First();
var ei = chiColumnInfo.ExtractionInformation;
ei.IsExtractionIdentifier = true;
ei.IsPrimaryKey = true;
ei.SaveToDatabase();
var project = new Project(DataExportRepository, "MyProject")
{
Expand Down Expand Up @@ -312,6 +313,7 @@ public void ReExtractToADatabaseWithNewDataAndNoPKs()
var chiColumnInfo = catalogue.CatalogueItems.Where(ci => ci.Name == "chi").First();
var ei = chiColumnInfo.ExtractionInformation;
ei.IsExtractionIdentifier = true;
ei.IsPrimaryKey = true;
ei.SaveToDatabase();
var project = new Project(DataExportRepository, "MyProject")
{
Expand Down Expand Up @@ -568,6 +570,7 @@ public void ReExtractToADatabaseWithNewDataAndSinglePK()
var chiColumnInfo = catalogue.CatalogueItems.Where(ci => ci.Name == "chi").First();
var ei = chiColumnInfo.ExtractionInformation;
ei.IsExtractionIdentifier = true;
ei.IsPrimaryKey = true;
ei.SaveToDatabase();

var surnameInfo = catalogue.CatalogueItems.Where(ci => ci.Name == "surname").First();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ public void CreateTask()
_dir = new DirectoryInfo(Path.Combine(TestContext.CurrentContext.TestDirectory, "ProcessTaskCheckingTests"));
_dir.Create();

var hicdir = LoadDirectory.CreateDirectoryStructure(_dir, "ProjDir", true);
_lmd.LocationOfForLoadingDirectory = Path.Combine(hicdir.RootPath.FullName, _lmd.DefaultForLoadingPath);
_lmd.LocationOfForArchivingDirectory = Path.Combine(hicdir.RootPath.FullName, _lmd.DefaultForArchivingPath);
_lmd.LocationOfExecutablesDirectory = Path.Combine(hicdir.RootPath.FullName, _lmd.DefaultExecutablesPath);
_lmd.LocationOfCacheDirectory = Path.Combine(hicdir.RootPath.FullName, _lmd.DefaultCachePath);
LoadDirectory.CreateDirectoryStructure(_dir, "ProjDir", true, _lmd);
_lmd.SaveToDatabase();

var c = new Catalogue(CatalogueRepository, "c");
Expand Down Expand Up @@ -128,13 +124,9 @@ public void MEFCompatibleType_NoArgs()
{
var projDir =
LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.TestDirectory),
"DelMeProjDir", true);
"DelMeProjDir", true, _lmd);
try
{
_lmd.LocationOfForLoadingDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultForLoadingPath);
_lmd.LocationOfForArchivingDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultForArchivingPath);
_lmd.LocationOfExecutablesDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultExecutablesPath);
_lmd.LocationOfCacheDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultCachePath);
_task.ProcessTaskType = ProcessTaskType.Attacher;
_task.LoadStage = LoadStage.Mounting;
_task.Path = typeof(AnySeparatorFileAttacher).FullName;
Expand All @@ -158,13 +150,9 @@ public void MEFCompatibleType_Passes()
{
var projDir =
LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.TestDirectory),
"DelMeProjDir", true);
"DelMeProjDir", true, _lmd);
try
{
_lmd.LocationOfForLoadingDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultForLoadingPath);
_lmd.LocationOfForArchivingDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultForArchivingPath);
_lmd.LocationOfExecutablesDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultExecutablesPath);
_lmd.LocationOfCacheDirectory = Path.Combine(projDir.RootPath.FullName, _lmd.DefaultCachePath);
_task.ProcessTaskType = ProcessTaskType.Attacher;
_task.LoadStage = LoadStage.Mounting;
_task.Path = typeof(AnySeparatorFileAttacher).FullName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ public void Load(DatabaseType databaseType, TestCase testCase)

//define a new load configuration
var lmd = new LoadMetadata(CatalogueRepository, "MyLoad");

if (testCase == TestCase.NoTrigger)
{
lmd.IgnoreTrigger = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ protected static LoadDirectory SetupLoadDirectory(LoadMetadata lmd)
{
var projectDirectory =
LoadDirectory.CreateDirectoryStructure(new DirectoryInfo(TestContext.CurrentContext.TestDirectory),
"MyLoadDir", true);
lmd.LocationOfForLoadingDirectory = Path.Combine(projectDirectory.RootPath.FullName, lmd.DefaultForLoadingPath);
lmd.LocationOfForArchivingDirectory = Path.Combine(projectDirectory.RootPath.FullName, lmd.DefaultForArchivingPath);
lmd.LocationOfExecutablesDirectory = Path.Combine(projectDirectory.RootPath.FullName, lmd.DefaultExecutablesPath);
lmd.LocationOfCacheDirectory = Path.Combine(projectDirectory.RootPath.FullName, lmd.DefaultCachePath);
"MyLoadDir", true,lmd);

lmd.SaveToDatabase();

return projectDirectory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using FAnsi.Discovery;
using FAnsi.Discovery.TableCreation;
using NUnit.Framework;
using NUnit.Framework.Internal;
using Rdmp.Core.DataFlowPipeline;
using Rdmp.Core.DataLoad.Engine.Pipeline.Destinations;
using Rdmp.Core.DataLoad.Triggers;
Expand Down
Loading
Loading