Make account test_status runtime-only (in-memory cache)#137
Merged
CJackHwang merged 1 commit intodevfrom Mar 21, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
test_statusshould not be treated as a persisted user configuration field and must behave like runtime state (similar to tokens).test_statusfields from lingering in persisted config files after schema change.Description
TestStatusfrom the persistedAccountstruct sotest_statusis no longer part of saved config (internal/config/config.go).accTesttoconfig.StorewithUpdateAccountTestStatuswriting only to memory and a new accessorAccountTestStatusto read runtime status (internal/config/store.go,internal/config/store_index.go)."test_status"entries and rewrite the config file without that field to clean up outdated persisted content (loadConfigupdate ininternal/config/store.go).ConfigStoreinterface was extended withAccountTestStatus; admin listing and tests were updated to use the runtime-only status (internal/admin/handler_accounts_crud.go,internal/admin/deps.go, tests adjusted).Testing
go test ./internal/config ./internal/adminand both packages passed (ok)../tests/scripts/check-refactor-line-gate.shwhich completed with no missing targets../tests/scripts/check-node-split-syntax.shwhich completed with no syntax issues.Codex Task