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

HicServices / RDMP / 9417908657

07 Jun 2024 01:33PM UTC coverage: 56.925% (+0.01%) from 56.914%
9417908657

Pull #1844

github

web-flow
Bugfix/rdmp 192 connection failed (#1851)

* add better async checking

* ignore timeout of 0ms

* tidy up

* add changelog

* add 12 hour timeout

* use latest fansisql

* update timeout

* bump version
Pull Request #1844: Release/8.1.7

10819 of 20482 branches covered (52.82%)

Branch coverage included in aggregate %.

13 of 14 new or added lines in 4 files covered. (92.86%)

41 existing lines in 2 files now uncovered.

30840 of 52700 relevant lines covered (58.52%)

7414.82 hits per line

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

88.89
/Rdmp.Core/CommandExecution/AtomicCommands/ExecuteCommandSetExtractionConfigurationCohort.cs
1
// Copyright (c) The University of Dundee 2024-2024
2
// This file is part of the Research Data Management Platform (RDMP).
3
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.
6

7
using Rdmp.Core.DataExport.Data;
8
using Rdmp.Core.Icons.IconProvision;
9
using Rdmp.Core.ReusableLibraryCode.Icons.IconProvision;
10
using SixLabors.ImageSharp.PixelFormats;
11
using SixLabors.ImageSharp;
12

13
namespace Rdmp.Core.CommandExecution.AtomicCommands;
14

15
public class ExecuteCommandSetExtractionConfigurationCohort : BasicCommandExecution, IAtomicCommand
16
{
17
    private ExtractionConfiguration _extractionConfiguration;
18
    private ExtractableCohort _extractableCohort;
19

20
    public ExecuteCommandSetExtractionConfigurationCohort(IBasicActivateItems activator, ExtractionConfiguration extractionConfiguration, ExtractableCohort cohort) : base(activator)
4✔
21
    {
22
        _extractionConfiguration = extractionConfiguration;
4✔
23
        _extractableCohort = cohort;
4✔
24
    }
4✔
25

26

27
    public override void Execute()
28
    {
29
        base.Execute();
4✔
30
        _extractionConfiguration.Cohort_ID = _extractableCohort.ID;
4✔
31
        _extractionConfiguration.SaveToDatabase();
4✔
32
    }
2✔
33

34
    public override Image<Rgba32> GetImage(IIconProvider iconProvider) =>
NEW
35
    iconProvider.GetImage(RDMPConcept.ExtractionConfiguration, OverlayKind.None);
×
36

37
}
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

© 2026 Coveralls, Inc