-
Notifications
You must be signed in to change notification settings - Fork 82
Feature: Change AI course assistance placement button location, resolves #894 #945
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
base: main
Are you sure you want to change the base?
Feature: Change AI course assistance placement button location, resolves #894 #945
Conversation
5171911 to
6527f1c
Compare
|
Note that this uses the function To prevent this, I suggest overriding the aiplacement_courseassist hook with a custom callback (instead of disabling it) which checks whether Boost Union is the current theme and calls the original aiplacement_courseassist callback if it is not. Do you agree with this solution @abias? I'm not sure where to place this new callback. It doesn't make sense to me to put it in the logical place for hook callbacks (i.e., |
e0fb8ed to
5018b95
Compare
|
I have updated the changes for Moodle 5.0 and fixed the problem outlined above. The solution looks a bit different than proposed initially because it is not actually possible to override a hook with a custom callback using |
5018b95 to
c89bd21
Compare
|
The failed Behat tests don't seem to be related to my changes, if I'm not mistaken. |
|
Thank you @larsbonczek for working on this improvement.
No, they are not related. I am working on these failures in #973 |
c89bd21 to
db3e34e
Compare
christianwolters
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Documentation
- Commit Message understandable and issue referenced (via resolves keyword)
- Patch author correct
- CHANGES.md --> appended in review
- README.md appended
- Credits appended
- Appropriate Comment quantity
- Successful Moodle PHPDoc check
version.php
- Checked if $plugin->version increment necessary (and increment done if necessary) -> incremented in review
- $plugin->release untouched
lib.php
- Only necessary functions
Languages
- Only english strings
- Necessary magic strings added (e.g. capabilities)
Automated tests
- New functionality covered
- No failing steps or scenarios
Mustache templates
- Not applicable Example context exists
CSS and styles.css
- Bootstrap styles used if possible
Duplicated code
- Duplicated code is marked properly
Github action
- All green
Commit history and scope
- Already single commit
- Focus on single purpose
- No surplus files
Additional aspects for Boost Union
- No usage of $theme->settings
- Usage of isset() checks when processing plugin settings in renderer / output code --> added in review
- Usage of admin_setting_configselect instead of admin_setting_configcheckbox
- Modified mustache templates properly marked and .upstream template in place
Review result
Hey @larsbonczek,
thank you for your contribution to Boost Union.
I made some minor changes, but the feature worked as advertised in my tests and review.
Cheers
Christian
8b41622 to
db3e34e
Compare
|
@christianwolters thank you for the review! The issue is not currently marked as approved because of your last force push. Could you maybe approve it again? |
Code is designed to be future-proof (works with upcoming changes to aiplacement_courseassist in Moodle 5.0)The styles mentioned above will break in Moodle 5.0 :(