memos/server/router/api/v1/test
johnnyjoygh 96cb65320b fix(instance): add needs_setup so admin-less instances aren't treated as fresh
The frontend keyed first-run setup off a null InstanceProfile.admin, but a
null admin only means "no admin-role user exists" — which also happens on a
populated instance that has lost all its admins. Such an instance was wrongly
redirected to signup, where the new account is created as a normal user (the
first-user promotion only triggers when there are zero users), leaving the
instance permanently admin-less.

Add an explicit InstanceProfile.needs_setup derived from user count == 0, and
switch the signup redirect and host tip to use it. admin stays for display only.
2026-06-21 22:14:15 +08:00
..
ai_service_test.go refactor: split STT and Audio-LLM into separate interfaces (#5928) 2026-05-03 00:21:58 +08:00
attachment_service_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
auth_service_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
auth_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
idp_service_test.go fix(api): make credentials write-only and restrict sensitive settings to admins 2026-03-29 07:34:00 +08:00
instance_admin_cache_test.go
instance_service_test.go fix(instance): add needs_setup so admin-less instances aren't treated as fresh 2026-06-21 22:14:15 +08:00
instance_stats_test.go feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
memo_attachment_service_test.go fix(security): enforce attachment ownership on memo updates 2026-05-01 18:23:53 +08:00
memo_relation_service_test.go
memo_service_benchmark_test.go fix: reduce list memo query overhead (#5880) 2026-04-22 09:31:48 +08:00
memo_service_test.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
memo_share_service_test.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
reaction_service_test.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
shortcut_service_test.go fix: fix legacy username auth flows (#5885) 2026-04-23 22:35:38 +08:00
sse_handler_test.go fix(sse): stream initial response and refresh tokens 2026-05-09 09:15:50 +08:00
test_helper.go chore(settings): show build commit in version info 2026-04-27 08:51:11 +08:00
user_email_visibility_test.go fix(api): restrict user email exposure to self and admins (#5784) 2026-03-25 22:02:08 +08:00
user_notification_test.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
user_resource_name_test.go fix: fix legacy username auth flows (#5885) 2026-04-23 22:35:38 +08:00
user_search_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
user_service_delete_test.go feat: redesign account and SSO management (#5886) 2026-04-24 09:08:58 +08:00
user_service_email_username_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
user_service_registration_test.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
user_service_stats_test.go feat(stats): support filtered all-user stats 2026-05-09 09:11:04 +08:00
user_setting_test.go feat(settings): move tag metadata to user settings (#6017) 2026-06-07 23:58:00 +08:00