-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix depiction of defaults and organise them #1754
base: main
Are you sure you want to change the base?
Conversation
@@ -11,7 +11,7 @@ import ( | |||
|
|||
"github.com/jackc/pgx/v5" | |||
"github.com/jackc/pgx/v5/pgxpool" | |||
"github.com/yuin/gopher-lua" | |||
lua "github.com/yuin/gopher-lua" |
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.
you should fix your config to stop doing this on save
@@ -0,0 +1,15 @@ | |||
// These are the backend defaults if the user creates a new mirror | |||
// via SQL layer without specifying these settings. | |||
const DefaultSyncInterval = 60; |
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.
this seems like it'll be hard to keep in sync. Ideally we'd have build step read values out of go files
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.
hack: make defaults protobuf enum
not sure if addressed here, but important to differentiate between explicit value matching default & default. For if default changes. Rendering default as placeholder could work |
Fixes issues where some params in overview page would show '0' but they would actually have a default value
Organise default values of :
Snapshot number of tables in parallel
Snapshot number of workers
Snapshot number of rows per partition
Pull batch Size
Sync interval
to constant files in Go and UI
Show these defaults when not set in UI (happens when mirror is created via query layer)
Also show publication name in UI
Functionally tested with creating a mirror from UI and Query Layer