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

curt / Viae / 19527137380

20 Nov 2025 05:53AM UTC coverage: 51.56%. First build
19527137380

push

github

web-flow
feat: provide minimal locus and vestigium views (#1)

62 of 109 branches covered (56.88%)

Branch coverage included in aggregate %.

500 of 981 new or added lines in 61 files covered. (50.97%)

500 of 981 relevant lines covered (50.97%)

19.89 hits per line

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

0.0
/endpoint/src/Viae.Persistence/Configurations/LocusConfiguration.cs
1
// Copyright © 2025 Curt Gilman
2
// SPDX-License-Identifier: AGPL-3.0-only
3
// Viae: A geo-centric, journey-focused, federated blog platform
4

5
using Microsoft.EntityFrameworkCore;
6
using Microsoft.EntityFrameworkCore.Metadata.Builders;
7
using Viae.Domain.Models;
8

9
namespace Viae.Persistence.Configurations;
10

11
/// <summary>
12
/// Entity Framework Core configuration for Locus entity.
13
/// </summary>
14
public class LocusConfiguration : IEntityTypeConfiguration<Locus>
15
{
16
    public void Configure(EntityTypeBuilder<Locus> builder)
17
    {
18
        // Ignore convenience properties - they use Coordinates internally
NEW
19
        builder.Ignore(l => l.Latitude);
×
NEW
20
        builder.Ignore(l => l.Longitude);
×
21

22
        // PostGIS Point column for coordinates
NEW
23
        builder.Property(l => l.Coordinates).HasColumnType("geography(Point, 4326)");
×
NEW
24
        builder.HasIndex(l => l.Coordinates).HasMethod("gist");
×
25

NEW
26
        builder.Property(l => l.Name).UseCollation("und_nodiac");
×
NEW
27
        builder.HasIndex(l => l.Name);
×
NEW
28
    }
×
29
}
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