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

HicServices / RDMP / 26566925905

28 May 2026 09:37AM UTC coverage: 57.023% (-0.08%) from 57.101%
26566925905

push

github

JFriel
Merge branch 'bugfix/cohort-commit-issue' of https://github.com/HicServices/RDMP into bugfix/cohort-commit-issue

11562 of 21813 branches covered (53.01%)

Branch coverage included in aggregate %.

32688 of 55787 relevant lines covered (58.59%)

18057.84 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;
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 · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc