dendrite/roomserver/internal
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
..
alias.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
api.go More flexible caching (#1101) 2020-06-05 16:42:01 +01:00
input_authevents_test.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
input_authevents.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
input_events.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
input_latest_events.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
input_membership.go Use memberships to determine whether to reset latest events/state on room join (#1047) 2020-05-20 18:03:06 +01:00
input.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
perform_backfill.go Roomserver API changes (#1118) 2020-06-11 19:50:40 +01:00
perform_invite.go Refactor SendMembership - make ban test pass (#1160) 2020-06-24 18:19:54 +01:00
perform_join.go Finish implementing retiring invites (#1166) 2020-06-26 11:07:52 +01:00
perform_leave.go Finish implementing retiring invites (#1166) 2020-06-26 11:07:52 +01:00
perform_publish.go Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174) 2020-07-02 15:41:18 +01:00
query_test.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
query.go Replace publicroomsapi with a combination of clientapi/roomserver/currentstateserver (#1174) 2020-07-02 15:41:18 +01:00