feat(matching): rank with semantic embeddings and explain matches by evidence
This commit is contained in:
1 parent
facc1789b1
commit
24b64d698a
215 files changed
+16951
-327
No files matched your search
@@ -33,10 +33,17 @@ func TestNotificationSubjectMigrations(t *testing.T) {
|
||||
if _, err := migrator.Up(ctx); err != nil {
|
||||
t.Fatalf("Up() error = %v", err)
|
||||
}
|
||||
// Migration 00046 (verification codes) is newer than the subject migration
|
||||
// under test. Roll it back first, so the rollback checks below act on 00045.
|
||||
if result, err := migrator.DownOne(ctx); err != nil || result.Version != 46 {
|
||||
t.Fatalf("roll back the newest migration: result %+v, error = %v; want migration 46", result, err)
|
||||
// Migration 00046 (verification codes) and every later one are newer than
|
||||
// the subject migration under test. Roll them back first, newest first, so
|
||||
// the rollback checks below act on 00045.
|
||||
for {
|
||||
result, err := migrator.DownOne(ctx)
|
||||
if err != nil || result.Version < 46 {
|
||||
t.Fatalf("roll back the newer migrations: result %+v, error = %v; want every migration down to 46", result, err)
|
||||
}
|
||||
if result.Version == 46 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
now := time.Date(2026, 10, 9, 12, 0, 0, 0, time.UTC)
|
||||
|
||||
Reference in new issue
Block a user