• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HicServices / RDMP / 13235788803

10 Feb 2025 07:36AM UTC coverage: 57.402% (+0.01%) from 57.389%
13235788803

push

github

web-flow
Task/rdmp 265 version data loads (#2125)

* basic versions

* add basic versioning

* add versioning

* rename file

* update changelog

* fix catalogue

* fix sql

* fix up sql

* update delete

* add tests

* tidy up

* fiz clone

* fix up tree structure

* clone version

* tidy up

11338 of 21302 branches covered (53.23%)

Branch coverage included in aggregate %.

966 of 1168 new or added lines in 8 files covered. (82.71%)

3 existing lines in 3 files now uncovered.

32238 of 54612 relevant lines covered (59.03%)

17067.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Rdmp.Core/CommandExecution/AtomicCommands/ExecuteCommandCreateLoadMetadataVersion.cs
1
using Rdmp.Core.Curation.Data.DataLoad;
2
using Rdmp.Core.Curation.Data;
3
using System;
4

5
namespace Rdmp.Core.CommandExecution.AtomicCommands;
6

7
public class ExecuteCommandCreateLoadMetadataVersion: BasicCommandExecution
8
{
9
    private readonly LoadMetadata _loadMetadata;
10
    private readonly IBasicActivateItems _activator;
NEW
11
    public ExecuteCommandCreateLoadMetadataVersion(IBasicActivateItems activator,[DemandsInitialization("The LoadMetadata to version")] LoadMetadata loadMetadata)
×
12
    {
13

NEW
14
        _loadMetadata = loadMetadata;
×
NEW
15
        _activator = activator;
×
NEW
16
    }
×
17

18
    public override void Execute()
19
    {
NEW
20
        base.Execute();
×
NEW
21
        if(_loadMetadata.RootLoadMetadata_ID != null)
×
22
        {
NEW
23
            throw new Exception("Must Use Root LoadMetadata to create Version");
×
24
        }
NEW
25
        var lmd = _loadMetadata.SaveNewVersion();
×
NEW
26
        lmd.SaveToDatabase();
×
NEW
27
        _activator.Publish(lmd);
×
NEW
28
    }
×
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc