-
Notifications
You must be signed in to change notification settings - Fork 163
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
Webservice: List issued certificates #644
base: MOODLE_404_STABLE
Are you sure you want to change the base?
Webservice: List issued certificates #644
Conversation
Hi, There are a few things that need addressed.
Please address these and I will take another look. |
Hi, thanks. I will try my best :-) .
|
|
Thanks @michallohnisky. Are you able to add some unit tests to this as well? Take a look at https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_404_STABLE/tests/external_test.php to see other examples. :) |
Regarding the points -
Cheers. P.S Once all done please squash into one commit. |
Are you able to grant me permission to run the checks? If I am able to run them immediately after every push, I think I can add some unit tests as well. |
You can run the unit tests locally before pushing them. :) https://docs.moodle.org/dev/Writing_PHPUnit_tests |
0f2a9f4
to
c6174b6
Compare
I understand :-) , but I would need to set up the whole development stage and Docker containers, and it would take a lot of time for a single unit test. I squashed the commits. |
I run the unit tests on my machine and I do not use Docker for Moodle development as I find the Moodle HQ container to be extremely slow. So, its possible to do this without Docker. |
Resolves #419 .
Use-case example:
An external application (CRM) periodically downloads new certificates and associates them with users using their email addresses. The
timecreatedfrom
filter is used to download certificates issued after the last synchronization.