Skip to content

feat(server): implement global feed endpoint#60

Draft
xtexx wants to merge 11 commits into
masterfrom
init-sse
Draft

feat(server): implement global feed endpoint#60
xtexx wants to merge 11 commits into
masterfrom
init-sse

Conversation

@xtexx
Copy link
Copy Markdown
Member

@xtexx xtexx commented May 24, 2026

This PR implements a /api/feed endpoint which allows clients to subscribe to server activities through SSE.

This makes creating alternative bot implementation (e.g. IRC bot) easier.

@xtexx xtexx requested review from MingcongBai and jiegec May 24, 2026 04:04
@xtexx xtexx self-assigned this May 24, 2026
@xtexx
Copy link
Copy Markdown
Member Author

xtexx commented May 24, 2026

Tested with cURL

image

@xtexx xtexx marked this pull request as draft May 24, 2026 04:53
Comment thread server/src/routes/job.rs
packages: String,
arch: String,
creation_time: chrono::DateTime<chrono::Utc>,
#[serde(with = "chrono::serde::ts_seconds")]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it required, when creation_time is already present?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

creation_time is a string while serializing as an integer makes parsing eaiser. nevertheless, i doubt myself when looking back at the code. maybe this can be reverted

@jiegec
Copy link
Copy Markdown
Member

jiegec commented May 27, 2026

LGTM in general, but would like to see more testing results, e.g. if multiple clients may work at the same time. Also, maybe we can merge formatting changes early?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants