Add a "Hubbenråttan" heartbeat user to distinguish an empty hub from a service outage
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by tracing how real users are detected, assigned identities, and shown in the hub list; the issue does not name files or tests. Then inspect how the UI represents an empty hub and decide how it can distinguish that state from unknown status. Done means the heartbeat uses the same detection path, its identity is reserved to the bar computer, and the UI meets the three acceptance criteria.
Written by the indexing model from the issue text.
Description
Add a "Hubbenråttan" heartbeat user to distinguish an empty hub from a service outage
Problem
Right now, "no smurfs in the Hubben" can mean two different things:
- The hub is actually empty.
- The service is down, which happens fairly often.
From the outside there's no way to tell which one it is.
Proposal
Add a default user, Hubbenråttan, that isn't tied to a real person. It would be linked to the IP address of the bar computer, which is always connected to the network.
This works as a heartbeat check:
- Hubbenråttan is shown, but nobody else → the service works and the hub is truly empty.
- Hubbenråttan is not shown → the service is down (or the bar computer is off), so the hub's status is unknown.
Requirements
- Hubbenråttan must go through the same detection path as real users, just with a fixed identity. It should not be hardcoded in the frontend, otherwise it would show up even when detection is broken.
- The identity must be reserved: only the bar computer's IP can be used by Hubbenråttan, and no real user can claim it.
- The bar computer's IP should be stable (static lease or DHCP reservation), or the system should match on MAC address if that is what detection uses.
Edge cases / open questions
- If the bar computer is off or rebooting, Hubbenråttan disappears. The UI should treat this as "status unknown" rather than "empty".
- Spoofing the IP could fake a live hub. This is low risk for a student hub, but worth noting.
- Optional complement: a "last updated" timestamp to show how fresh the data is.
Acceptance criteria
- Hubbenråttan appears in the list when the bar computer is online and detection works
- Hubbenråttan cannot be assigned to or claimed by a real user
- The UI distinguishes "empty hub" (only the rat) from "status unknown" (no rat)
- Dominant language
- Rust
- Stars
- 3
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cthit/hubbit
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 54/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·