Skip to content

Commit 04a0590

Browse files
committed
Merge branch 'rc' of https://github.com/bexis2/core into rc
2 parents 1437a85 + 0cd9ff8 commit 04a0590

File tree

287 files changed

+151
-11185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+151
-11185
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,4 @@ svelte
281281
/Console/BExIS.Web.Shell/Areas/RPM/BExIS.Modules.Rpm.UI/Scripts/svelte
282282
/_output
283283
/Console/BExIS.Web.Shell/Web.config
284+
/Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI/Properties/PublishProfiles/FolderProfile.pubxml

Components/DLM/BExIS.Dlm.Tests/Helpers/DatasetHelper.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public Dataset UpdateAnyTupleForDataset(Dataset dataset, StructuredDataStructure
392392
}
393393
}
394394

395-
public List<DataTuple> GetUpdatedDatatuples(DatasetVersion datasetVersion, StructuredDataStructure dataStructure, DatasetManager datasetManager)
395+
public List<DataTuple> GetUpdatedDatatuples(DatasetVersion datasetVersion, StructuredDataStructure dataStructure, DatasetManager datasetManager, int count = 0)
396396
{
397397
datasetVersion.Should().NotBeNull();
398398
var dataset = datasetVersion.Dataset;
@@ -401,11 +401,17 @@ public List<DataTuple> GetUpdatedDatatuples(DatasetVersion datasetVersion, Struc
401401

402402
try
403403
{
404-
var datatuples = datasetManager.GetDataTuples(datasetVersion.Id);
404+
List<AbstractTuple> datatuples = new List<AbstractTuple>();
405+
if(count == 0)
406+
datatuples = datasetManager.GetDataTuples(datasetVersion.Id);
407+
else
408+
datatuples = datasetManager.GetDataTuples(datasetVersion.Id).Take(count).ToList();
409+
405410
List<DataTuple> editedTuples = new List<DataTuple>();
406411

407412
foreach (var dataTuple in datatuples)
408413
{
414+
409415
dataTuple.Materialize();
410416

411417
var vv = dataTuple.VariableValues.Where(v => v.VariableId.Equals(dataStructure.Variables.Skip(4).First().Id)).FirstOrDefault();
@@ -416,6 +422,7 @@ public List<DataTuple> GetUpdatedDatatuples(DatasetVersion datasetVersion, Struc
416422
//dataTuple.XmlVariableValues.Should().NotBeNull();
417423

418424
editedTuples.Add((DataTuple)dataTuple);
425+
419426
}
420427

421428
return editedTuples;

Components/DLM/BExIS.Dlm.Tests/Services/Data/DatasetManager_EditDatasetVersionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public void EditDatasetVersion_UpdateAllDataTuples_SameNumberOfDatatuples(int pr
196196
datatupleFromDatabaseIds = datasetManager.GetDatasetVersionEffectiveTupleIds(latest);
197197

198198
//get updated tuples as incoming datatuples
199-
incoming = dsHelper.GetUpdatedDatatuples(latest, dataset.DataStructure as StructuredDataStructure, datasetManager);
199+
incoming = dsHelper.GetUpdatedDatatuples(latest, dataset.DataStructure as StructuredDataStructure, datasetManager, 10);
200200

201201
//because of updateing all datatuples the incoming number is should be equal then the existing one
202202
expectedCount = incoming.Count;

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI/App_GlobalResources/EditorLocalization.bg-BG.designer.cs

Whitespace-only changes.

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI/App_GlobalResources/EditorLocalization.bg-BG.resx

Lines changed: 0 additions & 213 deletions
This file was deleted.

Console/BExIS.Web.Shell/Areas/SMM/BExIS.Modules.SMM.UI/App_GlobalResources/EditorLocalization.da-DK.designer.cs

Whitespace-only changes.

0 commit comments

Comments
 (0)