Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into shhs
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed Jun 4, 2019
2 parents 8fe26db + c831748 commit e7c1171
Show file tree
Hide file tree
Showing 35 changed files with 836 additions and 211 deletions.
59 changes: 59 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
Synapse 0.99.5.2 (2019-05-30)
=============================

Bugfixes
--------

- Fix bug where we leaked extremities when we soft failed events, leading to performance degradation. ([\#5274](https://github.com/matrix-org/synapse/issues/5274), [\#5278](https://github.com/matrix-org/synapse/issues/5278), [\#5291](https://github.com/matrix-org/synapse/issues/5291))


Synapse 0.99.5.1 (2019-05-22)
=============================

0.99.5.1 supersedes 0.99.5 due to malformed debian changelog - no functional changes.

Synapse 0.99.5 (2019-05-22)
===========================

No significant changes.


Synapse 0.99.5rc1 (2019-05-21)
==============================

Features
--------

- Add ability to blacklist IP ranges for the federation client. ([\#5043](https://github.com/matrix-org/synapse/issues/5043))
- Ratelimiting configuration for clients sending messages and the federation server has been altered to match login ratelimiting. The old configuration names will continue working. Check the sample config for details of the new names. ([\#5181](https://github.com/matrix-org/synapse/issues/5181))
- Drop support for the undocumented /_matrix/client/v2_alpha API prefix. ([\#5190](https://github.com/matrix-org/synapse/issues/5190))
- Add an option to disable per-room profiles. ([\#5196](https://github.com/matrix-org/synapse/issues/5196))
- Stick an expiration date to any registered user missing one at startup if account validity is enabled. ([\#5204](https://github.com/matrix-org/synapse/issues/5204))
- Add experimental support for relations (aka reactions and edits). ([\#5209](https://github.com/matrix-org/synapse/issues/5209), [\#5211](https://github.com/matrix-org/synapse/issues/5211), [\#5203](https://github.com/matrix-org/synapse/issues/5203), [\#5212](https://github.com/matrix-org/synapse/issues/5212))
- Add a room version 4 which uses a new event ID format, as per [MSC2002](https://github.com/matrix-org/matrix-doc/pull/2002). ([\#5210](https://github.com/matrix-org/synapse/issues/5210), [\#5217](https://github.com/matrix-org/synapse/issues/5217))


Bugfixes
--------

- Fix image orientation when generating thumbnails (needs pillow>=4.3.0). Contributed by Pau Rodriguez-Estivill. ([\#5039](https://github.com/matrix-org/synapse/issues/5039))
- Exclude soft-failed events from forward-extremity candidates: fixes "No forward extremities left!" error. ([\#5146](https://github.com/matrix-org/synapse/issues/5146))
- Re-order stages in registration flows such that msisdn and email verification are done last. ([\#5174](https://github.com/matrix-org/synapse/issues/5174))
- Fix 3pid guest invites. ([\#5177](https://github.com/matrix-org/synapse/issues/5177))
- Fix a bug where the register endpoint would fail with M_THREEPID_IN_USE instead of returning an account previously registered in the same session. ([\#5187](https://github.com/matrix-org/synapse/issues/5187))
- Prevent registration for user ids that are too long to fit into a state key. Contributed by Reid Anderson. ([\#5198](https://github.com/matrix-org/synapse/issues/5198))
- Fix incompatibility between ACME support and Python 3.5.2. ([\#5218](https://github.com/matrix-org/synapse/issues/5218))
- Fix error handling for rooms whose versions are unknown. ([\#5219](https://github.com/matrix-org/synapse/issues/5219))


Internal Changes
----------------

- Make /sync attempt to return device updates for both joined and invited users. Note that this doesn't currently work correctly due to other bugs. ([\#3484](https://github.com/matrix-org/synapse/issues/3484))
- Update tests to consistently be configured via the same code that is used when loading from configuration files. ([\#5171](https://github.com/matrix-org/synapse/issues/5171), [\#5185](https://github.com/matrix-org/synapse/issues/5185))
- Allow client event serialization to be async. ([\#5183](https://github.com/matrix-org/synapse/issues/5183))
- Expose DataStore._get_events as get_events_as_list. ([\#5184](https://github.com/matrix-org/synapse/issues/5184))
- Make generating SQL bounds for pagination generic. ([\#5191](https://github.com/matrix-org/synapse/issues/5191))
- Stop telling people to install the optional dependencies by default. ([\#5197](https://github.com/matrix-org/synapse/issues/5197))


Synapse 0.99.4 (2019-05-15)
===========================

Expand Down
1 change: 0 additions & 1 deletion changelog.d/3484.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5039.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5043.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5146.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5171.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5174.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5177.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5181.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5183.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5184.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5185.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5187.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5190.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5191.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5196.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5197.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5198.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5203.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5204.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5209.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5210.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5211.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5212.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5217.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5218.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/5219.bugfix

This file was deleted.

12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
matrix-synapse-py3 (0.99.5.2) stable; urgency=medium

* New synapse release 0.99.5.2.

-- Synapse Packaging team <packages@matrix.org> Thu, 30 May 2019 16:28:07 +0100

matrix-synapse-py3 (0.99.5.1) stable; urgency=medium

* New synapse release 0.99.5.1.

-- Synapse Packaging team <packages@matrix.org> Wed, 22 May 2019 16:22:24 +0000

matrix-synapse-py3 (0.99.4) stable; urgency=medium

[ Christoph Müller ]
Expand Down
2 changes: 1 addition & 1 deletion synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
except ImportError:
pass

__version__ = "0.99.4"
__version__ = "0.99.5.2"
2 changes: 2 additions & 0 deletions synapse/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from .event_federation import EventFederationStore
from .event_push_actions import EventPushActionsStore
from .events import EventsStore
from .events_bg_updates import EventsBackgroundUpdatesStore
from .filtering import FilteringStore
from .group_server import GroupServerStore
from .keys import KeyStore
Expand Down Expand Up @@ -66,6 +67,7 @@


class DataStore(
EventsBackgroundUpdatesStore,
RoomMemberStore,
RoomStore,
RegistrationStore,
Expand Down
12 changes: 9 additions & 3 deletions synapse/storage/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,8 @@ def _simple_delete_txn(txn, table, keyvalues):
" AND ".join("%s = ?" % (k,) for k in keyvalues),
)

return txn.execute(sql, list(keyvalues.values()))
txn.execute(sql, list(keyvalues.values()))
return txn.rowcount

def _simple_delete_many(self, table, column, iterable, keyvalues, desc):
return self.runInteraction(
Expand All @@ -1280,9 +1281,12 @@ def _simple_delete_many_txn(txn, table, column, iterable, keyvalues):
column : column name to test for inclusion against `iterable`
iterable : list
keyvalues : dict of column names and values to select the rows with
Returns:
int: Number rows deleted
"""
if not iterable:
return
return 0

sql = "DELETE FROM %s" % table

Expand All @@ -1297,7 +1301,9 @@ def _simple_delete_many_txn(txn, table, column, iterable, keyvalues):

if clauses:
sql = "%s WHERE %s" % (sql, " AND ".join(clauses))
return txn.execute(sql, values)
txn.execute(sql, values)

return txn.rowcount

def _get_cache_dict(
self, db_conn, table, entity_column, stream_column, max_value, limit=100000
Expand Down
Loading

0 comments on commit e7c1171

Please sign in to comment.