Skip to content

fix: change API url to api.redcube.dev#320

Merged
gkuznik merged 2 commits intoTUM-Dev:masterfrom
Wayrion:api-url-change
Mar 6, 2026
Merged

fix: change API url to api.redcube.dev#320
gkuznik merged 2 commits intoTUM-Dev:masterfrom
Wayrion:api-url-change

Conversation

@Wayrion
Copy link

@Wayrion Wayrion commented Dec 3, 2025

Change the API url from api.betterhm.app to api.redcube.dev, which has an identical interface so no further changes should be needed.

Fixes #319

These changes have NOT been tested

Copilot AI review requested due to automatic review settings March 6, 2026 17:35
@gkuznik gkuznik enabled auto-merge (squash) March 6, 2026 17:35
@gkuznik gkuznik merged commit 315dd42 into TUM-Dev:master Mar 6, 2026
7 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates hardcoded queue-status (capacity) endpoint URLs for specific canteens to use the new api.redcube.dev domain, addressing the outage reported in #319.

Changes:

  • Replaced queue-status URLs for MENSA_LOTHSTR, MENSA_PASING, and STUCAFE_PASING from api.betterhm.app to api.redcube.dev.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Location("Am Stadtpark 20, München", 48.141568, 11.451119),
432,
"https://api.betterhm.app/v1/capacity/MENSA_PASING",
"https://api.redcube.dev/v1/capacity/MENSA_PASING",
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

Given this change is motivated by the previous domain going down, it would be valuable to add a lightweight test/guard (e.g., asserting no canteen queue_status URL contains the old domain, or that any non-None queue_status uses the expected host). That would prevent silently reintroducing a dead endpoint later.

Copilot uses AI. Check for mistakes.
Location("Lothstraße 13d, München", 48.153989, 11.552424),
431,
"https://api.betterhm.app/v1/capacity/MENSA_LOTHSTR",
"https://api.redcube.dev/v1/capacity/MENSA_LOTHSTR",
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

The new queue-status URLs duplicate the same base host/path across multiple enum entries. To reduce future churn when the host changes again, consider defining a single constant/base URL (or small helper) and building these URLs from it instead of repeating the full string in each entry.

Copilot uses AI. Check for mistakes.
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.

[BUG] api.betterhm.app is dead

3 participants