-
Notifications
You must be signed in to change notification settings - Fork 236
remove legacy config #1904
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
base: main
Are you sure you want to change the base?
remove legacy config #1904
Conversation
public static class LegacyCameraConfigStruct { | ||
PVCameraInfo matchedCameraInfo; | ||
|
||
/** Legacy constructor for compat with 2024.3.1 */ |
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.
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.
Does that mean until 2026 season, or until the 2027 season.
if (config.matchedCameraInfo == null) { | ||
logger.info("Legacy CameraConfiguration detected - upgrading"); | ||
|
||
// manually create the matchedCameraInfo ourselves. Need to upgrade: | ||
// baseName, path, otherPaths, cameraType, usbvid/pid -> matchedCameraInfo | ||
config.matchedCameraInfo = | ||
JacksonUtils.deserialize(configStr, LegacyCameraConfigStruct.class).matchedCameraInfo; | ||
|
||
// Except that otherPaths used to be its own column. so hack that in here as well | ||
var otherPaths = | ||
JacksonUtils.deserialize( | ||
result.getString(Columns.CAM_OTHERPATHS_JSON), String[].class); | ||
if (config.matchedCameraInfo instanceof UsbCameraInfo usbInfo) { | ||
usbInfo.otherPaths = otherPaths; | ||
} | ||
} | ||
|
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.
Ditto
also #1488 is related |
I need to update a test, but as this is blocked until after champs, it's not a priority. |
Description
removes the legacy config as it's no longer used. This breaks support for anyone who has settings saved from pre-2025.
Stalled until post champs
Meta
Merge checklist: