Skip to content

Conversation

@CGastrell
Copy link
Contributor

@CGastrell CGastrell commented Jun 6, 2025

WIP

Part of FORMS-133

Proposed changes:

This PR removes all code related to the dashboard and menu item migration

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

No

Does this pull request change what data or activity we track or use?

No

Testing instructions:

Sadly these removals don't have a very consistent way of being tested. Run tests with jetpack test php packages/forms.
Then navigate wp-admin. See that Jetpack > Forms works fine. See that installing polldaddy plugin will trigger the Feedback menu on the sidebar.
Sync to a JN site and a Simple site, verify nothing breaks on Calypso.

@CGastrell CGastrell self-assigned this Jun 6, 2025
@CGastrell CGastrell added [Status] In Progress [Type] Janitorial [Type] Task Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR labels Jun 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the remove/jetpack-forms-dashboard-migration-cleanup branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack remove/jetpack-forms-dashboard-migration-cleanup

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2025

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add a "[Type]" label (Bug, Enhancement, Janitorial, Task).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@jp-launch-control
Copy link

jp-launch-control bot commented Jun 6, 2025

Code Coverage Summary

Coverage changed in 1 file.

File Coverage Δ% Δ Uncovered
projects/packages/forms/src/contact-form/class-contact-form-plugin.php 471/1379 (34.16%) 0.29% -12 💚

Full summary · PHP report · JS report

Coverage check overridden by Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR .

@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 01b44e4 to 46686be Compare June 6, 2025 17:50
@github-actions github-actions bot added the [Block] Contact Form Form block (also see Contact Form label) label Jun 6, 2025
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 46686be to 8bb753d Compare June 9, 2025 15:41
@CGastrell CGastrell changed the base branch from trunk to remove/contact-form-legacy-admin-files June 9, 2025 16:59
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from c0c4be0 to 9aeddde Compare June 9, 2025 19:05
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch from 3b48cbd to e8e1245 Compare June 12, 2025 19:22
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 9aeddde to 973ca3b Compare June 12, 2025 19:27
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch from e8e1245 to ce02411 Compare June 13, 2025 22:24
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 973ca3b to 185f555 Compare June 13, 2025 22:43
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch from ce02411 to 4b0d868 Compare June 24, 2025 13:41
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 185f555 to 5482344 Compare June 24, 2025 14:15
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch 2 times, most recently from a43d653 to d074545 Compare July 4, 2025 16:00
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 6ca04d0 to a3a6a16 Compare July 4, 2025 16:34
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2025

This PR has been marked as stale. This happened because:

  • It has been inactive for the past 3 months.
  • It hasn't been labeled `[Pri] BLOCKER`, `[Pri] High`, `[Status] Keep Open`, etc.

If this PR is still useful, please do a [trunk merge or rebase](https://github.com/Automattic/jetpack/blob/trunk/docs/git-workflow.md#keeping-your-branch-up-to-date) and otherwise make sure it's up to date and has clear testing instructions. You may also want to ping possible reviewers in case they've forgotten about it. Please close this PR if you think it's not valid anymore — if you do, please add a brief explanation.

If the PR is not updated (or at least commented on) in another month, it will be automatically closed.

@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch 2 times, most recently from 7f51231 to 68dd321 Compare September 23, 2025 18:41
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch 2 times, most recently from dd051e7 to 6de2cf5 Compare September 23, 2025 19:28
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch from 68dd321 to ab9ad30 Compare November 20, 2025 14:14
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 6de2cf5 to 2e2f369 Compare November 20, 2025 14:58
@CGastrell CGastrell force-pushed the remove/contact-form-legacy-admin-files branch from ab9ad30 to ccc10f3 Compare December 5, 2025 15:22
Base automatically changed from remove/contact-form-legacy-admin-files to trunk December 8, 2025 13:50
@CGastrell CGastrell force-pushed the remove/jetpack-forms-dashboard-migration-cleanup branch from 4d80d93 to 0bf2756 Compare December 8, 2025 21:00
*
* @return string
*/
private function append_tab_to_url( $url, $tab, $is_classic_view ) {
Copy link
Contributor

@edanzer edanzer Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason to convert this to a static function? No big deal. Just curious. We should be sure we catch any other places the function is used (if relevant).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't want to be instancing the dashboard switch class when we don't need it, it's a simple mechanism. And previous changes remove the initial instantiation of the class, so there's no more a way to call it as a class method, only static. The same function exists on Dashboard class. The original idea was to delete the method (or the entire class), this is the safer approach.

Copy link
Contributor

@edanzer edanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look sane. I tested this in both self hosted and WordPress.com environments, since menu logic is a bit different in those places. Everything is working well for me in both environments. Also tests pass.

I added a few questions.

I think the main concern with this will be whether there are edge cases where users are still using the old / classic Feedback page. It's tricky to identify those cases (if they exist) and test them.

@CGastrell knows this menu space very well. So if he feels comfortable with my questions, and given everything is working, I think we'd be good to merge this. Still holding no approving though, since I'm not sure on edge cases myself yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Contact Form Form block (also see Contact Form label) Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR [Feature] Contact Form [Package] Forms [Status] In Progress [Tests] Includes Tests [Type] Janitorial [Type] Task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants