rock-core / tools-roby

The roby plan manager
Other
3 stars 11 forks source link

fix: manage loading older log files #257

Closed doudou closed 1 year ago

doudou commented 1 year ago

A few months ago, we extended Roby::Actions::Models::Action::Argument to add the "example" fields. Unfortunately, ruby won't load struct of the old type because the amount of fields have changed - something that does not happen with classes.

Beyond showing again that the current log format is simply wrong, it makes all older log files un-readable. This commit hacks its way around the problem by re-defining the constant with the old struct definition.

doudou commented 1 year ago

Ping