Commit Graph

68 Commits (a55afbd3edfde3aa41c98f042fcce44a1b58d94c)

Author SHA1 Message Date
Steven 6e901fc940 refactor: store migrator
Steven 457cf92cc1 feat(api): implement get resource by uid
Steven b0aad6f694 chore: tweak resource payload
Steven 74145157a0 chore: add presign background service
Steven 775b79338d chore: update object in s3
Steven 26545c855c refactor: implement s3 storage
Steven 7cc8b951a3 refactor: update resource id naming
Aleksandr Baryshnikov fa17dce046
feat: pre-signed URL for S3 storage ()
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.
Steven 582cc6609c feat: add user-defined id to resource
Lincoln Nogueira 411e807dcc
chore: use consistent relative paths for resources ()
- 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)
Steven dca712d273 chore: fix resource tests
Steven ac81d856f6 chore: delete resource file sync
Steven a6ee61e96d chore: update package name
Athurg Gooth ca98367a0a
chore: store vacuum and clean ()
* Move all vacuum code into driver

* Remove db from Store
Steven 6007f48b7d chore: retire memo resource relation table
Athurg Gooth d3a6fa50d6
chore: move sql code of Resource into driver ()
Move sql code of Resource into driver
Steven 465b173b36 chore: fix resource int type
Steven 9bf1979fa8 fix: list resources
Steven fb1490c183 feat: impl resources list page
Steven 4424c8a231 chore: add resource service definition
boojack 7c5296cf35
chore: update id type to int32 ()
Athurg Gooth 11abc45440
feat: add command to move blob from local to db ()
* Add `mvrss` command to move blob from local to db

* Add comment for mvrss command
boojack 4c33d8d762
chore: remove unused transaction in store ()
* chore: remove unused transaction in store

* chore: update
boojack 7e391bd53d
chore: remove resource public id ()
* chore: remove resource public id

* chore: update
boojack 0e05c62a3b
chore: update common utils ()
boojack a7573d5705
refactor: migrate memo to apiv1 ()
* refactor: migrate memo to apiv1

* chore: update

* chore: update

* chore: update

* chore: upate

* chore: update

* chore: update
boojack 1fa9f162a5
refactor: migrate resource to apiv1 ()
boojack de8014dfe8
feat: resource store cache ()
boojack ea728d232d
refactor: memo store ()
boojack 9b8d69b2dd
chore: add vacuum memo relation to dev guard ()
* chore: add vacuum memo relation to dev guard

* chore: update
boojack 4419b4d4ae
chore: update version and remove isDev flag ()
* chore: update version and remove isDev flag

* chore: update
boojack 1cab30f32f
feat: add public id field to resource ()
* feat: add public id field to resource

* feat: support reset resource link
boojack 41c50e758a
chore: revert resource visibility changes ()
CorrectRoadH 424f10e180
feat: request pagination for resource()
* feat: add support for resource page on frontend

* [WIP]feat: add backend support for limit and offset search

* feat: add reducer to add resource

* support fetch all resource when first search

* beautify the fetch ui

* restore file

* feat: add all resource before clear resource

* eslint

* i18n

* chore:change the nane

* chore: change the name of param

* eslint

* feat: setIsComplete to true when first loading resource fully

* fix the bug of fetch

* feat change finally to then

* feat: add await and async to clear and search

* feat: return all resource when fetch

* chore: change variable name

* Update web/src/pages/ResourcesDashboard.tsx

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

* fix missing const value

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
Zeng1998 f3090b115d
feat: support local storage ()
* feat: support local storage

* update

* update

* update

* update
boojack ff8851fd9f
fix: golangci-lint version ()
* chore: update interface declare

* chore: update args

* chore: update

* chore: update
boojack 29f784cc20
feat: update find resource with linked memo amount ()
* feat: update find resource with linked memo amount

* chore: remove unused test
boojack 977e7f55e5
feat: add visibility field to resource ()
boojack f74d1b7bf8
chore: remove resource cache ()
boojack 6c3ff6de63
chore: get resource blob optional ()
boojack c5368fe8d3
chore: update resource dialog style ()
boojack 575a0610a3
chore: revert "feat: add `visibility` field to resource ()" ()
Revert "feat: add `visibility` field to resource ()"

This reverts commit b68cc08592.
boojack b68cc08592
feat: add `visibility` field to resource ()
boojack dc5d705f8c
feat: vacuum records manually ()
Zeng1998 e85d368f87
feat: patch resource filename ()
* feat: resource filename rename

* update: resource filename rename

* update: resource filename rename

* update: validation about the filename

Co-authored-by: boojack <stevenlgtm@gmail.com>
Steven 349c383604 chore: reorder memo resource
steven 0b9b89db81 chore: update `VACUUM`
steven 85dc29bfb9 feat: add `linkedMemoAmount` to resource
steven 9f8c0ce567 fix: raw data cache
steven 4c465bef2d feat: add memo resource apis