< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ScopeId()100%11100%
get_Name()100%11100%
get_IncludeDeleted()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/ListScopePermissionsQuery.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 permissions of a scope, with pagination and optional filtering (UC-32,
 9///     FR-SP-05). <see cref="ScopeId" /> comes from the route;
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller and are never taken from the request — a Scope Admin sees only the
 12///     permissions of a scope they own, so a forged acting id would be a forged answer. A scope
 13///     permission has no owner of its own, so there is no owner filter. All three are
 14///     <c>[JsonIgnore]</c>, which <c>ServerPopulatedBindingMetadataProvider</c> turns into
 15///     "not bindable", so they never reach the public contract.
 16/// </summary>
 17public class ListScopePermissionsQuery : BaseQuery, IActorScoped
 18{
 19    /// <summary>Public identifier of the scope whose permissions are listed (assigned from the route).</summary>
 20    [JsonIgnore]
 4121    public Guid ScopeId { get; set; }
 22
 23    /// <summary>Optional case-insensitive substring filter on the permission's name.</summary>
 3924    public string? Name { get; set; }
 25
 26    /// <summary>When <c>true</c>, logically deleted permissions are included (FR-SP-09).</summary>
 1627    public bool IncludeDeleted { get; set; }
 28
 29    [JsonIgnore]
 3830    public Guid ActingPersonId { get; set; }
 31
 32    [JsonIgnore]
 3833    public int ActingRole { get; set; }
 34}