BenClaw
eef3d17431
feat(counter): add Mozo::Counter.provision! to seed Redis from CouchDB
...
- Reads Order.by_supplier_id_and_state view (reduce, grouped)
- Sets Redis keys: supplier_counter:<id>:orders_placed / orders_in_process
- Creates design doc if missing (from drb_counter/couchdb_design.yml)
- Rake task: rails counters:provision
- Also invokable directly: rails runner 'Mozo::Counter.provision!'
2026-05-17 22:02:56 +02:00
BenClaw
bdd1d248db
debug(action_cable): add server-side broadcast logging
...
- Log channel remapping and data on every broadcast
- Log warnings when channel format is unknown
- Helps trace whether broadcasts reach ActionCable.server
2026-05-17 19:41:00 +02:00
BenClaw
7c69f0a0bc
fix(action_cable): accept both /user/123 and /user_123 channel formats
...
- Benjamin standardized on /user_123 in mozo.rb (underscore, no slash)
- Old remap regex ^/user/(.+)$ didn't match /user_123
- Fix: ^/user[/_](.+)$ accepts both separators → user_123
2026-05-17 19:27:30 +02:00
bterkuile
11ba8e7434
channel naming convention change
2026-05-17 12:24:07 -05:00
bterkuile
12836dd14b
Switch to Redis counter
2026-05-17 10:48:05 -05:00
BenClaw
3e4bcc80c8
feat(counter): add Redis counter adapter, replace DrbCounter
...
- Add Mozo::Counter::Redis with same get/set/incr/decr interface
- Add redis gem (~> 5.0) to Gemfile
- Update cable.yml to use Redis adapter in production (shared with counters)
- Document DrbCounter → Redis migration in broadcasting-migration.md
- Redis installed and running on vmi3300327
- Leave Faye as current broadcaster; both switches are one-line changes
DrbCounter problems solved:
- In-memory → persistent (RDB + AOF)
- Single-process DRb → multi-process safe Redis
- Atomic INCR/DECR across Puma workers
- One less custom process to manage
2026-05-17 16:42:09 +02:00
root
1f52448253
feat(broadcasting): add ActionCable adapter + fix model broadcast anti-pattern
...
- Add Mozo::Broadcaster::ActionCable as drop-in Faye replacement
- Fix model_broadcast.rb: delegate to Mozo directly instead of
ApplicationController.new (memory-unsafe anti-pattern)
- Add Broadcastable concern for clean model-side broadcasting
- ActionCable config: async adapter, cable.yml, WebSocket endpoint
- MozoChannel with per-entity authorization (user/supplier/employee)
- Connection auth via auth_token (matches existing auth pattern)
- Mount /cable WebSocket in routes
- Add broadcasting-migration.md with Faye→ActionCable guide
2026-05-17 15:25:49 +02:00
bterkuile
63b19cb78a
Infrastructure and add removeListNeedsHelp to users
2026-02-09 17:56:05 -05:00
bterkuile
54f86078f5
More accessible, still not good environment based settings
2025-09-20 18:06:18 -05:00
bterkuile
0e051b1f93
rename qwaiter to mozo
2025-09-20 17:35:58 -05:00
bterkuile
8b0ddff515
Fixes and add label to tables
2022-04-16 15:21:07 -05:00
bterkuile
0e917ccdb4
New versions
2022-01-27 09:32:01 -05:00
bterkuile
51748d5783
Move supplier full pull to being an api for the ember app and handle login and authorization a little bit better (should be even a lot better in the future)
2020-03-03 17:11:57 -05:00
bterkuile
73c207c324
many important fixes
2020-02-29 11:43:00 -05:00
bterkuile
2149345d3d
supplier client sections working with problematic authentication still active
2020-02-27 15:44:43 -05:00
bterkuile
9e86b18c3e
work with current supplier backend
2020-02-26 14:24:32 -05:00
bterkuile
8740300b9a
work off today
2020-02-25 11:09:27 -05:00
bterkuile
fbcddfe296
revert user serializer for old ember version
2016-06-02 18:58:26 +02:00
bterkuile
1acd200408
Implementatino fixes
2016-06-02 11:13:56 +02:00
bterkuile
3109bdf4b1
change deploy behaviour
2015-10-04 13:03:16 +02:00
bterkuile
6588a97560
Add section area color and demo menu export
2015-09-30 17:55:47 +02:00
bterkuile
61dba311fa
Further spec greening
2015-09-21 16:56:39 +02:00
bterkuile
6a085b1ca2
Base progress
2015-09-16 11:50:55 +02:00
bterkuile
ef894f9e02
serializer stuff
2015-09-14 18:53:58 +02:00
bterkuile
5cdbe57dec
switch to JSONAPI for suppliers
2015-09-09 09:12:30 +02:00
bterkuile
9c1945252d
End of evening commit, changing supplier to JSONAPI
2015-09-08 23:22:13 +02:00
bterkuile
4ef7ecba41
mozo-user connection changes
2015-09-06 17:29:34 +02:00
bterkuile
e2e883df1d
progress
2015-09-05 14:14:28 +02:00
bterkuile
7336585416
JSONAPI stuff
2015-09-04 17:39:11 +02:00
bterkuile
e4dde28dd0
JSONApi progress
2015-09-03 20:42:48 +02:00
bterkuile
f47a8a9ed0
JSONApi part1
2015-09-02 15:52:48 +02:00
bterkuile
e1b5ffcd06
End of day commit
2015-08-10 19:39:06 +02:00
bterkuile
03434fd0c0
Better dedigest assets including fonts
2015-06-01 11:52:17 +02:00
bterkuile
2ca3b79e4c
update dedigest_assets rake task
2015-05-29 15:28:42 +02:00
bterkuile
1a3f528731
Better tests
2014-12-05 14:48:20 +01:00
bterkuile
85beee69c4
Rearrange qr code sticker
2014-09-17 08:51:43 +02:00
bterkuile
2c234e8f17
Update to rails 4.2
2014-09-08 16:53:37 +02:00
bterkuile
afc604bb69
Secure faye publishing
2014-08-29 16:37:15 +02:00
bterkuile
3451604dff
Refactor Qsupplier.App to App
2014-08-10 08:50:20 +02:00
bterkuile
15005f332f
Rebrand to mozo.bar
2014-08-06 12:58:16 +02:00
bterkuile
99a9536c68
Replace couchbase counters with drb version
2014-08-05 17:49:16 +02:00
bterkuile
7443d3b08b
stability improvement
2014-07-28 17:33:40 +02:00
bterkuile
8ca59c4e38
End of day commit
2014-07-21 20:31:11 +02:00
bterkuile
eab2b2178f
Production fixes
2014-07-11 14:55:18 +02:00
bterkuile
7a6177da2c
Dedigest assets after deploy
2014-07-11 13:50:31 +02:00
bterkuile
0e4993e8a6
Upgrades and fixes, maintenance
2014-06-09 19:07:46 +02:00
bterkuile
546e4499ea
Passing spec for user product information
2014-04-23 17:06:46 +02:00
bterkuile
3ef888a30a
Pickdate and some better general foundation styling
2014-04-16 14:13:05 +02:00
bterkuile
e179f6e582
User app updates
2014-03-27 21:51:16 +01:00
bterkuile
99473758e6
Fix and implement supplier counters
2014-03-07 18:29:49 +01:00