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

onOffice menu item disappears in the WP backend #769

Closed
3 tasks done
fredericalpers opened this issue Mar 8, 2024 · 2 comments · Fixed by #771
Closed
3 tasks done

onOffice menu item disappears in the WP backend #769

fredericalpers opened this issue Mar 8, 2024 · 2 comments · Fixed by #771
Assignees
Labels
bug Indicates an unexpected problem or unintended behaviour component: dashboard Issue, Pull Request or Discussion related to dashboard / settings page QA Issue or Pull request that is in review
Milestone

Comments

@fredericalpers
Copy link
Member

fredericalpers commented Mar 8, 2024

Initiative

Bug fixing for the onOffice for WP-Websites Plugin

Epic

Restore visibility of "onOffice" Menu Item in WordPress Admin Sidebar.

User Story

As a user managing my website, I've encountered a bug where the "onOffice" menu item disappears from the left menu bar editing pages. This issue has arisen after updating to version 4.18 of the onOffice for WP-Websites plugin and is in direct correlation with Commit 43305 backend performance. The disappearance of the "onOffice" menu item disrupts my workflow and makes it challenging to access important functionalities provided by the plugin.

To ensure seamless usability and functionality of the onOffice WordPress integration, I propose resolving the bug.

Tasks

  • Investigate the changes introduced in version 4.18 of the onOffice plugin to identify the cause of the "onOffice" menu item disappearing.
  • Develop a fix to restore the visibility of the "onOffice" menu item in the WordPress admin sidebar when editing pages.
  • Conduct thoroug testing to verify that the bug fix resolves the issue effectively.

By addressing this bug, users will regain access to the "onOffice" menu item in the WordPress admin sidebar, allowing them to efficiently manage their website's functionalities without disruption.

Menu item: https://snipboard.io/dGBkru.jpg
Menu item dissapeared: https://snipboard.io/bxKehR.jpg

@fredericalpers fredericalpers added the bug Indicates an unexpected problem or unintended behaviour label Mar 8, 2024
@fredericalpers fredericalpers added this to the v4.22 milestone Mar 8, 2024
@dai-eastgate
Copy link
Contributor

@fredericalpers yes, I will check it now.

@fredericalpers fredericalpers added the component: dashboard Issue, Pull Request or Discussion related to dashboard / settings page label Mar 11, 2024
@yeneastgate
Copy link
Contributor

@fredericalpers We have checked and found that the cause of this bug was that we were still using some plugin features on the edit page. However, we returned $pDI before those functions were executed.

We also did not expect this problem because coincidentally when using the editing page, we used the full-screen editing feature.

image
We did not detect this bug during testing. We apologize for this problem.

Here is the list of plugin features used in the edit page

  1. Menu at the office
    image

  2. Bar menu at the office
    image

  3. Cache in onoffice bar menu
    image

  4. Save page (add shortcode)
    image

  5. Delete page (remove shortcode)
    image

We've narrowed the impact down to just edit_page in the condition code.
image

Therefore other feature pages will not be affected. so the functionality of wp-onoffice-plugin on the client site is not affected

We have refactored the code. You can review and test it in this branch 45733-onoffice-menu-item-disappears-in-the-wp-backend.
Please watch the demo video and let me know your idea.
https://files.fm/u/tx36erpaay#/view/3zx4ywvr6e.

@fredericalpers fredericalpers added the QA Issue or Pull request that is in review label Mar 12, 2024
@fredericalpers fredericalpers modified the milestones: v4.22, v4.19 Mar 12, 2024
@yeneastgate yeneastgate self-assigned this Mar 13, 2024
@fredericalpers fredericalpers linked a pull request Mar 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behaviour component: dashboard Issue, Pull Request or Discussion related to dashboard / settings page QA Issue or Pull request that is in review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants