Commit Graph

705 Commits (9bf648ac911be4729283ef5e34f7f4c9bd86c97e)

Author SHA1 Message Date
cmuangs d649d326ef
fix: remove errors.Wrap(nil) (#4576)
* Fix errors.Wrap(nil)

* fix resource_test failure where resource does not exist
1 year ago
Steven 9b957edd1f chore: fix linter 1 year ago
Steven 8164986fcc chore: move store test 1 year ago
Amir Ehsandar c0643ff6fa
fix: use valid query parameters for postgres (#4515) 1 year ago
Johnny 34ab88348e chore: sort by pinned 1 year ago
Johnny e3a4f49c5c feat: implement creator_id factor 1 year ago
Johnny 925e97882e feat: support pinned factor 1 year ago
Johnny 9107a941ca chore: update linter config 1 year ago
Johnny f98c519834 fix: linter 1 year ago
Johnny 2aaaef79f7 chore: fix tests 1 year ago
Johnny 2dc7766fd0 fix: content contains for postgres 1 year ago
MHZ 174b8b048a
feat: support blur processing for NSFW content with customizable NSFW tags (#4407) 1 year ago
Johnny 9299c216e2 chore: move migration to 0.24.0 1 year ago
Chris Dzombak d25f355392
chore: allow storing resource references >256 chars long in mysql (#4408)
fix: allow storing resource references >256 chars long in mysql
1 year ago
Johnny 0a429a899f chore: remove version update activity 1 year ago
wzc90 3f33ccd906
fix: update 01__memo_pinned.sql (#4370) 1 year ago
Steven 7996586488 chore: fix migration script for sqlite 1 year ago
johnnyjoy 54a48b58d7 chore: remove random field 1 year ago
johnnyjoy 07336f0392 chore: update condition concat check 1 year ago
johnnyjoy a7ca63434b feat: validate shortcut's filter 1 year ago
johnnyjoy ff04fdc459 feat: support more operators in filter 1 year ago
johnnyjoy f25acfe8e2 chore: fix linter 1 year ago
johnnyjoy e0e735d14d feat: support memo filter for mysql and postgres 1 year ago
johnnyjoy 364f005ee5 fix: filter 1 year ago
johnnyjoy 3a085f3639 chore: fix filter tests 1 year ago
johnnyjoy 8e586d348e chore: fix tag filter 1 year ago
johnnyjoy bf5a29524a chore: remove drop index 1 year ago
johnnyjoy 14c72fa7df feat: implement shortcuts 1 year ago
johnnyjoy b9a0c56163 feat: support more factors in filter 1 year ago
johnnyjoy 2a392b8f8d chore: fix import order 1 year ago
johnnyjoy f31800456e chore: fix import order 1 year ago
johnnyjoy 58a867e4da fix: linter warning 1 year ago
johnnyjoy 2d731c5cc5 feat: memo filter for sqlite 1 year ago
johnnyjoy 0af08d9c06 chore: add if exists to postgres 1 year ago
Xiao Wei 37a81f9d28
fix: migrate sql error (#4338)
* fix: migrate sql error

sqlite not support postgres sql

* Apply suggestions from code review

---------

Co-authored-by: Johnny <yourselfhosted@gmail.com>
1 year ago
johnnyjoy b0119f320a chore: tweak migration scripts 1 year ago
johnnyjoy 9bd6d17864 chore: add migration script 1 year ago
johnnyjoy 39d4d4f4f3 chore: update migrate scripts 1 year ago
johnnyjoy d605faeffa refactor: move pinned to memo 1 year ago
johnnyjoy 2058a8ab7b chore: move references to memo property 1 year ago
Viacheslav Potoropin 7ed3a12a64
fix: internal error on pin/unpin (#4332) 1 year ago
Zero King 5ec3150e0e
fix: use correct separator in migration file name (#4327)
Fixes: e913271f15 ("refactor: move tags from property to payload (#4229)")
1 year ago
Steven 8b7e9f5443 chore: remove unused user id 1 year ago
johnnyjoy c1498a1844 chore: retire webhook state 1 year 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>
1 year ago
Steven 51c80c37d1 revert: tweak reaction_type column type for mysql 2 years ago
Steven 9f2c1b2556 chore: tweak reaction_type column type for mysql 2 years ago
johnnyjoy 80785de900 chore: remove unused script 2 years ago
Steven 378b6a51c1 chore: tweak default reactions 2 years ago
RoccoSmit bcd8856732
fix: added missing " (#4119)
Added missing "
2 years ago
RoccoSmit 3b25a6bbec
fix: handle missing reaction (#4094)
* migration version

* Updated test to match with current version set in version.go file

* updated logic to check if migration should run for fresh install

* Update test to test for version number set in version.go

* fixed test

* Revert "fixed test"

This reverts commit 4004d0e92b.

* Revert "Update test to test for version number set in version.go"

This reverts commit d304add5d6.

* Revert "updated logic to check if migration should run for fresh install"

This reverts commit b44dca2194.

* Revert "Updated test to match with current version set in version.go file"

This reverts commit 3ad0d889b6.

* Revert "migration version"

This reverts commit b13cfc346a.

* Added default reaction if no reation found

* Fixed static check issue

* Use emoji
2 years ago
Steven 317cf06579 chore: tweak demo data 2 years ago
Steven 14712b42fa chore: add pagination to list inboxes 2 years ago
Steven d066d46f6e chore: tweak schema version 2 years ago
Steven d54c8065b5 chore: update demo data 2 years ago
Steven e527b6a878 feat: move reaction type to setting 2 years ago
Steven cf4e660f41 chore: add memo location setting 2 years ago
Steven 8b444be6ca chore: update tag search 2 years ago
Sriniwas 2db67118fc
fix: case insensetive memo search for postgres (#3938)
fix:case insensetive memo search for postgres #3892
2 years ago
johnnyjoy 1da0752922 chore: add schema version to workspace setting 2 years ago
Leo 95939ebcf1
fix: v0.22.5: start fail caused by incorrect migration file naming (#3873)
fix incorrect naming of migration file
2 years ago
johnnyjoy 5bbf57ece4 chore: update comments of find memo 2 years ago
Steven 4322bfa506 chore: tweak seed data 2 years ago
Steven fa2b01cfb1 chore: tweak latest schema file name 2 years ago
Steven 20570fc771 refactor: resource thumbnail 2 years ago
Steven 615aa94793 fix: base path of migrator 2 years ago
Steven d11bd30ec6 chore: tweak logger 2 years ago
Steven 7134ad4883 chore: fix migration history 2 years ago
Steven fbdfaf85d9 chore: update migrator 2 years ago
Steven ccd3fdcd38 chore: fix tests 2 years ago
Steven 70837f88cb chore: fix linter 2 years ago
Steven 525223c261 chore: add tests for migrator 2 years ago
Steven 06c460b476 chore: tweak linter warning 2 years ago
Steven 07012e3f60 chore: remove unused files 2 years ago
Steven 1b6685d7cf chore: tweak linter warning 2 years ago
Steven 6e901fc940 refactor: store migrator 2 years ago
Steven 724db203f7 chore: tweak seed data 2 years ago
tiltshiftfocus a5978e7657
fix: tag query for mysql (#3785) 2 years ago
Steven 07667257d5 feat: support order by time asc 2 years ago
Steven 342b6ad696 chore: tweak seed data 2 years ago
Steven 4b415e519e chore: tweak demo data 2 years ago
Steven 8bf7cdfd31 feat: add password auth flag 2 years ago
Steven edc3b578d6 feat: implement search multi tags 2 years ago
Steven 446e38f15b fix: memo content snippet 2 years ago
Steven 457cf92cc1 feat(api): implement get resource by uid 2 years ago
Steven 54539aa047 chore: tweak seed data 2 years ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 2 years ago
Steven b1cc1255bb chore: tweak seed data 2 years ago
Steven 423861d48c fix: create idp in postgres 2 years ago
Steven e475f00ba1 chore: tweak seed data 2 years ago
Steven f0e5a72271 feat: update search memo filter 2 years ago
Steven 93d06bc0f0 chore: tweak readme 2 years ago
Steven b0aad6f694 chore: tweak resource payload 2 years ago
wzc90 0a9212f815
fix: memo find for mysql(#3387)
* Update memo.go

* Update store/db/mysql/memo.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
wzc90 3ecbbf31a9
fix: migration scripts for mysql (#3384) 2 years ago
wzc90 deb1deb14c
fix: resource create time format for mysql (#3381) 2 years ago
Steven 2317204c50 fix: list idp 2 years ago
Steven 0c673d49ef chore: retire memo tags 2 years ago
Steven d3744ccfa3 chore: tweak seed data 2 years ago
Steven c561362d62 feat: implement memo property 2 years ago
Steven 555b4fbe32 chore: update seed data 2 years ago
Steven 8948edf654 chore: impl memo payload definition 2 years ago
Steven b8763905ba chore: tweak naming 2 years ago
Michael 6df3cf808e
chore: update seed data 2 years ago
Steven eda1983964 chore: return workspace setting with default value 2 years ago
Steven cf423026a5 chore: update store cache 2 years ago
Leo LI 93e8fa4912
fix: upgrade scripts for mysql
* Fix mysql db migration

* Update store/db/mysql/migration/prod/0.22/01__memo_tags.sql

* Update store/db/mysql/migration/prod/0.22/02__memo_payload.sql

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
Steven 29a22914cf fix: postgres upgrade script 2 years ago
Steven 087f60ba7b chore: fix user setting key checks 2 years ago
wzc90 d4157bcffa
fix: upgrade scripts (#3347) 2 years ago
wzc90 80df8f8aed
fix: upgrade scripts (#3344) 2 years ago
Steven f30599fbd2 chore: fix scripts 2 years ago
Steven 041f9b1beb chore: bump version 2 years ago
boojack 3fbc4d8539
feat: implement drag and drop for resource order in editor (#3337)
* Implement drag and drop for resource order in editor

* chore: update

* chore: update

* chore: update
2 years ago
Steven 16670b6b8d chore: tweak seed data 2 years ago
Steven f7f4206fa1 chore: fix linter 2 years ago
Steven 292861be16 chore: retire tag store 2 years ago
Steven d0655ece53 refactor: update memo tags 2 years ago
steven e16546f80a chore: handle legacy workspace setting 2 years ago
Steven af1ad2f2db chore: add memo content length limit setting 2 years ago
Steven 5742f9ca13 fix: seed data 2 years ago
Steven 74145157a0 chore: add presign background service 2 years ago
Steven 775b79338d chore: update object in s3 2 years ago
Steven 26545c855c refactor: implement s3 storage 2 years ago
Steven 4338234641 chore: retire storage related functions 2 years ago
Steven 320963098f refactor: update storage setting 2 years ago
Steven 2cdcd17ba3 chore: tweak linter 2 years ago
Steven 14d4cfd5a4 chore: tweak store methods name 2 years ago
Steven d00e4fdf17 chore: retire telegram plugin 2 years ago
Steven 9a2c423435 chore: update var-naming 2 years ago
Steven cebc46adc7 chore: tweak store definition 2 years ago
Steven c373131b89 chore: migrate idp service 2 years ago
Steven a77703260f chore: fix linter 2 years ago
Steven 8f51529c78 chore: implement storage service 2 years ago
Steven 707e5caf89 chore: update workspace setting store 2 years ago
Steven 755d5b83c6 chore: retire legacy setting api 2 years ago
Steven 3088cabe10 chore: tweak linter 2 years ago
Steven 3e6e56b008 refactor: update workspace store definition 2 years ago
Steven 4c47e93fce chore: tweak workspace setting store 2 years ago
Steven a376dc4dd6 chore: fix linter 2 years ago
Steven 71c39ed554 chore: update workspace setting definition 2 years ago
Steven c93b1efbae chore: update workspace setting store 2 years ago
Steven bb10bb200c chore: implement search random memos 2 years ago
Steven 03c93785f4 chore: implement list random users 2 years ago
Steven 90679cc33a chore: add explore sidebar 2 years ago
Steven be525fa3df chore: fix migration script 2 years ago
Steven 8fd1dff484 chore: update migration scripts 2 years ago
Steven 7cc8b951a3 refactor: update resource id naming 2 years ago
Steven e795149186 chore: tweak memo view display 2 years ago
Steven 8fe6874b1b chore: add description field to user 2 years ago
Steven 7d5f603482 chore: update compact view 2 years ago
Steven dfa78cac49 chore: update logger 2 years ago
Steven 5b92ac1775 chore: fix setting migrator 2 years ago
Steven ce133ad69b chore: retire unused workspace settings 2 years ago
Steven 6b14d87521 chore: fix linter 2 years ago
Steven 51d58d3982 chore: add workspace setting migrator 2 years ago
Steven 80b64c02fd chore: tweak workspace setting seeds 2 years ago
Steven fa62e8b59a chore: tweak linter errors 2 years ago
Steven 8e11826db1 chore: update workspace setting service 2 years ago
Steven b3ca9969c4 chore: tweak linter 2 years ago
Steven 3dddd3ec4c chore: tweak reaction store 2 years ago
Steven 4081a6f5ad chore: add more reactions 2 years ago
Steven 3a5bc82d39 chore: implement reaction service 2 years ago
Steven 43a2d6ce09 chore: tweak user setting 2 years ago
Mehad Nadeem d2434111b4
chore: impl compact mode setting (#2935)
* chore: backend/DB related files for compact view setting.

* fix: passing lint errors

* fix2: passing linter errors
2 years ago
Steven 559e427c50 chore: implement reaction store 2 years ago
Steven b4f2a3bd14 chore: remove migrator 2 years ago
Lincoln Nogueira 279cba0e6b
chore: greatly speed up migrator and lower memory usage (#2874)
* chore: add en-GB language

* chore: remove en-GB contents

* chore: prevent visitors from breaking demo
- prevent disabling password login
- prevent updating `memos-demo` user
- prevent setting additional style
- prevent setting additional script
- add some error feedback to system settings UI

* Revert "chore: add en-GB language"

This reverts commit 2716377b04.

* chore: speed-up migrator and lower memory usage
- remove all Store indirections
- query database directly with prepared statements

* chore: fix golangci-lint warnings
2 years ago
Steven de8db63811 chore: rename workspace setting service 2 years ago
Aleksandr Baryshnikov fa17dce046
feat: pre-signed URL for S3 storage (#2855)
Adds automatically background refresh of all external links if they are belongs to the current blob (S3) storage. The feature is disabled by default in order to keep backward compatibility.

The background go-routine spawns once during startup and periodically signs and updates external links if that links belongs to current S3 storage.

The original idea was to sign external links on-demand, however, with current architecture it will require duplicated code in plenty of places. If do it, the changes will be quite invasive and in the end pointless: I believe, the architecture will be eventually updated to give more scalable way for pluggable storage. For example - Upload/Download interface without hard dependency on external link. There are stubs already, but I don't feel confident enough to change significant part of the application architecture.
2 years ago
Steven ef73299340 chore: update resource name migrator 2 years ago
Steven f05a89315c chore: fix list memos 2 years ago
Steven 5e74394643 chore: add resource name migrator 2 years ago
Wei Zhang ddc89029b7
fix: use mysql to parse dsn (#2838)
Signed-off-by: Zhang Wei <kweizh@gmail.com>
2 years ago
Steven f8b9a83d4a chore: tweak default value 2 years ago
Steven 2f16b7065a chore: tweak scripts 2 years ago
Steven 4f2b00b4f3 chore: add migration scripts 2 years ago
Steven 54a24833a7 chore: fix resource seeds 2 years ago
Steven 582cc6609c feat: add user-defined id to resource 2 years ago
Steven b2fc3076f6 chore: update memo store 2 years ago
Steven 8382354ef7 feat: add user-defined name to memo 2 years ago
Steven d426f89cf0 chore: add time filter to timeline 2 years ago
Wen Sun a22ad90174
fix: set memo resources error in mysql (#2761)
Fix error updating memo resources in mysql
2 years ago
Steven 8e0ce4d678 fix: list memos with pinned 2 years ago
Wen Sun 6cfd94cc69
fix: deleting inbox records that senders have been deleted (#2743)
Deleting inbox records that senders have been deleted
2 years ago
Steven 9c663b1ba2 fix: merge mysql dsn with params 2 years ago
Steven 9459ae8265 chore: update postgres stmt builder 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 8b9455d784 chore: fix memo resources position 2 years ago
Steven 501f8898f6 chore: fix postgres stmts 2 years ago
Lincoln Nogueira 369b8af109
chore: improve resource internal_path migrator (#2698)
* chore: improve internal path migrator
- handle mixed path styles
- handle Windows paths
- add tests

* chore: fix goimports error
2 years ago
Steven c797099950 chore: update resource internal path migrator 2 years ago
Lincoln Nogueira 411e807dcc
chore: use consistent relative paths for resources (#2683)
- always store resources with a relative path with forward slashes, which will be transformed as needed when the file is accessed

- fix an issue with thumbnail generation on Windows

- add several validations for local storage setting

- improve front-end error feedback when changing local storage

- add migrations to make existing resource paths relative (not needed, but improves database consistency)
2 years ago
Steven 02265a6e1a chore: fix memo search 3 years ago
Athurg Gooth f184d65267
fix: attachments send from telegram lost (#2650) 3 years ago
Steven 762cb25227 chore: update memo service 3 years ago
Steven fc01a796f8 chore: fix demo seed data 3 years ago
Steven e0cacfc6d6 chore: retire auto backup for sqlite 3 years ago