-
Notifications
You must be signed in to change notification settings - Fork 139
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
Admin tool to clear application or system tokens #1695
Comments
Office365-Maintenance-Reset-Token.zip This change need to be merge ASAP and upgrade step as noted removed. |
Hi @tlock, Thank you for raising the issue. I understand the root of your concern, but the user sync task already handles it. The code change was made on purpose and in our tests, it does what it's supposed to do.
The logic ensures it will not process only 200 users in a task run. On a separate note, could you confirm based on which version was your patch file created please. It cannot be applied in the latest code in MOODLE_39_STABLE or MOODLE_310_STABLE branch. Regards, |
Hi Lai, The code was based on 3.8.0.1 and detected this issue while looking at the 3.10 code. In regard the raised issue, I didn't noticed the loop to get more than 200 users per cron run. That itself is great, but running the sync previously from start to finish was hours which concerns me because I don't see any guard again the cron job running over the top every hour. As discussed originally, force re-sync needs to controlled and additional fields will not be included to till that has occur by running the maintenance operation to "Hard reset" the tokens. Therefore, I have commented out the problem line and will address separately. Regards, |
Hi @tlock, Am I right in understanding this issue can be closed? Regards, |
Hi @weilai-irl , Are you able to implement the code as suggested, then I'd be happy for this to be closed. |
Hi @tlock, As explained in my first comment, unsetting the If the purpose of your proposed change is to provide a way for Moodle site admins to manually reset the Regards, |
Hi @weilai-irl, I will update the patch with the latest code in due course and post here. |
o365-moodle/local/o365/db/upgrade.php
Line 649 in 6a210db
This should have never made into the codebase because everybody with a decent directory will have to fetch again at 200 user per hour unless they increase the frequency for a nice have "additional profile fields" which would occur on next login of the user.
The text was updated successfully, but these errors were encountered: