Commit Graph

1399 Commits (d2b59f2482df7e1bbc7eec1a07d7359cb218de75)

Author SHA1 Message Date
Erik Johnston d2b59f2482 Implement top-level unread_notifications 2016-06-28 10:55:54 +01:00
Erik Johnston 6c137b321d Encode batch tokens better 2016-06-27 15:21:12 +01:00
Erik Johnston 4b7abedfd9 Comments 2016-06-27 15:10:39 +01:00
Erik Johnston 3263e12d73 Try serializing as json rather than msgpack 2016-06-27 11:24:58 +01:00
Erik Johnston c0b2f33dc2 Logging 2016-06-27 10:34:52 +01:00
Erik Johnston 434c51d538 Merge branch 'develop' of github.com:matrix-org/synapse into erikj/paginate_sync 2016-06-24 16:09:23 +01:00
Erik Johnston 62050d2dfb Comments 2016-06-24 11:11:53 +01:00
Erik Johnston 9df5f81687 Make get_room_tags_changed take a now position. Comments 2016-06-23 17:50:30 +01:00
Erik Johnston a7e6ad9f3e Use SyncExtras 2016-06-23 17:26:27 +01:00
Erik Johnston 6c8c061c2f Move stuff into separate function 2016-06-23 16:25:11 +01:00
Erik Johnston 7b3324e252 Get rid of per room full_state flag 2016-06-23 15:48:33 +01:00
Erik Johnston 8c3fca8b28 Correctly handle tags changing in paginated sync 2016-06-23 13:43:25 +01:00
Martin Weinelt 0a32208e5d Rework ldap integration with ldap3
Use the pure-python ldap3 library, which eliminates the need for a
system dependency.

Offer both a `search` and `simple_bind` mode, for more sophisticated
ldap scenarios.
- `search` tries to find a matching DN within the `user_base` while
  employing the `user_filter`, then tries the bind when a single
  matching DN was found.
- `simple_bind` tries the bind against a specific DN by combining the
  localpart and `user_base`

Offer support for STARTTLS on a plain connection.

The configuration was changed to reflect these new possibilities.

Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
2016-06-22 17:51:59 +02:00
Erik Johnston baab93b0dd Implement 'synced' flag 2016-06-22 11:40:06 +01:00
Erik Johnston 839088e2e7 Support streaming peek 2016-06-22 11:02:27 +01:00
Erik Johnston 6a101e512f Add tag handling 2016-06-22 10:59:24 +01:00
Erik Johnston 3b6027dbc1 Always include tags 2016-06-21 11:18:09 +01:00
Erik Johnston 6992fb9bc1 Implement error responses 2016-06-21 10:29:44 +01:00
Erik Johnston 22dea0ca37 Merge branch 'develop' of github.com:matrix-org/synapse into erikj/paginate_sync 2016-06-20 14:39:58 +01:00
Mark Haines 0c13d45522 Add a comment on why we don't create a profile for upgrading users 2016-06-17 19:18:53 +01:00
Mark Haines 9f1800fba8 Remove registered_users from the distributor.
The only place that was observed was to set the profile. I've made it
so that the profile is set within store.register in the same transaction
that creates the user.

This required some slight changes to the registration code for upgrading
guest users, since it previously relied on the distributor swallowing errors
if the profile already existed.
2016-06-17 19:14:16 +01:00
Erik Johnston 2884712ca7 Only re-sign our own events 2016-06-17 14:47:33 +01:00
Erik Johnston 2b0f9bddcf Merge branch 'develop' of github.com:matrix-org/synapse into erikj/paginate_sync 2016-06-16 10:40:17 +01:00
Salvatore LaMendola ed5f43a55a
Fix TypeError in call to bcrypt.hashpw
- At the very least, this TypeError caused logins to fail on my own
  running instance of Synapse, and the simple (explicit) UTF-8
  conversion resolved login errors for me.

Signed-off-by: Salvatore LaMendola <salvatore.lamendola@gmail.com>
2016-06-16 00:43:42 -04:00
Erik Johnston b31c49d676 Correctly mark backfilled events as backfilled 2016-06-15 10:59:08 +01:00
Erik Johnston 3b52bd1cf6 Merge branch 'develop' of github.com:matrix-org/synapse into erikj/paginate_sync 2016-06-14 15:22:21 +01:00
Negar Fazeli 6e7dc7c7dd Fix a bug caused by a change in auth_handler function
Fix the relevant unit test cases
2016-06-08 23:22:39 +02:00
Erik Johnston 81c07a32fd Pull full state for each room all at once 2016-06-08 15:51:49 +01:00
Erik Johnston 1a815fb04f Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
Mark Haines 0b2158719c Remove dead code.
Loading push rules now happens in the datastore, so we can remove
the methods that loaded them outside the datastore.

The ``waiting_for_join_list`` in federation handler is populated by
anything, so can be removed.

The ``_get_members_events_txn`` method isn't called from anywhere
so can be removed.
2016-06-07 15:07:11 +01:00
Erik Johnston 216a05b3e3 .values() returns list of sets 2016-06-06 16:00:09 +01:00
Erik Johnston 96dc600579 Fix typos 2016-06-06 15:44:41 +01:00
Erik Johnston 377eb480ca Fire after 30s not 8h 2016-06-06 15:14:21 +01:00
Erik Johnston 51773bcbaf Merge pull request #832 from matrix-org/erikj/presence_coount
Change def of small delta in presence stream. Add metrics.
2016-06-03 14:57:00 +01:00
Erik Johnston ab116bdb0c Fix typo 2016-06-03 14:03:42 +01:00
Erik Johnston 4ce84a1acd Change metric style 2016-06-03 13:49:16 +01:00
Erik Johnston a7ff5a1770 Presence metrics. Change def of small delta 2016-06-03 13:40:55 +01:00
Erik Johnston 4982b28868 Merge pull request #829 from matrix-org/erikj/poke_notifier
Poke notifier on next reactor tick
2016-06-03 11:52:10 +01:00
Erik Johnston 4c04222fa5 Poke notifier on next reactor tick 2016-06-03 11:24:16 +01:00
Erik Johnston 6a0afa582a Load push rules in storage layer, so that they get cached 2016-06-03 11:10:00 +01:00
David Baker c71177f285 Merge remote-tracking branch 'origin/dbkr/email_notif_string_fmt_error' into dbkr/email_unsubscribe 2016-06-02 17:20:56 +01:00
Mark Haines 56d15a0530 Store the typing users as user_id strings. (#819)
Rather than storing them as UserID objects.
2016-06-02 16:28:54 +01:00
David Baker 812b5de0fe Merge remote-tracking branch 'origin/develop' into dbkr/email_unsubscribe 2016-06-02 15:33:28 +01:00
Mark Haines 661a540dd1 Deduplicate presence entries in sync (#818) 2016-06-02 15:20:28 +01:00
Mark Haines 70599ce925 Allow external processes to mark a user as syncing. (#812)
* Add infrastructure to the presence handler to track sync requests in external processes

* Expire stale entries for dead external processes

* Add an http endpoint for making users as syncing

Add some docstrings and comments.

* Fixes
2016-06-02 15:20:15 +01:00
David Baker fb2193cc63 Merge pull request #817 from matrix-org/dbkr/split_out_auth_handler
Split out the auth handler
2016-06-02 14:31:35 +01:00
Erik Johnston 02ac463dbf Merge pull request #800 from matrix-org/erikj/sync_refactor
Refactor SyncHandler
2016-06-02 14:02:13 +01:00
David Baker 3a3fb2f6f9 Merge branch 'dbkr/split_out_auth_handler' into dbkr/email_unsubscribe 2016-06-02 13:35:25 +01:00
David Baker 4a10510cd5 Split out the auth handler 2016-06-02 13:31:45 +01:00
David Baker a15ad60849 Email unsubscribing that may in theory, work
Were it not for that fact that you can't use the base handler in the pusher because it pulls in the world. Comitting while I fix that on a different branch.
2016-06-02 11:44:15 +01:00