Skip to content
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

[Navigation Feature] Remove code strategically #48997

Closed
psealock opened this issue Jul 2, 2024 · 3 comments · Fixed by #51559
Closed

[Navigation Feature] Remove code strategically #48997

psealock opened this issue Jul 2, 2024 · 3 comments · Fixed by #51559
Assignees
Labels
team: Ghidorah WC Onboarding

Comments

@psealock
Copy link
Contributor

psealock commented Jul 2, 2024

Instead of going through a deprecation process, we could remove the code functionality all at once and keep the classes like \Automattic\WooCommerce\Admin\Features\Navigation\Menu intact with dummy functions that return nothing, or maybe a notice. The default would be the current experience. Add a Tracks event in there and we’ll know for sure if anyone is actually using this feature.

@psealock psealock added the team: Ghidorah WC Onboarding label Jul 2, 2024
@psealock psealock self-assigned this Aug 1, 2024
@psealock
Copy link
Contributor Author

psealock commented Aug 6, 2024

Internal plugins with registration

These plugins have Navigation integration we need to remove. woocommerce/woocommerce-admin#5335

@tomalec
Copy link
Member

tomalec commented Sep 2, 2024

Does the reference to "WooCommerce Navigation" in

* `nav_args` (_optional_) - An array of parameters for registering items in WooCommerce Navigation. (see usage below)
* `order` - Order number for presentation.
* `parent` - Menu for item to fall under. For example: `woocommerce`, `woocommerce-settings` or `woocommerce-analytics`. Categories added by an extension are available as well.
means the removed navigation, or the regular one?

Also, should we keep the code like this https://github.com/woocommerce/woocommerce/blob/8b35b0785c761bda0b90188ade462c83af5b3643/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php#L122:L138 in place for some longer support?

@psealock
Copy link
Contributor Author

psealock commented Sep 3, 2024

means the removed navigation, or the regular one?

Thanks @tomalec, yes that is the one that was removed. Thanks for surfacing.

Also, should we keep the code like this

Good find as well, this can be safely removed. I can't think of a reason why "Payments" would need to be added once again if the option is set to yes as the entire UI has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: Ghidorah WC Onboarding
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants