Skip to content

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Mar 3, 2025

This adds a wrapper to HomeserverConnection which prevents any 'write' operation to be performed on the connection.

This is to help rolling out MAS with a simple way to rollback in case of issues.

A better version of this would give feedback on those operations, detect 'read-only' mode and update the UI accordingly. I might do this in another PR.

I also refactored the HomeserverConnection trait to remove the generic error type (because we always used anyhow::Error for now), and also made it so that we always carry an Arc<dyn HomeserverConnection> instead of a Box<dyn HomeserverConnection> that is created on the fly

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 3, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d0f1cf4
Status: ✅  Deploy successful!
Preview URL: https://961df87d.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-readonly-homeserver.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose requested a review from reivilibre March 3, 2025 16:28
@sandhose sandhose added A-Homeserver-Integration Integration with the homeserver T-Enhancement New feature of request labels Mar 3, 2025
@sandhose sandhose merged commit 7e1c825 into main Mar 4, 2025
30 checks passed
@sandhose sandhose deleted the quenting/readonly-homeserver branch March 4, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Homeserver-Integration Integration with the homeserver T-Enhancement New feature of request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants