-
Notifications
You must be signed in to change notification settings - Fork 16
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
Convert provider from twisted deferreds to async #5
Comments
yep, prevents me from upgrading to v1.19.x |
Just tested with synapse v1.20.1
BUT yesterday @devplayer0 created a fork with a fix :=) cheers. @anoadragon453 just use the fork https://github.com/devplayer0/matrix-synapse-rest-password-provider @ma1uta would be great if you could merge the fix into this repo. |
I should probably open a PR for this! Unfortunately I've been really busy and just wanted to get this working for my deployment of Synapse. The issue is with compatibility for older versions, I've no experience with twisted, async Python or the Synapse codebase so I was just following the instructions in this comment. |
ok, i see the issue. this would need some kind of version check to be productive. but otherwise matrix-synapse-rest-password-provider should rather be compatible with a recent matrix version than breaking recent versions in favor of being combatible with older versions. the current state is the least desirable i think. moreover current old server will still run. they will not suddenly download a more recent version of matrix-synapse-rest-password-provider just because there is a release on github. anyway thanks a lot for the fix @devplayer0 ❤️ |
I can help review a PR if necessary. |
@ma1uta Is this repo still maintained? If yes: If you are too busy i would try to create a PR |
Yes, but I not so good in Python. |
ok, no worries, i am a python coder :D although i am not very familiar with the matrix universe (in a coding sense) I would love to contribute and help out wherever i can. and i guess there are some more people dependent on this repo and therefore will help happily :) |
Unfortunately I'm quite busy with university stuff at the moment :( I would like to clean my code up and maybe get it working with older versions of Synapse, but I don't see that being possible for a while. EDIT: I suppose the handiest thing might be to make a PR with my changes and tag it as a breaking upgrade? @ma1uta Would that work? |
Yup, I can mark a new release with a new tag v0.2 for example if PR will break backward compatibility. |
Great, I should actually be able to check through what I changed in my fork before and open a PR in a few hours. |
@ma1uta Bump :) |
Someone mentioned in matrix-org/synapse#8108 that they used a very similar implementation of a password provider to the one in this repo, which has started raising exceptions come Synapse v1.19.0. This is due to Synapse phasing out Twisted
defer
calls, and instead switching to Python async/await (which brings increased performance and ability to profile the codebase).@menturion updated the codebase according to their comment. The same will likely need to happen here for this provider to work properly with Synapse v1.19.0.
The text was updated successfully, but these errors were encountered: