0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-04 12:08:40 +02:00
dendrite/federationapi/routing
Kegsay 4c1e6597c0
Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174)
* Use content_value instead of membership

* Fix build

* Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver

- All public rooms paths are now handled by clientapi
- Requests to (un)publish rooms are sent to the roomserver via `PerformPublish`
  which are stored in a new `published_table.go`
- Requests for public rooms are handled in clientapi by:
    * Fetch all room IDs which are published using `QueryPublishedRooms` on the roomserver.
    * Apply pagination parameters to the slice.
    * Do a `QueryBulkStateContent` request to the currentstateserver to pull out
      required state event *content* (not entire events).
    * Aggregate and return the chunk.

Mostly but not fully implemented (DB queries on currentstateserver are missing)

* Fix pq query

* Make postgres work

* Make sqlite work

* Fix tests

* Unbreak pagination tests

* Linting
2020-07-02 15:41:18 +01:00
..
backfill.go Roomserver API changes (#1118) 2020-06-11 19:50:40 +01:00
devices.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
eventauth.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
events.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
invite.go Handle invite v1 (#1165) 2020-06-25 17:07:40 +01:00
join.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
keys.go s/Base64String/Base64Bytes/g (#1093) 2020-06-04 11:50:57 +01:00
leave.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
missingevents.go Hopefully fix get_missing_events (#1070) 2020-05-28 12:44:34 +01:00
profile.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
publicrooms.go Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174) 2020-07-02 15:41:18 +01:00
query.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
routing.go Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174) 2020-07-02 15:41:18 +01:00
send.go Don't include current state in processEventWithMissingState (#1126) 2020-06-29 14:39:21 +01:00
send_test.go Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174) 2020-07-02 15:41:18 +01:00
state.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
threepid.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
version.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00