Deprecate Pallet decl_* Macros#13705
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
Don't we first want to merge the prs that remove the usages in our code base? |
|
here's the actual reason for the pipeline failure, the decl_storage_ui test is unsurpringly failing. Will investigate how the job log got truncated. |
Ideally yes, but they got closed as stale. Will need to check how much effort that is and maybe quickly do it. |
|
They got reopened. Otherwise it should be fairly straightforward to remove them. |
|
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Okay will wait for the other MRs. |
This reverts commit ce36080.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
I searched on GitHub, and there are still lots of projects using the old macros. I think we should give at least 3 months lead period before finally deleting. Although, this old code is blocking a lot of issues… |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
decl_* macrosdecl_* Macros
sam0x17
left a comment
There was a problem hiding this comment.
Yeah I agree that deprecation and then eventual removal is definitely the way to go
Otherwise i have to spam allow(deprecated) for all recursive calls. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This reverts commit 543a311.
| #[cfg(test)] | ||
| // Do not complain about unused `dispatch` and `dispatch_aux`. | ||
| #[allow(dead_code)] | ||
| #[allow(deprecated)] |
There was a problem hiding this comment.
Test will be deleted once the syntax is gone.
|
bot merge |
* Deprecate decl_ macros Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Allow deprecated in tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Allow deprecated in tests" This reverts commit ce36080. * Deprecate all Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Push missing files Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Move decl_module to own file Otherwise i have to spam allow(deprecated) for all recursive calls. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Move decl_module to own file" This reverts commit 543a311. * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
It should come at no surprise that we are deprecating:
decl_module,decl_storage,decl_erroranddecl_event.Any remaining usage should be migrated to use
#[frame_support::pallet].Related #12248
Depends on #12445, #12401