-
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
fix(joinCommunity): Fixing permissions checks in join community flows #14215
base: master
Are you sure you want to change the base?
Conversation
@jrainville I'd really appreciate your thoughts here. |
Jenkins BuildsClick to see older builds (12)
|
IIRC, the reason why we moved the models to the community module instead of the chat section one was because we use those models in the community portal as well. So even before the community is spectated, we want to be able to see what permissions they have. I think maybe because you could access the community from the settings screen too. All in all, I agree that having the model is the chat section is way better, but it's also a lot of work and it will break some parts like community portal and probably something else I forgot. IMO, this work should be done for 2.29 and be analysed well beforehand, because like you saw, it can snowball and then you realize too late that you've broken one of the modules by accident. |
The models used in the community portal have the token permissions and also the tokens requirements met flag. So we might get away with it. |
4b8d34e
to
93d7476
Compare
93d7476
to
86a39c3
Compare
What does the PR do
Closing: #14095
Closing: #14200
Closing: #12326
Moving the permissions model from communities module to chat section module (at least that's the main intention). But we'll need to also move or adapt other dependencies like check permissions on selected addresses, revealed addresses.
Motivation: The current implementation in communities module is built based on the assumption that we'll need the permissions for only one community at a time. But it's not the case. We have lots of qml bindings on the permission model, each one requesting the model for a new community because the permissionsModel access is done something like:
O top of this, there are issues with permission update events handling and we're not always seeing the permission updates in qml.
Affected areas