fix: Properly disable some functionality when related experiments aren't enabled #2533
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2533
Loading…
Reference in a new issue
No description provided.
Delete branch "nex/fix/more-experiments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#2517 introduced the new experiments policy, but forgot to hook half of the experiments up to actual code functionality. This PR plugs that gap, and also adds a couple proposals that I missed our implementation of.
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
@ -344,3 +346,3 @@let mut scopes = BTreeSet::from_iter([OAuthClientScope::ApiFullAccess]);if services.admin.user_is_admin(&sender_user).await {if services.config.experiments.msc4484.is_enabled()this will break the admin routes. we enable the ruma msc4484 feature flag, so the scope list for the admin routes always includes the admin oauth scope, meaning that this change will just make them unusable for admins.
I thought it'd break something. How do you think I should approach this then? I'm not too familiar with the admin scope stuff
there isn't really a good approach tbh, I'll give it some thought
I think the best way to do it is, if the MSC is disabled:
to_scopes, it's ugly and not RFC-compliantI think
c95f3afc85solves this?works as advertised
@ -67,2 +71,4 @@"vapid": services.pusher.webpush_vapid_public_key()}),)?;Was redirected from #2542 but not sure where to leave a review. Please make sure that sticky events is natively supported and that
org.matrix.msc4354is advertised in/versions.You were misinformed that the issue was introduced in this PR, it was actually just in main, and addressed by
b3d099a52a. I don't think this PR has been rebased yet though