summary refs log tree commit diff
path: root/synapse/rest/client/v1/initial_sync.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-47/+0
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Make token serializing/deserializing async (#8427)Erik Johnston2020-09-301-1/+2
| | | The idea is that in future tokens will encode a mapping of instance to position. However, we don't want to include the full instance name in the string representation, so instead we'll have a mapping between instance name and an immutable integer ID in the DB that we can use instead. We'll then do the lookup when we serialize/deserialize the token (we could alternatively pass around an `Instance` type that includes both the name and ID, but that turns out to be a lot more invasive).
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Port rest/v1 to async/awaitErik Johnston2019-12-051-5/+3
|
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-1/+1
| | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
* Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
|
* Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-031-6/+6
|
* Port rest/ to Python 3 (#3823)Amber Brown2018-09-121-1/+1
|
* check isort by travisKrombel2018-07-161-1/+1
|
* Use parse_{int,str} and assert from http.servletKrombel2018-07-131-1/+2
| | | | | | | parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable
* run isortAmber Brown2018-07-091-0/+1
|
* Support /initialSync in synchrotron workerErik Johnston2016-09-211-3/+2
|
* Dont invoke get_handlers fromClientV1RestServletErik Johnston2016-08-121-0/+4
| | | | | | hs.get_handlers() can not be invoked from split out processes. Moving the invocations down a level means that we can slowly split out individual servlets.
* Fix relative imports so they work in both py3 and py27Mark Haines2016-03-081-1/+1
|
* Introduce a Requester objectDaniel Wagner-Hall2016-01-111-2/+2
| | | | | | | | | This tracks data about the entity which made the request. This is instead of passing around a tuple, which requires call-site modifications every time a new piece of optional context is passed around. I tried to introduce a User object. I gave up.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+2
|
* Allow guests to register and call /events?room_id=Daniel Wagner-Hall2015-11-041-1/+1
| | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices.
* Use 'true' rather than '1' for archived flagMark Haines2015-10-081-1/+1
|
* Add a flag to initial sync to indicate we want rooms that the user has leftMark Haines2015-10-081-1/+3
|
* Remove undocumented and unimplemented 'feedback' parameter from the ↵Mark Haines2015-09-091-2/+0
| | | | Client-Server API
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-1/+1
| | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-1/+1
| | | | device_id in the internal meta data for the event along with the transaction id when sending events
* Return the device_id from get_auth_by_reqMark Haines2015-01-281-1/+1
|
* Extract the client v1 base RestServlet to a separate classMark Haines2015-01-231-2/+2
|
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+44