This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Implement MSC3848: Introduce errcodes for specific event sending failures #13343
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
472d91d
Saving changes
Half-Shot 366bc6d
Add unstable spec auth errors
Half-Shot 60c9cf2
lint
Half-Shot 4cdb8a6
prefixing
Half-Shot f3defc6
notes
Half-Shot 8d6bafa
Drop mistakenly committed changes
Half-Shot b302d34
Add NOT_JOINED
Half-Shot 8d08d0f
Use msc namespace
Half-Shot ae053f4
namespace
Half-Shot eb870dd
Make errors configurable
Half-Shot 1a97541
tidy up if
Half-Shot 1d34f6b
make lint happy
Half-Shot 4f7629b
Pass in config to all error types
Half-Shot 5b3ef13
Appease python
Half-Shot 780ed56
reorder
Half-Shot 7ff61c9
lint again
Half-Shot 584351b
Make homeserver config optional
Half-Shot 1c19e5f
Fix optionals
Half-Shot c430045
mark as optional to appease code
Half-Shot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out a non-invasive way of providing
hs
to this class so instead here we just don't support unstable error codes on anything directly subclassingDirectServeJsonResource
.A cursory glance at the code seems to indicates this isn't used by any REST API classes that interact with the auth parts of Synapse, so it's unlikely we would raise an unstable error in those parts. Most APIs directly or indirectly subclass
JsonResource
, which does provide ahs
object.