-
Notifications
You must be signed in to change notification settings - Fork 60
add Settings domain with DB persistence and admin CRUD API #939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bitcoin-coder-bob
wants to merge
30
commits into
master
Choose a base branch
from
bob/settings-domain-and-repo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b9fe77c
add Settings domain with DB persistence and admin CRUD API
bitcoin-coder-bob ae7da6d
remove settings env vars, seed defaults from DB with scheduler-aware …
bitcoin-coder-bob ceb6d68
lint, make proto
bitcoin-coder-bob 2fbbeb3
Merge remote-tracking branch 'origin/master' into bob/settings-domain…
bitcoin-coder-bob d0564c0
Merge branch 'master' into bob/settings-domain-and-repo
bitcoin-coder-bob 0c9a296
update im memory config values after persisting to db
bitcoin-coder-bob da53ecf
merge branch 'master' into bob/settings-domain-and-repo
bitcoin-coder-bob 5271785
validate settings, update servce setting on ClearSettings, dedpup loc…
bitcoin-coder-bob a61a9f1
README update for settings endpoints, swtting mutex usage, default ma…
bitcoin-coder-bob 2802d62
error returning
bitcoin-coder-bob 557ccad
wrning logs on setting changes, comments
bitcoin-coder-bob d382b18
Add uint32 overflow guards, amount min/max validation, fix ClearSetti…
bitcoin-coder-bob 4b5966b
add BanThreshold validation, remove redundant Clear in ClearSettings,…
bitcoin-coder-bob 066e9f7
Merge branch 'master' into bob/settings-domain-and-repo
bitcoin-coder-bob 27ab8a1
remove unused default config vars
bitcoin-coder-bob 70fb5fe
Merge branch 'master' into bob/settings-domain-and-repo
bitcoin-coder-bob dd48374
Validate CheckpointExitDelay in settings
bitcoin-coder-bob b21375a
Support partial updates in UpdateSettings
bitcoin-coder-bob 93010e2
lint
bitcoin-coder-bob 232d5a1
add update_fields to UpdateSettingsRequest for partial updates
bitcoin-coder-bob 4fd6fbb
Validate update_fields and derive valid names from struct
bitcoin-coder-bob 3c78e95
Merge branch 'master' into bob/settings-domain-and-repo
bitcoin-coder-bob c094527
lint
bitcoin-coder-bob fd134d5
Merge master into bob/settings-domain-and-repo
bitcoin-coder-bob 1fc333e
remove unused config var defaultAllowCSVBlockType
bitcoin-coder-bob 2f660ca
seed DB-backed settings from env vars on first boot
bitcoin-coder-bob 29e4f2b
validate seeded default settings before persisting on first boot
bitcoin-coder-bob 0f734ec
Merge master into bob/settings-domain-and-repo
bitcoin-coder-bob 5142125
Remove unused default constants introduced during merge
bitcoin-coder-bob ece9dd1
Merge master into bob/settings-domain-and-repo
bitcoin-coder-bob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UpdateSettingsRequestdoes not match the handler’s real contract.The schema makes
settingsoptional, makes every nested field optional, and reuses the response model with writable-lookingupdatedAt. Ininternal/interface/grpc/handlers/adminservice.go, Lines 592-614,{}is rejected, omitted fields are read as zero and overwrite stored settings, andupdatedAtis ignored. Please fix this at the proto/message level before regen so the published contract is either an explicit full-replace shape or a true patch shape.Based on learnings, the project prioritizes backward compatibility for API endpoints.
Also applies to: 1861-1869
🤖 Prompt for AI Agents