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

HicServices / RDMP / 26566491872

28 May 2026 09:28AM UTC coverage: 57.019% (-0.08%) from 57.099%
26566491872

push

github

web-flow
Merge pull request #2337 from HicServices/task/rdmp-378-extraction-pk-parity

Ensure Extraction PK PArity & enabkle Viewing of Archive Trigger

11557 of 21809 branches covered (52.99%)

Branch coverage included in aggregate %.

13 of 112 new or added lines in 17 files covered. (11.61%)

32686 of 55785 relevant lines covered (58.59%)

9031.31 hits per line

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

0.0
/Rdmp.Core/DataViewing/ViewLogsCollection.cs
1
// Copyright (c) The University of Dundee 2018-2019
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 System.Collections.Generic;
8
using FAnsi.Discovery.QuerySyntax;
9
using Rdmp.Core.Curation.Data;
10
using Rdmp.Core.Curation.Data.Dashboarding;
11
using Rdmp.Core.Logging;
12
using Rdmp.Core.ReusableLibraryCode.DataAccess;
13

14
namespace Rdmp.Core.DataViewing;
15

16
/// <summary>
17
/// Collection that builds SQL for querying the logging database tables
18
/// </summary>
19
public class ViewLogsCollection : PersistableObjectCollection, IViewSQLAndResultsCollection
20
{
21
    private ExternalDatabaseServer _loggingServer;
22
    private LogViewerFilter _filter;
NEW
23
    public bool DisableRun => false;
×
24

25
    public ViewLogsCollection(ExternalDatabaseServer loggingServer, LogViewerFilter filter)
×
26
    {
27
        _loggingServer = loggingServer;
×
28
        _filter = filter;
×
29
    }
×
30

31
    public void AdjustAutocomplete(IAutoCompleteProvider autoComplete)
32
    {
33
    }
×
34

35
    public IDataAccessPoint GetDataAccessPoint() => _loggingServer;
×
36

37
    public IQuerySyntaxHelper GetQuerySyntaxHelper() => _loggingServer.GetQuerySyntaxHelper();
×
38

39
    public string GetSql() =>
40
        $@"Select * from {_filter.LoggingTable}
×
41

×
42
{_filter.GetWhereSql()}";
×
43

44
    public string GetTabName() => _filter.ToString();
×
45

46
    public IEnumerable<DatabaseEntity> GetToolStripObjects()
47
    {
48
        yield return _loggingServer;
×
49
    }
×
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc