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

mindersec / minder / 19050758183
58%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2025 10:15PM UTC
Jobs 1
Files 334
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

03 Nov 2025 10:05PM UTC coverage: 58.035% (+0.04%) from 57.998%
19050758183

push

github

web-flow
Phase 4: Drop legacy entity tables (#5932)

This completes the migration to the unified entity model by removing
the deprecated repositories, artifacts, and pull_requests tables.

## Changes

### Database Migration
- Add migration 000114 to drop legacy tables (repositories, artifacts, pull_requests)
- All data now stored in entity_instances and properties tables
- Down migration recreates empty tables (data recovery requires backup)

### Code Cleanup
- Remove SQL query files: repositories.sql, artifacts.sql
- Remove generated code: repositories.sql.go, artifacts.sql.go
- Remove db.Repository, db.Artifact, db.PullRequest structs from models
- Remove legacy methods from querier and mocks
- Remove PBRepositoryFromDB converter (internal/repositories/db.go)

### Reminder Service
- Document stateless throttling approach using evaluation history
- No longer tracks reminder_last_sent timestamp
- Enables horizontal scaling and improves reliability
- Throttling based on MinElapsed check against actual evaluation times

### Test Updates
- Create EntityRepository test helper for entity-based repository tests
- Update all test files to use EntityRepository instead of db.Repository
- Remove legacy repositories_test.go
- Update mock fixtures to remove legacy struct parameters
- All tests passing with full race detection

## Migration Path

1. Deploy this code to staging/production
2. Create database backup (CRITICAL - migration is irreversible)
3. Run migration to drop legacy tables
4. Monitor for errors
5. Optional: Run VACUUM to reclaim disk space

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

Co-authored-by: Claude <noreply@anthropic.com>

18880 of 32532 relevant lines covered (58.04%)

36.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19050758183.1 03 Nov 2025 10:15PM UTC 334
58.04
GitHub Action Run
Source Files on build 19050758183
  • Tree
  • List 334
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19050758183
  • 5eed5e2b on github
  • Prev Build on main (#19048007149)
  • Next Build on main (#19050764270)
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