• Johnny's avatar
    feat: allow setting custom timestamps when creating memos and comments · dc7ec8a8
    Johnny authored
    Allow API users to set custom create_time, update_time, and display_time
    when creating memos and comments. This enables importing historical data
    with accurate timestamps.
    
    Changes:
    - Update proto definitions: change create_time and update_time from
      OUTPUT_ONLY to OPTIONAL to allow setting on creation
    - Modify CreateMemo service to handle custom timestamps from request
    - Update database drivers (SQLite, MySQL, PostgreSQL) to support
      inserting custom timestamps when provided
    - Add comprehensive test coverage for custom timestamp functionality
    - Maintain backward compatibility: auto-generated timestamps still
      work when custom values are not provided
    - Fix golangci-lint issues in plugin/filter (godot and revive)
    
    Fixes #5483
    dc7ec8a8
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...