You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: avoid loading proposal ctx when proposal ctx provider is nil (#660)
This pull request introduces a deprecation warning system for legacy
`mcmsv2` CLI commands and improves error handling when loading proposal
contexts. The main goal is to inform users about the migration to the
new `mcms-tools` repository and to prevent unnecessary loading of
proposal contexts when the provider is nil.
Deprecation warning system:
* Added a visible deprecation banner and runtime warning to most
`mcmsv2` CLI commands, indicating their migration to the `mcms-tools`
repository and possible removal in future releases
(`engine/cld/legacy/cli/mcmsv2/mcms_v2.go`).
[[1]](diffhunk://#diff-726dd799d05204c24b69b8bda1f4ede5393c5955b360b076db8d11bc01f56a1bR62-R76)
[[2]](diffhunk://#diff-726dd799d05204c24b69b8bda1f4ede5393c5955b360b076db8d11bc01f56a1bR98-R137)
[[3]](diffhunk://#diff-726dd799d05204c24b69b8bda1f4ede5393c5955b360b076db8d11bc01f56a1bL118-R195)
* Excluded certain commands from deprecation warnings (such as proposal
analysis and fork testing) since they remain supported for now
(`engine/cld/legacy/cli/mcmsv2/mcms_v2.go`).
Error handling improvements:
* Modified proposal context initialization to avoid loading it if the
provider is nil, preventing possible runtime errors
(`engine/cld/legacy/cli/mcmsv2/mcms_v2.go`).
[[1]](diffhunk://#diff-726dd799d05204c24b69b8bda1f4ede5393c5955b360b076db8d11bc01f56a1bR1286-R1292)
[[2]](diffhunk://#diff-ae98e02a8b3da4252b397f33fcee411841037b39531e36277434eb0bbc96c71eR1-R6)
Other:
* Added a patch-level changeset documenting the fixes and deprecation
warning addition (`.changeset/afraid-parks-rush.md`).
0 commit comments