Skip to content

Fix deprecated MenuItem arguments - #55

Merged
jarednorman merged 1 commit into
solidusio-contrib:masterfrom
SuperGoodSoft:fix-backend-menu-item-deprecation
Jul 17, 2026
Merged

Fix deprecated MenuItem arguments#55
jarednorman merged 1 commit into
solidusio-contrib:masterfrom
SuperGoodSoft:fix-backend-menu-item-deprecation

Conversation

@AlistairNorman

Copy link
Copy Markdown
Contributor

Spree::BackendConfiguration::MenuItem no longer accepts the positional sections and icon arguments; sections is replaced by a label: keyword and icon must be passed as a keyword. Pass label: :reports and icon: "file" instead, which removes two deprecation warnings on boot.

The REPORT_TABS constant was only used to supply the (now removed) positional sections argument, so inline :reports and drop the constant.

Spree::BackendConfiguration::MenuItem no longer accepts the positional
`sections` and `icon` arguments; `sections` is replaced by a `label:` keyword
and `icon` must be passed as a keyword. Pass `label: :reports` and
`icon: "file"` instead, which removes two deprecation warnings on boot.

The REPORT_TABS constant was only used to supply the (now removed) positional
sections argument, so inline `:reports` and drop the constant.
@jarednorman
jarednorman merged commit 9bbc2ef into solidusio-contrib:master Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants