< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Input.ListErasureRequestsQuery
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/ListErasureRequestsQuery.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 31
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 3
Fully covered methods: 3
Total methods: 3
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_OverdueOnly()100%11100%
get_ActingPersonId()100%11100%
get_ActingRole()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/ListErasureRequestsQuery.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using ArturRios.Heimdall.Shared.Security;
 3using ArturRios.Mediator.Query;
 4
 5namespace ArturRios.Heimdall.Query.Input;
 6
 7/// <summary>
 8///     Request to list the erasure requests that have not yet been carried out (UC-43), so an
 9///     administrator can see what is outstanding and what is overdue.
 10/// </summary>
 11/// <remarks>
 12///     The listing exists for one reason: GDPR Art. 12(3) and LGPD Art. 19 §2 set a deadline, and a
 13///     deadline nobody can see is one nobody meets. Most requests need no human at all — the
 14///     anonymisation pass carries them out — but the ones NFR-12 blocks need an owner transferred,
 15///     and without this they would sit unnoticed until the deadline had already passed.
 16/// </remarks>
 17public class ListErasureRequestsQuery : BaseQuery, IActorScoped
 18{
 19    /// <summary>
 20    ///     When true, only the requests whose deadline has already passed. The default is every
 21    ///     outstanding request, because a queue that shows only what is already late is a queue that
 22    ///     guarantees lateness.
 23    /// </summary>
 1724    public bool OverdueOnly { get; set; }
 25
 26    [JsonIgnore]
 127    public Guid ActingPersonId { get; set; }
 28
 29    [JsonIgnore]
 130    public int ActingRole { get; set; }
 31}