-
-
Notifications
You must be signed in to change notification settings - Fork 1k
[management] fix extend call and move config to types #3575
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
Conversation
this helps avoid circular import cycle through all the code
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.
Pull Request Overview
This PR fixes configuration inconsistencies and updates the store engine type usage throughout the management code. Key changes include:
- Replacing outdated server.Config references with types.Config and updating related flag variables (e.g. types.MgmtConfigPath).
- Converting engine constants (SqliteStoreEngine, PostgresStoreEngine, MysqlStoreEngine) to use types.Engine for consistent type–safety.
- Adjusting various test and migration code paths to correctly reference the new configuration and engine types.
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| management/server/grpcserver.go | Updated config argument and protocol conversion to use types.Config. |
| management/server/types/config.go | Switched package and added MgmtConfigPath variable for config file path. |
| management/cmd/root.go | Revised flag registration to bind config flag to types.MgmtConfigPath. |
| management/server/store/*.go | Converted engine constants and function signatures to use types.Engine. |
| management/server/peer.go | Updated calls to toSyncResponse to use types.Config (with one inconsistent call). |
| management/cmd/management.go | Replaced server.Config with types.Config in config loading and updating. |
| Various test files | Adjusted type references in tests to use types.Config and types.Host. |
| management/server/token_mgr.go | Updated TURN/Relay config references to use types.TURNConfig/Relay. |
|
This PR fixes configuration inconsistencies and updates the store engine type usage throughout the management code. Key changes include: - Replacing outdated server.Config references with types.Config and updating related flag variables (e.g. types.MgmtConfigPath). - Converting engine constants (SqliteStoreEngine, PostgresStoreEngine, MysqlStoreEngine) to use types.Engine for consistent type–safety. - Adjusting various test and migration code paths to correctly reference the new configuration and engine types.



Describe your changes
This PR fixes configuration inconsistencies and updates the store engine type usage throughout the management code. Key changes include:
Issue ticket number and link
Checklist