-
Notifications
You must be signed in to change notification settings - Fork 217
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
Update MSC4028 implementation: Enable the unstable push rule by default #16846
Comments
Hello! Recently discussed here: |
For context, the unstable Lines 593 to 597 in d4e3ad0
Ideally we would just rename it in the codebase and provide a database migration to do the same for users automatically. This would result in push notifications being sent to mobile clients with the new rules immediately. As for clients that compute push rules locally... do clients regularly pull down their push rules? If so, then we don't need to worry about telling clients proactively and can wait until they update themselves. I apologise for such a slow response on this ticket. What would you currently like to see done about this issue? I see that the MSC hasn't moved forward much in the meantime, and is still not accepted. |
Thanks @anoadragon453
I'm requesting here to update the synapse implementation of MSC4028 in order to enable by default the unstable push rule org.matrix.msc4028.encrypted_event. By this way the synapse implementation will be aligned to my last MSC update
Yes, a plan was defined to move progressively on this MSC by enabling it progressively: https://github.com/matrix-org/internal-config/issues/1469. Unfortunately our efforts went on other topic. |
@giomfo generally we don't enable experimental features by default until they've been accepted into the Matrix spec. Doing so would enable it on If you need the feature enabled by default on |
@anoadragon453 I think you misunderstood my request. I'm asking here to enable the new push rule by default. I'm not asking to enable the feature itself. I agree that about the feature we should consider beta.matrix.org (this is the plan described here) The mistake that I did when I wrote the MSC is to disable the unstable push rule by default (in its definition), which is not relevant and useless, because the unstable push rule is added as an experimental feature (when it is enabled). Hope this is clearer, ping me for a quick sync if not |
I see. So you would like to have the unstable push rule in client's push rules by default, even if the feature is disabled on the homeserver. The homeserver would ignore the push rule and not process it if the feature is disabled, and clients that don't know what the unstable push rule means won't process it either. I suppose that's fine, and I can whip up a PR with the appropriate logic. |
@giomfo Ah, I've just realised that by "enabling" the push rule, you may have been referring to setting the However only doing that, while leaving the experimental feature disabled, will still result in the push rule being filtered out before being sent to clients, due to this logic. Would you like to not filter the push rule even when the experimental feature is disabled? I don't think there's really an issue with doing so, as only clients that understand the unstable push rule should (in theory) act on it. |
Yes, exactly 😄
I would prefer to follow the same behavior as the other experimental feature. My request is mainly to have the right |
I've created a PR for this at #17826 Please let me know if this does not satisfy the requirements. |
…#17826) Clients will still only see this rule if the corresponding experimental feature, `msc4028_push_encrypted_events`, is also enabled. This aligns the implementation with MSC4028, specifically [this section](https://github.com/matrix-org/matrix-spec-proposals/blob/giomfo/push_encrypted_events/proposals/4028-push-all-encrypted-events-except-for-muted-rooms.md#unstable-prefix). See #16846 for context.
PR #17143 fixed my request 👍 |
Since MSC4028 has been implemented, I updated the spec about the unstable push rule with this commit.
Indeed the unstable push rule
org.matrix.msc4028.encrypted_event
used during development should be enabled by default like the stable push rule.This change has been triggered by a comment from the mobile dev team here. I realized that it was not risky to enabled this unstable push rule by default because we are using the experimental mode. Apply the same enabling value on the unstable and the stable push rules would make more relevant the current tests of this feature. See here the current test plan.
I would add here a question for the Backend team: How the new push rule is handled when the MSC has successfully passed a merge FCP? I mean when the feature becomes stable.
Is the unstable push rule (stored in the existing account data) renamed/replaced automatically with the stable push rule?
The text was updated successfully, but these errors were encountered: