Erik Johnston
7a9aa4b81b
Isort
2019-03-15 14:39:25 +00:00
Erik Johnston
5827e976fe
Fixups
2019-03-15 14:39:25 +00:00
Matthew Hodgson
82886e4c8f
hide_profile: false should mean not to hide the profile :/
2018-12-12 00:57:39 +00:00
Matthew Hodgson
ae5bb32ad0
add im.vector.hide_profile to user account_data
2018-11-04 23:46:11 +00:00
Matthew Hodgson
6e7488ce11
merge master into dinsic, again...
2018-11-03 12:14:24 +00:00
Matthew Hodgson
c7503f8f33
merge in master
2018-10-22 20:19:40 +02:00
Erik Johnston
495a9d06bb
Fix exception handling in fetching remote profiles
2018-10-03 11:34:30 +01:00
Schnuffle
dc5db01ff2
Replaced all occurences of e.message with str(e)
...
Signed-off-by: Schnuffle <schnuffle@github.com>
2018-09-27 13:38:50 +02:00
Erik Johnston
8432e2ebd7
Rename WorkerProfileHandler to BaseProfileHandler
2018-08-22 10:13:40 +01:00
Erik Johnston
a81f140880
Add assert to ensure handler is only run on master
2018-08-22 10:11:21 +01:00
Erik Johnston
47b25ba5f3
Remove redundant vars
2018-08-22 10:09:05 +01:00
Erik Johnston
91cdb6de08
Call UserDirectoryHandler methods directly
...
Turns out that the user directory handling is fairly racey as a bunch
of stuff assumes that the processing happens on master, which it doesn't
when there is a synapse.app.user_dir worker. So lets just call the
function directly until we actually get round to fixing it, since it
doesn't make the situation any worse.
2018-08-17 15:26:13 +01:00
Erik Johnston
ca87ad1def
Split ProfileHandler into master and worker
2018-08-17 14:15:14 +01:00
Erik Johnston
484a0ebdfc
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_profiles
2018-08-09 10:16:29 +01:00
Erik Johnston
495cb100d1
Allow profile changes to happen on workers
2018-08-07 10:50:26 +01:00
Will Hunt
16d9701892
Return M_NOT_FOUND when a profile could not be found. ( #3596 )
2018-08-03 19:08:05 +01:00
Richard van der Hoff
03751a6420
Fix some looping_call calls which were broken in #3604
...
It turns out that looping_call does check the deferred returned by its
callback, and (at least in the case of client_ips), we were relying on this,
and I broke it in #3604 .
Update run_as_background_process to return the deferred, and make sure we
return it to clock.looping_call.
2018-07-26 11:48:08 +01:00
Richard van der Hoff
55acd6856c
Fix updating of cached remote profiles
...
_update_remote_profile_cache was missing its `defer.inlineCallbacks`, so when
it was called, would just return a generator object, without actually running
any of the method body.
2018-07-25 10:34:48 +01:00
Matthew Hodgson
4ff8486f0f
fix missing import and run isort
2018-07-20 11:29:18 +01:00
David Baker
2669e494e0
Merge remote-tracking branch 'origin/master' into dinsic
2018-07-19 18:25:25 +01:00
David Baker
45d06c754a
Add hopefully enlightening comment
2018-07-18 20:52:21 +01:00
David Baker
dbd0821c43
Oops, didn't mean to commit that
2018-07-18 20:50:20 +01:00
David Baker
0476852fc6
Remove deactivated users from profile search
2018-07-18 18:05:29 +01:00
Amber Brown
49af402019
run isort
2018-07-09 16:09:20 +10:00
Matthew Hodgson
b3e346f40c
don't pass a requester if we don't have one to set_displayname
2018-05-04 01:56:01 +01:00
Matthew Hodgson
383c4ae59c
Merge branch 'dinsic' into matthew/derive-mxid-from-3pid
2018-05-03 23:39:08 +01:00
Matthew Hodgson
ad0424bab0
Merge pull request #3179 from matrix-org/matthew/disable-set-profile
...
options to disable setting profile info
2018-05-03 18:19:48 +01:00
David Baker
53d6245529
Change profile replication URI
2018-05-03 14:55:40 +01:00
Matthew Hodgson
32e4420a66
improve mxid & displayname selection for register_mxid_from_3pid
...
* [x] strip invalid characters from generated mxid
* [x] append numbers to disambiguate clashing mxids
* [x] generate displayanames from 3pids using a dodgy heuristic
* [x] get rid of the create_profile_with_localpart and instead
explicitly set displaynames so they propagate correctly
2018-05-03 04:21:20 +01:00
Matthew Hodgson
f93cb7410d
options to disable setting profile info
2018-05-03 01:29:12 +01:00
David Baker
4d55b16faa
Fix python synatx
2018-05-01 14:32:30 +01:00
David Baker
105709bf32
Fix profile repl
2018-05-01 14:27:14 +01:00
David Baker
47ed4a4aa7
PR feedback
...
Unnecessary inlineCallbacks, missing yield, SQL comments & trailing
commas.
2018-04-25 13:58:37 +01:00
David Baker
7fafa838ae
Comment why the looping call loops
2018-04-25 11:59:22 +01:00
David Baker
3add16df49
pep8 again
2018-04-17 13:23:16 +01:00
David Baker
dde01efbcb
Don't do profile repl if no repl targets
2018-04-17 12:26:45 +01:00
David Baker
22e416b726
Update profile cache only on master
...
and same for the profile replication
2018-04-17 12:17:16 +01:00
David Baker
8743f42b49
pep8
2018-04-17 10:34:04 +01:00
David Baker
7285afa4be
Handle current batch number being null
2018-04-17 10:28:00 +01:00
David Baker
3c446d0a81
Merge remote-tracking branch 'origin/dinsic' into dbkr/profile_replication
2018-04-16 18:35:25 +01:00
David Baker
1147ce7e18
Include origin_server in the sig!
...
Also be consistent with underscores
2018-04-12 17:59:37 +01:00
David Baker
4e12b10c7c
Trigger profile replication on profile change
2018-04-11 10:17:07 +01:00
David Baker
e654230a51
Written but untested profile replication
2018-04-10 17:41:58 +01:00
Erik Johnston
df8ff682a7
Only update remote profile cache on master
2018-03-13 17:38:21 +00:00
Erik Johnston
cb9f8e527c
s/replication_client/federation_client/
2018-03-13 13:26:52 +00:00
Erik Johnston
265b993b8a
Split replication layer into two
2018-03-13 10:55:47 +00:00
Erik Johnston
c3f79c9da5
Split out edu/query registration to a separate class
2018-03-13 10:24:27 +00:00
Erik Johnston
784f036306
Move RoomMemberHandler out of Handlers
2018-03-01 14:36:50 +00:00
Matthew Hodgson
74e0cc74ce
fix pep8 and tests
2017-12-04 15:11:38 +00:00
Matthew Hodgson
1bd40ca73e
switch to a simpler 'search_all_users' button as per review feedback
2017-12-04 14:58:39 +00:00