memos/store
boojack 26f4b73cb9 feat(filter): standard CEL now variable, time accessors, set ops
Replace the custom now() function with an idiomatic `now` timestamp variable (host-injected, frozen once per compile) and retype created_ts/updated_ts/create_time to CEL timestamp. Filters now use standard timestamp/duration arithmetic, e.g. `created_ts >= now - duration("24h")` and `timestamp("2025-01-01T00:00:00Z")`.

Add standard CEL surface that compiles to SQL across SQLite/MySQL/Postgres: timestamp accessors (getFullYear/getMonth/getDate/getDayOfWeek/..., with 0-based month and weekday normalized), ext.Sets() (sets.contains/intersects/equivalent over tags), tags.exists_one(), size() on string fields, and division/modulo folding. A frozen clock is injectable for deterministic tests.

BREAKING CHANGE: now() is removed (use the `now` variable) and time fields are timestamps, so bare-epoch comparisons need timestamp(<epoch>). Existing saved shortcuts using the old syntax must be updated.
2026-06-22 22:42:44 +08:00
..
cache fix: resolve linter warning and cache race condition 2026-01-14 23:50:37 +08:00
db feat(filter): expand CEL filter surface with startsWith/endsWith, matches(), and all() 2026-06-15 23:22:28 +08:00
migration feat(settings): move tag metadata to user settings (#6017) 2026-06-07 23:58:00 +08:00
seed/sqlite chore: tweak demo data 2026-06-19 13:38:02 +08:00
test feat(filter): standard CEL now variable, time accessors, set ops 2026-06-22 22:42:44 +08:00
attachment.go feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
cache.go chore: update store cache 2024-05-12 13:19:31 +08:00
common.go
driver.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
idp.go feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
inbox.go refactor(inbox): store memo comment payloads without activity records (#5741) 2026-03-19 19:33:25 +08:00
instance_setting.go feat(ai): add instance AI providers and transcription (#5829) 2026-04-12 19:23:34 +08:00
memo.go fix: clean up memo_relation and attachments when deleting memo 2026-01-12 23:18:04 +08:00
memo_relation.go fix: reduce list memo query overhead (#5880) 2026-04-22 09:31:48 +08:00
memo_share.go feat: redesign account and SSO management (#5886) 2026-04-24 09:08:58 +08:00
migrator.go fix(release): inject build version into artifacts 2026-04-19 12:02:32 +08:00
reaction.go fix(security): implement security review recommendations (#5228) 2025-11-06 23:32:27 +08:00
store.go fix(auth): harden authorization and username validation (#5890) 2026-04-25 21:24:16 +08:00
user.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
user_delete.go fix: delete user cleanup (#5981) 2026-05-25 22:10:29 +08:00
user_identity.go feat(auth): add SSO user identity linkage (#5883) 2026-04-23 08:51:45 +08:00
user_setting.go feat(settings): move tag metadata to user settings (#6017) 2026-06-07 23:58:00 +08:00