-
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
feat: migrate from deprecated PublicEmitter to IEventDispatcher #856
Conversation
1c609b4
to
618cfe9
Compare
So that's for testing, and the |
Removed! PR ready to review! |
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.) |
There is failing CI. I see this also in an unrelated PR, so it do not think it is related to your changes. Nevertheless, I want to have this sorted out first so we have a green CI by default :) |
It was a regression within server, but fixed now. |
cfc9a46
to
dd4c0e6
Compare
@blizzz fixed php lint issues, rerun please! |
Now unit tests, they need adjustements. The IEventDispatcher has to be passed here https://github.com/nextcloud/user_saml/blob/master/tests/unit/GroupManagerTest.php#L57-L58 and maybe we want to check that |
@blizzz done! Please rerun, thanks! Is there any way to run the tests locally so that I don't depend on you to approve the workflow execution? Because looking at this file it seems that it depends on the fact that they must be executed through the workflow: user_saml/tests/unit/bootstrap.php Line 10 in 1a18095
|
If you have user_saml in an apps folder in a server checkout running locally will work. |
ce3d502
to
7a4b3c5
Compare
@blizzz now I hope that everything is corrected, locally at least everything works correctly. My problem was that I did not understand well the PHPUnit API and expects method when we want to check multiple invocations with different parameters of a method. In my case I have not used the "at" method that is used in "UserBackendTest.php" because it says that it is deprecated and will be removed in the next version of PHPUnit. I could correct the one in "UserBackendTest.php" but I don't want to do it in this PR to avoid touching files that I should not. |
@blizzz I don't understand the errors that appear in the MySQL workflow, if the tests are exactly the same and in other database providers they have worked correctly (SQLite and PostgreSQL) how is it possible that in MySQL not and with this error?
https://github.com/nextcloud/user_saml/actions/runs/9718183419/job/26826566029?pr=856 |
@blizzz I have corrected it anyway, it is that the field at class level was missing. The strange thing as I say is that it fails in some workflows but not in others. Apart from the fact that it is a warning but in reality it considers it an error. You can run the build again. |
Signed-off-by: Borja Domínguez Vázquez <[email protected]>
Signed-off-by: Borja Domínguez <[email protected]> Signed-off-by: Borja Domínguez Vázquez <[email protected]>
Signed-off-by: Borja Domínguez <[email protected]> Signed-off-by: Borja Domínguez Vázquez <[email protected]>
Signed-off-by: Borja Domínguez Vázquez <[email protected]>
Signed-off-by: Borja Domínguez Vázquez <[email protected]>
Signed-off-by: Borja Domínguez Vázquez <[email protected]>
5174efb
to
65ad97b
Compare
Thanks! Dynamic properties were deprecated in PHP 8.2, so earlier ones would pass. |
@blizzz have passed all the checks! Merge whenever you want, I'm all set! Thanks. |
Great! Thank you @bdovaz ! |
Fixes #853