-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/sync on category #8
base: master
Are you sure you want to change the base?
Conversation
Thanks Adrian, please can you remove the last 2 commits (I already have an MR from someone else I need to merge for moving to GHA, and I don't think we should be removing the Travis file - I still use it for instance) Also, we are only retrieving roles assignable in the system context (from memory), these aren't necessarily the same roles that we can assign in category context - can you double check that? Thanks again! |
Hi @paulholden Oh, you're right I didn't give attention to the roles contexts. Because in our case we only want to add For me this feature can also be integrated on a later point. So in this iteration, the plugin only allows to set system roles to categories. Which is already a gain! What do you think? PS: I will remove the last 2 commits, therefore I'll make two branches. One for merging and one to have the test results. Greets |
7affba7
to
f0baf3f
Compare
Hi @paulholden I've implemented now your mentioned point, about assign only given roles in a context. Hope you are happy about this implementation. If not, feel free to address some minor issues. I'll have actually no more resources to help to solve issue #1. Thank you for your hard work to finally integrate it! Greets |
f0baf3f
to
071ffdf
Compare
Hi @paulholden Just fixed a bug, which throws this output: -->local_cohortrole
Default exception handler: Unbekannter DDL Library Fehler Debug: Field local_cohortrole->categoryid cannot be added. Not null fields added to non empty tables require default value. Create skipped
Error code: ddlunknownerror
* line 540 of /lib/ddl/database_manager.php: ddl_exception thrown
* line 129 of /local/cohortrole/db/upgrade.php: call to database_manager->add_field()
* line 692 of /lib/upgradelib.php: call to xmldb_local_cohortrole_upgrade()
* line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
* line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()
!!! Unbekannter DDL Library Fehler !!!
!! Field local_cohortrole->categoryid cannot be added. Not null fields added to non empty tables require default value. Create skipped
Error code: ddlunknownerror !!
!! Stack trace: * line 540 of /lib/ddl/database_manager.php: ddl_exception thrown
* line 129 of /local/cohortrole/db/upgrade.php: call to database_manager->add_field()
* line 692 of /lib/upgradelib.php: call to xmldb_local_cohortrole_upgrade()
* line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
* line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()
!! This Wednesday we'll use this branch on our productive system. So I would really appreciate it, if you could review this pull request soon. Greets |
Hi @paulholden With the help of @mserve I've included some new improvements. Hope this feature will land soon and you can find some time to review it. Best |
Hi @paulholden , hi @adpe , I did not find the time to recheck this PR - it might include an issue with Moodle installations not having a category id=1 anymore, such as our Moodle installation where categories have been coming and going through the last 10 years since being in productive state. Will try to do so by End of June when semester ended! BR, |
…h with all parents)
d9ca459
to
9665e77
Compare
Hi @paulholden I've just rebased our branch and bumped the versions... Didn't have more time to solve the problem @mserve with the ID's of the category, e.g. 1. Cheers |
Hi @paulholden Thank you for developing the great plugin. We are using it conveniently in our organization. I too would like to see Adrian's commits merged into this plugin! Thanks |
Dear @paulholden Many thanks and a lovely day!!! peta |
Will help to solve #1
Further I've added GitHub Actions as we don't have any free TravisCI credits.
PS: As I'm using a Moodle core function not available in Moodle 3.5. Do you want really keep a simple
master
branch? I think you should go for different branches. So that this new feature will only be available for newer Moodle releases.HTH
Adrian