-
Notifications
You must be signed in to change notification settings - Fork 60
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
Smart menu #300
Smart menu #300
Conversation
Hey @stefanscholz and @prasanna-lmsace , as you have told me that this PR is ready to be reviewed, Stefan, I will now remove the "Draft" status and will start now reviewing this PR. Please note that I might push review changes directly to your branch. If you need to add any further commits, please add them on top of my review changes and do not overwrite them. Thank you! Cheers, |
Hi, during functional testing of the smart menu feature in our local testing environment, we made the following observations: Specification of the local testing environment 1. A smart menu item "static" and "heading" cannot be saved. To reproduce: type static URL type heading 2. Fallback "extra menu item" leads to system crash Resulting out of the behaviour described in 1 we tried to implement a fallback which made the whole system crash. We put an extra menu item in the main navigation via the theme settings, that links directly to the URL we wanted to link to in the first place. We had used this functionality before for the time being to provide quick access to the course request form. The idea was to combine this with the smart menu that would then sit next to the custom menu item in the case the static link would take some more time. To reproduce (see also screen 3): After this was done the session was destroyed and the user (admin) was logged out. Trying to login and reuse the system constantly reproduces the following errors, see also screen 1 and sometimes screen 2. Warning: session_start(): Failed to decode session object. Session has been destroyed in /var/www/html/lib/classes/session/handler.php on line 45 line 159 of /lib/classes/session/manager.php: core\session\exception thrown We hope the given screenshots and error message help to identify the problem. I tried out the smart menu in https://m41.bdecent.io/ before and adding headings and URLs as static links to the menu worked out fine, so we are really keen on finding out what the problem could be. Are there extra menu items set? I didn’t want to take a risk and crash that system too, so I didn’t add one. Regards |
@prasanna-lmsace @stefanscholz - My review of this PR is still ongoing. Please note that I just rebased the PR branch onto the latest master. Additionally, I squashed the PR branch so that just one commit remains and the PR just increments the theme's version by one. This will help the integration which will happen soon. |
I just pushed a commit with my latest review results. It does not change the contributed functionality, but helps to integrate the patch into the existing codebase. |
541f4eb
to
7194e0e
Compare
Hi @prasanna-lmsace , thank you very much for pushing some very important fixes and improvements to the smart_menu branch which is the basis for this PR. As I have written above, I am still in the middle of the code review of this really large piece of code. And I have added a "Review changes" commit on top of your developments which polishes your code in many ways and helps to integrate it into the existing codebase. However, I had to see that you did not rebase your latest changes properly onto the codebase which was already there in the smart_menus branch. You somehow merged my changes into your codebase and then pushed it. This makes it really hard for me to understand what you have really changed recently. Please look at this image: The commits which I have stroke through must not be there. You should just add additional commits, ideally one commit per fixed issue and improvement. After speaking to @stefanscholz , I have now foce-pushed my latest reviewed codebase again and have thus reverted your latest changes. I would like to ask you to rebase your work properly and to re-push the commits into the branch. To help you to do this, I will not push any review changes until your commits are there again. Thank you for your cooperation :) |
Thank you @prasanna-lmsace very much for pushing proper commits to the branch now, I highly appreciate your effort! |
b53cc3b
to
b64d2d4
Compare
41a7f30
to
6da18db
Compare
- Fix UN-201, UN-206
Fix - UN-210
…cker. Fix - UN-213, UN-209
Thank you all for working on and commenting in this PR! I will provisionally merge this now into the master branch to allow the remaining minor issues which have been discovered internally to be handled within dediated follow-up Github issues over the next days. An official release on moodle.org/plugins which includes the smart menus will follow as soon as we have burnt the list of follow-up issues down. Cheers, |
This pull request contains an early version for the smart menu feature (#137) as well as some foundational work for the menu bar #136.