Commit Graph

47 Commits (46ce0bc62ef614e2bded49fe9277284aced151f0)

Author SHA1 Message Date
Steven 46ce0bc62e fix(store): correct PostgreSQL placeholder generation in IN clauses
Fixes a regression introduced in v0.25.2 where PostgreSQL IN clause
placeholders were not properly incremented, causing all parameters to
use the same placeholder index (e.g., $1, $1, $1 instead of $1, $2, $3).

This bug affected:
- ListReactions (ContentIDList) - caused "failed to list reactions" errors
- ListAttachments (MemoIDList)
- ListMemos (IDList and UIDList)

The fix combines placeholder generation and argument appending into a
single loop to ensure proper incrementing.

Fixes #5188

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
3 weeks ago
Claude e35f16306e feat: add id as final tie-breaker in ListMemos 3 weeks ago
Steven b4ea7d843f feat: enhance memo sorting functionality to support multiple fields 3 weeks ago
Copilot b685ffacdf refactor: memo filter
- Updated memo and reaction filtering logic to use a unified engine for compiling filter expressions into SQL statements.
- Removed redundant filter parsing and conversion code from ListMemoRelations, ListReactions, and ListAttachments methods.
- Introduced IDList and UIDList fields in FindMemo and FindReaction structs to support filtering by multiple IDs.
- Removed old filter test files for reactions and attachments, as the filtering logic has been centralized.
- Updated tests for memo filtering to reflect the new SQL statement compilation approach.
- Ensured that unsupported user filters return an error in ListUsers method.
4 weeks ago
varsnotwars fa2fa8a5d7
refactor: remove call to db for parent memo name (#4947) 3 months ago
johnnyjoy ed23cbc011 refactor: memo filter 4 months ago
Steven 1a75d19a89 fix: memo filter for sqlite 4 months ago
johnnyjoy 6d9770b9c8 chore: move filter to filters 4 months ago
johnnyjoy 7481fe10bf chore: remove order by pinned 4 months ago
Johnny 34ab88348e chore: sort by pinned 8 months ago
Johnny 925e97882e feat: support pinned factor 8 months ago
johnnyjoy 54a48b58d7 chore: remove random field 9 months ago
johnnyjoy 07336f0392 chore: update condition concat check 9 months ago
johnnyjoy a7ca63434b feat: validate shortcut's filter 9 months ago
johnnyjoy e0e735d14d feat: support memo filter for mysql and postgres 9 months ago
johnnyjoy d605faeffa refactor: move pinned to memo 10 months ago
johnnyjoy 2058a8ab7b chore: move references to memo property 10 months ago
Viacheslav Potoropin 7ed3a12a64
fix: internal error on pin/unpin (#4332) 10 months ago
Johnny e913271f15
refactor: move tags from property to payload (#4229)
* refactor: move tags from property to payload

* chore: fix tests

* chore: drop memo tags

* chore: update

---------

Co-authored-by: Steven <stevenlgtm@gmail.com>
11 months ago
Steven 8b444be6ca chore: update tag search 1 year ago
Sriniwas 2db67118fc
fix: case insensetive memo search for postgres (#3938)
fix:case insensetive memo search for postgres #3892
1 year ago
Steven 07667257d5 feat: support order by time asc 1 year ago
Steven edc3b578d6 feat: implement search multi tags 1 year ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 1 year ago
Steven f0e5a72271 feat: update search memo filter 1 year ago
Steven 0c673d49ef chore: retire memo tags 2 years ago
Steven c561362d62 feat: implement memo property 2 years ago
Steven 8948edf654 chore: impl memo payload definition 2 years ago
Steven d0655ece53 refactor: update memo tags 2 years ago
Steven 26545c855c refactor: implement s3 storage 2 years ago
Steven bb10bb200c chore: implement search random memos 2 years ago
Steven 7cc8b951a3 refactor: update resource id naming 2 years ago
Steven f05a89315c chore: fix list memos 2 years ago
Steven b2fc3076f6 chore: update memo store 2 years ago
Steven d426f89cf0 chore: add time filter to timeline 2 years ago
Steven 8e0ce4d678 fix: list memos with pinned 2 years ago
Steven d67eaaaee2 chore: update database migrator 2 years ago
Steven fd8333eeda chore: fix memo parent_id 2 years ago
Steven a297cc3140 chore: exclude comments in memo list response 2 years ago
Steven 501f8898f6 chore: fix postgres stmts 2 years ago
Steven 603a6a4971 chore: fix vacuum memo 2 years ago
Cologler 6bda64064e
fix: delete one memo will delete all memos on pgsql (#2611)
fix: delete single memo will all memos on pgsql

Close #2605
2 years ago
Steven c608877c3e chore: clean binary entries 2 years ago
Steven 52f399a154 chore: remove unused functions 2 years ago
Steven d275713aff chore: fix timestamp type in postgres 2 years ago
Steven fa6693a7ae chore: update list memos 2 years ago
Irving Ou 9c18960f47
feat: support Postgres (#2569)
* skeleton of postgres

skeleton

* Adding Postgres specific db schema sql

* user test passed

* memo store test passed

* tag is working

* update user setting test done

* activity test done

* idp test passed

* inbox test done

* memo_organizer, UNTESTED

* memo relation test passed

* webhook test passed

* system setting test passed

* passed storage test

* pass resource test

* migration_history done

* fix memo_relation_test

* fixing server memo_relation test

* passes memo relation server test

* paess memo test

* final manual testing done

* final fixes

* final fixes cleanup

* sync schema

* lint

* lint

* lint

* lint

* lint
2 years ago