Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.16 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.16 KB

GHM

Guesthouse management using incr_dom (work in progress).

jq

Migration from old production api (single table) to new schema:

jq 'map({ id:.customer_id} + . + {bookings:[{customer:.customer_id, id:-1, created: .created, modified: .modified, data: .data.bookings[]}]} | del(.customer_id, .data.bookings)) | {customers: [.[] | del(.bookings)], bookings: [.[].bookings[]]}' < data/some.json > data/some.migrated.json

ToDo

  • Visually lock new booking and similar unsaveable views for unsaved new customer. Currently saving is silently deferred.
  • Refactor nav fields of component models into incremental argument. Use this for view. We achieve nav being read-only input for component. Mutable nav makes no sense.
  • BUG: URL customer/<cid>/booking/<bid> opens booking bid under customer cid. This moves booking bid to customer cid on next save.
  • SEC: Communicate with letter js via local storage. CORS should then avoid XSS.
  • SEC: PHP puts cleartext password to error log / client on database connection failure. Either wrap usage of password into try catch or avoid PHP altogether.