Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 0 additions & 12 deletions Rdmp.Core/Icons/IconProvision/CatalogueIcons.Designer.cs

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

3 changes: 0 additions & 3 deletions Rdmp.Core/Icons/IconProvision/CatalogueIcons.resx
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,6 @@
<data name="ProjectSavedCohortsNode" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\ProjectSavedCohortsNode.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="CommittedCohortIdentificationNode" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\CommittedCohortIdentificationNode.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="collapseAllNodes" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\collapseAllNodes.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
Expand Down
1 change: 0 additions & 1 deletion Rdmp.Core/Icons/IconProvision/RDMPConcept.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ public enum RDMPConcept
LoadMetadataCatalogueLinkage,
Setting,
TicketingSystemReleaseStatus,
CommittedCohortIdentificationNode,
AllDatasetsNode,
RegexRedaction,
RegexRedactionConfiguration,
Expand Down
33 changes: 20 additions & 13 deletions Rdmp.Core/Providers/DataExportChildProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Rdmp.Core.Caching.Pipeline;
using Rdmp.Core.CohortCommitting.Pipeline;
using Rdmp.Core.Curation.Data;
using Rdmp.Core.Curation.Data.Cohort;
using Rdmp.Core.Curation.Data.Pipelines;
using Rdmp.Core.DataExport.Data;
using Rdmp.Core.DataExport.DataExtraction.Pipeline;
Expand Down Expand Up @@ -238,6 +239,22 @@ private void AddChildren(FolderNode<Project> folder, DescendancyList descendancy
);
}

private void AddChildren(FolderNode<CohortIdentificationConfiguration> folder, DescendancyList descendancy)
{
foreach (var child in folder.ChildFolders)
//add subfolder children
AddChildren(child, descendancy.Add(child));

//add catalogues in folder
foreach (var cic in folder.ChildObjects) AddToDictionaries(new HashSet<object>() { cic }, descendancy.SetBetterRouteExists());

// Children are the folders + objects
AddToDictionaries(new HashSet<object>(
folder.ChildFolders.Cast<object>()
.Union(folder.ChildObjects)), descendancy
);
}

private void BuildSelectedDatasets()
{
_selectedDataSetsWithNoIsExtractionIdentifier =
Expand Down Expand Up @@ -347,7 +364,9 @@ private void AddChildren(ProjectCohortsNode projectCohortsNode, DescendancyList
children.Add(savedCohortsNode);
AddChildren(savedCohortsNode, descendancy.Add(savedCohortsNode));

var associatedCohortConfigurations = new CommittedCohortIdentificationNode(projectCohortsNode.Project);
var associatedCohortConfigurations = FolderHelper.BuildFolderTree(projectCohortsNode.Project.GetAssociatedCohortIdentificationConfigurations());
associatedCohortConfigurations.Name = "Associated Cohort Configurations";
associatedCohortConfigurations.Parent = new FolderNode<CohortIdentificationConfiguration>($"\\{projectCohortsNode.Project}\\{projectCohortsNode}");
children.Add(associatedCohortConfigurations);
AddChildren(associatedCohortConfigurations, descendancy.Add(associatedCohortConfigurations));

Expand All @@ -371,18 +390,6 @@ private void AddChildren(AssociatedCohortIdentificationTemplatesNode associatedC
AddToDictionaries(children, descendancy);
}

private void AddChildren(CommittedCohortIdentificationNode associatedCohortConfigurations, DescendancyList descendancy)
{
var children = new HashSet<object>();
var associatedCohorts = associatedCohortConfigurations.Project.GetAssociatedCohortIdentificationConfigurations();
foreach (var cohort in associatedCohorts)
{
children.Add(cohort);
}

AddToDictionaries(children, descendancy);
}

private void AddChildren(ProjectSavedCohortsNode savedCohortsNode, DescendancyList descendancy)
{
var children = new HashSet<object>();
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion Rdmp.UI/NavigationTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public NavigationTrack(Func<T, bool> aliveDelegate, Action<T> activate)
public void Prune()
{
_navigationStack = new Stack<T>(_navigationStack.ToArray().Take(MaxHistory + 1).Reverse().Where(_isAlive));
_forward = new Stack<T>(_forward.AsEnumerable().ToArray().AsEnumerable().Reverse().Where(_isAlive));
_forward = new Stack<T>(_forward.ToArray().AsEnumerable().Reverse().Where(_isAlive));
}

/// <summary>
Expand Down
Loading