Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: delete not used code (#20323)

Wang Qi9dd22c5336ba
diff --git a/internal/dao/conversation_history_migration_test.go b/internal/dao/conversation_history_migration_test.go
index f84fb3e3de..ce68d4985f 100644
--- a/internal/dao/conversation_history_migration_test.go
+++ b/internal/dao/conversation_history_migration_test.go
@@ -251,7 +251,7 @@ func TestMigrateConversationHistoryHonoursRecordedVersion(t *testing.T) {
{"earlier dev build", "v1.0.0-rc1.dev0", true},
{"the split version itself", conversationHistoryTargetVersion, false},
{"release the dev build leads to", "v1.0.0-rc1", false},
- {"later dev build", "v1.0.0-rc1.dev2", false},
+ {"dev build before the split", "v1.0.0-rc1.dev2", true},
{"later release candidate", "v1.0.0-rc2", false},
{"final release", "v1.0.0", false},
} {
diff --git a/internal/router/router.go b/internal/router/router.go
index 18b3467b9b..1ec04a98e1 100644
--- a/internal/router/router.go
+++ b/internal/router/router.go
@@ -241,19 +241,6 @@ func (r *Router) Setup(engine *gin.Engine) {
authorized := engine.Group("")
authorized.Use(r.authHandler.AuthMiddleware())
{
- // User info endpoint
- authorized.GET("/v1/user/info", r.userHandler.Info)
- // User tenant info endpoint
- authorized.GET("/v1/user/tenant_info", r.tenantHandler.TenantInfo)
- // Tenant list endpoint
- authorized.GET("/v1/tenant/list", r.tenantHandler.TenantList)
- // User settings endpoint
- authorized.POST("/v1/user/setting", r.userHandler.Setting)
- // User change password endpoint
- authorized.POST("/v1/user/setting/password", r.userHandler.ChangePassword)
- // User set tenant info endpoint
- authorized.POST("/v1/user/set_tenant_info", r.userHandler.SetTenantInfo)
-
// API v1 route group
v1 := authorized.Group("/api/v1")
{