-
Notifications
You must be signed in to change notification settings - Fork 30
fix: accept INavigationManager instead of NavigationManager in Filter… #1357
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
fix: accept INavigationManager instead of NavigationManager in Filter… #1357
Conversation
Head branch was pushed to by a user without write access
9b036be to
62cf97b
Compare
|
@skjnldsv How can we solve the Psalm issues?
|
|
Not a psalm expert unfortunately |
Add to ignore or type the member to the instance again.
@pulsarf0x This is not meant to be implemented. The class here is already an exception. Can you point out other apps that try to do things around the navigation manager replacing the service in the server? |
62cf97b to
0e9d812
Compare
The remaining failures are real. The methods that are not defined in the public interface are not defined in the |
3930221 to
3330164
Compare
|
Hello team, I’ve adjusted the Psalm configuration for compatibility with psalm checks for stable30. Thanks for you help guys. |
3330164 to
ddc33cf
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! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Hello, It looks like the checks that are currently failing are not directly related to my changes, but seem to originate from elsewhere in the codebase. Please let me know if there’s anything on my side that still needs to be addressed! Thanks ! :) |
ddc33cf to
822e72d
Compare
822e72d to
8aa7eaa
Compare
…edNavigationManager + cs fix - The constructor of FilteredNavigationManager now type-hints INavigationManager as the second argument, instead of the concrete NavigationManager class. - This increases compatibility with proxy and decorated navigation managers, improving app interoperability. Signed-off-by: Pascal Prugna <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
29459db to
cf6a60e
Compare
cf6a60e to
4ab4e84
Compare
Signed-off-by: Pascal Prugna <[email protected]>
4ab4e84 to
68e4b12
Compare
Description
This pull request updates the constructor of
FilteredNavigationManagerto accept anINavigationManagerinterface as its second argument, instead of the concreteNavigationManagerclass.This change improves compatibility with proxy or decorated navigation manager implementations (such as custom proxies in other apps), and increases overall flexibility and interoperability.
Context
NavigationManager, which caused issues when passing an implementation ofINavigationManager(e.g., a proxy or decorator).INavigationManagerto be used.Signed-off-by:
[Your Name]
<[email protected]>