Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f4aa923
Initial MSC draft for jump to date
MadLittleMods Feb 25, 2021
11025d6
Update with alternate /timestamp_to_event endpoint
MadLittleMods Nov 17, 2021
95cd693
Add origin_server_ts for quick remote to local comparison
MadLittleMods Nov 30, 2021
13910e7
Add origin_server_ts to client endpoint
MadLittleMods Nov 30, 2021
2559770
Wrap lines
MadLittleMods Dec 3, 2021
f19a43a
Use stable when discussing MSC and document unstable
MadLittleMods Dec 3, 2021
f87a4f2
Describe the direction parameter
MadLittleMods Dec 3, 2021
d9b0bed
Add server support detection
MadLittleMods Dec 15, 2021
cc6a4a3
Fix typos
MadLittleMods Jan 18, 2022
2c8cdd8
Explain what happens when an event can't be found
MadLittleMods Jan 19, 2022
9aa73f4
Add context behind why we chose /timestamp_to_event vs alternatives
MadLittleMods Jan 19, 2022
fdd0022
Add comments about authentication and rate-limiting
MadLittleMods Jan 24, 2022
8238dfe
Return pagination token directly in future iteration
MadLittleMods Apr 9, 2022
75c157b
Abuse /timestamp_to_event to get create event
MadLittleMods Apr 9, 2022
cbd388f
Unrenderable events
MadLittleMods Apr 9, 2022
bb732d9
Add some complication thoughts around alternatives
MadLittleMods Apr 9, 2022
4d2a45a
Backfill event so we can get pagination token
MadLittleMods Apr 9, 2022
38b8147
Heuristic for which server to try first
MadLittleMods Sep 14, 2022
067bdeb
Give a suggestion on where to backfill from
MadLittleMods Sep 14, 2022
1804b71
Add alternative suggestion from @alphapapa
MadLittleMods Sep 14, 2022
8ca7a08
Better wording and fix typo
MadLittleMods Oct 11, 2022
ad99b64
No difference in homeservers
MadLittleMods Oct 11, 2022
bc2be78
Fix typos
MadLittleMods Oct 19, 2022
23cfab0
Fix extra word typo
MadLittleMods Oct 19, 2022
509c1b4
Summarizing discussion around why `dir` instead of closest
MadLittleMods Oct 19, 2022
b8d7ba3
Adjust to just suggest the right way
MadLittleMods Oct 20, 2022
fabfb34
Great simplification with the same meaning 🌟
MadLittleMods Oct 25, 2022
468a769
Perfect is the enemy of good
MadLittleMods Oct 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Backfill event so we can get pagination token
  • Loading branch information
MadLittleMods committed Apr 9, 2022
commit 4d2a45ad5ccc1c095bf1a2468577dbaef6287437
12 changes: 7 additions & 5 deletions proposals/3030-jump-to-date.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ previous days*

These types of use cases are not supported by the current Matrix API because it
has no way to fetch or filter older messages besides a manual brute force
pagination from the latest. Paginating is time-consuming and expensive to
process every event as you go (not practical for clients). Imagine wanting to
get a message from 3 years ago 😫
pagination from the most recent event in the room. Paginating is time-consuming
and expensive to process every event as you go (not practical for clients).
Imagine wanting to get a message from 3 years ago 😫


## Proposal
Expand All @@ -54,7 +54,10 @@ API endpoint `GET
which other homeservers can use to ask about their closest `event_id` to the
timestamp. This endpoint also returns `origin_server_ts` to make it easy to do a
quick comparison to see if the remote `event_id` fetched is closer than the
local one.
local one. After the local homeserver receives a response from the federation
endpoint, it should probably should try to backfill this event so that it's
available to query with `/context` from a client in order to get a pagination
token.

The heuristics for deciding when to ask another homeserver for a closer event if
your homeserver doesn't have something close, is left up to the homeserver
Expand Down Expand Up @@ -94,7 +97,6 @@ token directly in another MSC ⏩

## Potential issues


### Receiving a rogue random delayed event ID

If you ask for "the message with `origin_server_ts` closest to Jan 1st 2018" you
Expand Down