Skip to content

fix: serve /v1/messages from PostgreSQL with search support#382

Merged
SimmerV merged 4 commits intoMeshAddicts:developfrom
SimmerV:bug-fix
Mar 28, 2026
Merged

fix: serve /v1/messages from PostgreSQL with search support#382
SimmerV merged 4 commits intoMeshAddicts:developfrom
SimmerV:bug-fix

Conversation

@SimmerV
Copy link
Copy Markdown
Collaborator

@SimmerV SimmerV commented Mar 28, 2026

Summary

  • /v1/messages and /v1/mqtt_messages now query PostgreSQL instead of the in-memory buffer when read_from_postgres is enabled
  • Fixes packet ID links from Discord embeds not finding messages on the logs page (previously limited to last 1000 in-memory messages since restart)
  • Server-side ?q= search parameter filters by topic and payload content via ILIKE
  • Configurable ?limit= parameter (default 1000, max 5000)
  • Added timestamp index on mqtt_messages table
  • Falls back to in-memory data when PostgreSQL is not configured

@SimmerV SimmerV self-assigned this Mar 28, 2026
@SimmerV SimmerV added the bug Something isn't working label Mar 28, 2026
@SimmerV SimmerV added this to meshinfo Mar 28, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in meshinfo Mar 28, 2026
@SimmerV SimmerV merged commit c78289d into MeshAddicts:develop Mar 28, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in meshinfo Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant