-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add some user related events #851
base: master
Are you sure you want to change the base?
Add some user related events #851
Conversation
f20f152
to
04f182b
Compare
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! |
Is there any update on this PR? I've noticed the checks having been sitting at Expected for a hot second. Is there anything I can do to help move this forward? |
I am the bottle neck, I am afraid. Thank you for your contribution, @dermalikmann! |
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.
Could we also get in a test? There was one good attempt there that probably can be taken over, with adjusted classes: https://github.com/nextcloud/user_saml/pull/870/files#diff-de828f9df04940c610cecf388767da55bd9e27446a31c25ea1766c3d796d098e
@dermalikmann apologies for the late response and review. Are you still up for this? |
I just read through #870 |
@blizzz I copied over the test @x7airworker did in their PR. Feel free to merge, resolve the conflict by using the incoming changes (mine). |
Signed-off-by: Malik <[email protected]>
Signed-off-by: Malik <[email protected]>
Signed-off-by: Malik <[email protected]>
Signed-off-by: Malik <[email protected]>
Signed-off-by: Malik <[email protected]>
Co-authored-by: Arthur Schiwon <[email protected]> Signed-off-by: Malik Mann <[email protected]>
Signed-off-by: Malik <[email protected]>
Signed-off-by: Malik <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
7665af5
to
de99938
Compare
Yes, and it is a bit nightmarish. We have integration tests, but those treat it as a black box. We can implicitly assume that they are covered. While not asserted, the call is simple and there is no complex logic behind, so it should get through. Not as good as an explicit test, but acceptable. Rebased, resolved the conflict, and added minor fixes and style corrections. |
- also add missing import Signed-off-by: Arthur Schiwon <[email protected]>
66f8325
to
e1e9931
Compare
… oh but this tests keeps failing now, needs another closer look. |
Signed-off-by: Malik <[email protected]>
Ok, so I took another look at this, and it turns out, blindly copying someone else's code is not always the best idea. The test where I copied the check into ( The easiest solution to make the test pass, would be to chuck another event dispatch into the login() function here which would be also an awesome place to add a "UserFirstTimeLoggedInEvent", but for now I added only the normal UserLoggedInEvent. |
The first UserFirstTimeLoggedInEvent fits there, while the regular one should be outside of the condition of course, but i agree! |
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.) |
This issue initially popped up when looking into stjosh/auto_groups#74
For now only added:
UserLoggedInEvent
UserLoggedOutEvent
UserDeletedEvent
UserCreatedEvent
should be added as well, but the ClassConstructor expects the users password, and I would need to investigate what possible options we have at this stage, as the user's real password is not known.