-
Notifications
You must be signed in to change notification settings - Fork 7
Avoid immediate re-expiration of accounts #873
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
Conversation
nickvergessen
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.
But otherwise looks good and solves the problem.
It didn't matter in the past as we only deleted users and disabling is rather new.
|
@nickvergessen I addressed all your comments and tested manually that it works as expected. However, there seems to be an issue with the autoloader not finding the |
Basically needs a copy of nextcloud/notifications#2352 For apps that are not part of server, you need to go into the apps/user_retention/ directory and then install dependencies Edit: Merged that with #876 |
4e8ec1f to
ccbe684
Compare
Hmm not sure to be honest. Here's what I was doing:
Tests were never failing because of autoload issues using this setup. But I do get some warnings from git for example, about the fact that the directory is owned by a user with id 1000 and not by the root user, but this should not be related. In any case thank you for addressing the issue with the autoloader! I was planning to look into it first thing today but you were faster 🚀 |
nickvergessen
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.
Having a look today or tomorrow
Signed-off-by: Salvatore Martire <[email protected]>
This commit fixes an issue where a user that has been inactive for a while, had their account disabled automatically by this app and then re-enabled by an admin would get their account disabled again, if they would not log-in again before the next run of the background-job. Signed-off-by: Salvatore Martire <[email protected]>
ccbe684 to
4b4203c
Compare
Signed-off-by: Joas Schilling <[email protected]>
4b4203c to
aed567e
Compare
nickvergessen
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.
Cleaned up the coding style to my personal preference
|
/backport to stable29 |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Summary
This PR fixes an issue where a user that has been inactive for a while, had their account disabled automatically by the background-job in this app and that has been re-enabled by an admin would get their account disabled again, if they would not log-in before the next run of the background-job.
Checklist