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
Drop backwards-compatibility support for "outlier" #10903
Merged
Merged
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Drop old functionality which maintained database compatibility with Synapse versions before 1.31. |
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.
strictly speaking, the change to schema version 60 came later than #9411, but near enough.
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.
Should this note be in a comment on this line, or in a
Changes in SCHEMA_COMPAT_VERSION = 60:
section as above?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.
well, that would be a bad name for the section, since it's not really a change in the "schema compat version" - I'm not even sure that makes any sense. But it's a fair question to ask if it should be in a bit of a longer comment rather than a one-liner here.
What I'm trying to avoid is the situation where somebody bumps the number and forgets to update the comment. I figure if they are on the same line, you have to try extra hard to mess it up. But it does only leave me with about 50 characters, which makes for a rather terse comment.
We could go with a separate comment and also a "# remember to update the comment above" comment, but that feels kinda clunky too.
So, open to suggestions/discussion.
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 was mostly just worried about there only being room for a single note here, which would get overwritten in the future when other changes are made.
But are historical changes not a concern here?
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.
Maybe we could match the style of the other comment, but come up with a more accurate heading?
I do worry that putting a comment on the line has led you to making it a bit terse that I didn't know what you meant until reading the code.
However, wouldn't mind if you thought that we may well not care about the history and the presence of a comment may not particularly matter — git blame can point you to where things are changed.
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.
well no, not really. Once we dropped support for synapses with
SCHEMA_VERSION == 60
, we'll no longer really care about the reasons we dropped support for synapses withSCHEMA_VERSION == 59
. It's the same reason we don't keep a complete history in https://github.com/matrix-org/synapse/blob/develop/synapse/python_dependencies.py: as long as we don't support Twisted 16, who the hell cares why we don't support Twisted 14?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.
maybe we don't need a comment here at all. After all, there's always git. I just thought it might be helpful for the curious.