matrix-org / matrix-org/matrix-spec

Add timestamp selection of events

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
A-Client-Server feature
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

Referring to the conversation following
https://matrix.to/#/!XqBunHwQIXUiqCaoxq:matrix.org/%2414992263384597835OhNlB:matrix.org
and
https://matrix.to/#/!XqBunHwQIXUiqCaoxq:matrix.org/%241499257197105mxkVo:jki.re

> I'm proposing the ability to set start and end to timestamps as well as the existing sequence ids.

> I was thinking using the same fields but prefixing the timestamp with 'ts' would probably be enough, although adding 2 new fields "start_ts" and "end_ts" is also an option.
NOTE: Ralith correctly suggests the new fields are a better solution

> My main interest is the message endpoint.
Being able to set specific start and end timestamps would significantly ease scripted retrieval of messages.
Essentially allowing no state to be stored between script runs (eg: a script which runs from cron and grabs the last hours messages. Where nothing older than an hour matters at all)

Contributor guide

Open the contributing guide

Research direction

Read the two linked Matrix discussions, then inspect the message endpoint specification and its handling of sequence-based start and end values. Define support for separate start_ts and end_ts parameters, including their expected behavior, and update the endpoint specification and related examples or tests if present.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.