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

mindersec / minder / 18601097126
58%

Build:
DEFAULT BRANCH: main
Ran 17 Oct 2025 06:20PM UTC
Jobs 1
Files 335
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2025 06:10PM UTC coverage: 57.972% (+0.2%) from 57.817%
18601097126

push

github

web-flow
Phase 1 + 2: Remove legacy table writes and migrate reads (#5913)

* Phase 1: Remove legacy table dual writes

This commit implements Phase 1 of the legacy table removal plan,
eliminating dual writes to the deprecated repositories, artifacts,
and pull_requests tables while maintaining backward compatibility
for read operations.

Changes:
- Remove CreateRepository() calls that wrote to legacy repositories table
- Remove UpsertArtifact() calls that wrote to legacy artifacts table
- Remove DeleteRepository() calls from deletion flow
- Update all write operations to only use entity_instances and properties tables
- Update test mocks to reflect new database interaction patterns
- Fix linter warnings for unused parameters

All repository and entity tests are passing. The system now writes
exclusively to the unified entity model, preparing for Phase 2 where
read operations will be migrated.

Related to legacy table removal plan documented in LEGACY_TABLE_REMOVAL_PLAN.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Phase 2: Migrate all reads to entity_instances and properties tables

This commit completes Phase 2 of the legacy table removal plan by migrating
all read operations from the legacy repositories, artifacts, and pull_requests
tables to the unified entity_instances and properties tables.

Combined with Phase 1 (stop writes), this PR now safely removes all dependencies
on legacy tables without breaking any functionality.

Key Changes:

Repository Service:
- Updated GetRepositoryById to query entity_instances + properties
- Updated GetRepositoryByName to search by name property
- Updated DeleteByName to use property-based entity search
- Changed return types from db.Repository to *pb.Repository

Artifact Handlers:
- Updated GetArtifactById and GetArtifactByName to use entity_instances
- Updated ListArtifacts to query entity_instances directly
- Removed legacy helper functions

Reposi... (continued)

112 of 286 new or added lines in 8 files covered. (39.16%)

3 existing lines in 2 files now uncovered.

18863 of 32538 relevant lines covered (57.97%)

37.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% internal/controlplane/metrics/metrics.go
2
88.46
-3.85% internal/controlplane/handlers_reconciliationtasks.go
3
35.35
2.85% internal/reminder/reminder.go
26
75.8
-3.63% internal/repositories/service.go
40
58.31
6.12% internal/controlplane/handlers_repositories.go
102
0.0
0.0% internal/controlplane/handlers_artifacts.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
69.7
-0.3% internal/authz/authz.go
2
0.0
0.0% internal/controlplane/handlers_artifacts.go
Jobs
ID Job ID Ran Files Coverage
1 18601097126.1 17 Oct 2025 06:20PM UTC 335
57.97
GitHub Action Run
Source Files on build 18601097126
  • Tree
  • List 335
  • Changed 10
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18601097126
  • 11e78c00 on github
  • Prev Build on main (#18570699606)
  • Next Build on main (#18670725107)
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

© 2025 Coveralls, Inc