Harmonize database format #6

Open
opened 2025-12-30 02:06:44 +00:00 by rasmus · 0 comments
Owner

There are 3 ways to command a door:

Each write the database log in their own format, querying door logs for an user (/m/doorboy/log/) is impractical. There are schema deviations caused by duplicating code everywhere.

I would suggest a refactor:

  • k-space/todo#119 and pin all opens from Slack to a Passmower user
  • Web is untangled from inventory-app, moves to being an endpoint at doorboy-proxy, where to log in with Passmower.
  • Writes to database are by the same function. Database may be swapped out. Listening to DB writes can still stay.
There are 3 ways to command a door: - RFID - Slack - Web (via [Inventory](https://git.k-space.ee/k-space/inventory-app/src/branch/master/inventory-app/doorboy.py)) Each write the database log in their own format, querying door logs for an user (/m/doorboy/log/<user>) is impractical. There are schema deviations caused by duplicating code everywhere. I would suggest a refactor: - https://git.k-space.ee/k-space/todo/issues/119 and pin all opens from Slack to a Passmower user - Web is untangled from inventory-app, moves to being an endpoint at doorboy-proxy, where to log in with Passmower. - Writes to database are by the same function. Database may be swapped out. Listening to DB writes can still stay.
rasmus added the upkeep label 2025-12-30 02:06:44 +00:00
Sign in to join this conversation.