Commit Graph

5 Commits

Author SHA1 Message Date
douxu d670963854 refactor(redis): normalize data object storage with aliases
- store one canonical hash for each parameter and measurement
- map supported token formats to canonical Redis keys through aliases
- resolve aliases in query and update handlers
- clean stale hashes and aliases during initialization
- update Redis change logic and related tests
2026-07-31 13:39:18 +08:00
douxu 0b004471fe feat: synchronize data object attributes with redis
- read parameter and measurement attributes from redis
- support size-aware realtime measurement windows
- coordinate postgreSQL and redis updates with rollback compensation
- validate measurement window sizes during initialization
- add redis change and attribute query/update tests
2026-07-30 15:32:22 +08:00
douxu 34b9a569ae feat(data-object)!: enhance measurement mode update workflow
- support numeric manual and automatic measurement modes
- allow omitted fields and optional manual data values
- start or stop dataRT writes when switching measurement modes
- atomically replace manual measurement values in Redis
- record bounded operations with Unix millisecond timestamps
- propagate client tokens through request contexts
- return errors instead of panicking when Redis initialization fails
- optimize measurement queries and add regression tests
2026-07-21 16:13:23 +08:00
douxu b85c2e129d feat(data-object): support parameter and measurement attribute updates
- replace batch attribute updates with token, field, and value requests
- support parameter value updates for writable attribute groups
- support measurement mode switching and manual value updates
- record bounded measurement operation logs in PostgreSQL
- add jsonb array serialization for measurement operations
- add transaction failure context and error-chain support
- add unit tests for validation and update workflows
2026-07-20 15:46:31 +08:00
douxu 07ef921b75 feat: add measurement data-object attribute APIs
- classify and validate measurement tokens in supported formats
- query measurement attributes and latest values from PostgreSQL and Redis
- add measurement mode support and centralized SQL definitions
- register data-object attribute query and update routes
- fix logger caller attribution and measurement identifier generation
- add tests for token parsing, attribute queries, Redis values, and logging
2026-07-16 16:24:26 +08:00