Kostiantyn
c390f83355
Bump gorm and its postgres driver to the latest versions ( #1215 )
...
Co-authored-by: Konstantin Koval
2025-06-02 11:51:02 +03:00
Googol Lee
a378522af4
Use magick generating thumbnails.
...
Fix #1204
* Add bad medias to scanner_test.
* Fix the script.
* Add GenerateThumbnail function.
* Add identify dimension
* Use new API. Cover json condition.
* Use magick to generate thumbnails.
* Update go mod.
* Remove dependency of executable_worker -> test_utils
* Reduce dependency of magick.
* Use magick to get dimension.
* Remove almost all code around `image` package.
* Fix thumbnailing with multi-frame gif.
* Remove the struct in wrapper.
* Fix typo.
* Build images.
* Update logs
* Add jpeg decoder.
* Remove code dependency.
* Add log to confirm scan in parallel.
* Update log
* Add reformat image perf tests.
* Rollback the build workflow.
2025-05-22 09:01:43 +02:00
Kostiantyn
a1aadf678d
Bump several API dependencies to their latest versions ( #1203 )
...
Co-authored-by: Konstantin Koval
2025-05-11 12:08:58 +03:00
Googol Lee
fe3cc16026
Remove Thumbnail Preferences. ( #1200 )
...
* Remove thumbnail preferences. #1089
* Remove thumbnail preferences test.
* Remove thumbnail preferences from backend.
* Fix database.go
* Update generated TS files.
* Reorder the migrations.
2025-05-11 10:44:58 +02:00
Kostiantyn
27a0b082d1
Handle photo not found case in API routes ( #1201 )
...
* Handle media not found issue
* temporary run workflows for master pushes only; tests
* revert temp workflow changes
---------
Co-authored-by: Konstantin Koval
2025-05-10 17:45:32 +03:00
Kostiantyn
36f3924b4f
Bump GQLgen, GQLparser and GORM versions in API ( #1197 )
...
* Bump GQLparser and GORM versions in API
* Bump GQLgen as well
* Revert GORM update
---------
Co-authored-by: Konstantin Koval
2025-05-05 18:14:59 +03:00
Kostiantyn
5d46478c01
Fix the incorrect thumbnails for albums issue ( #1198 )
...
* The fix with test
* Fix test's foreign key issue
* 2 more test cases
* Fix the empty album test expectation
* Return Nil for no thumbnail case instead of an empty album, as expected by frontend. More tests for thumbnail priority choice
* Fix failed tests
---------
Co-authored-by: Konstantin Koval
2025-05-03 18:48:57 +03:00
Googol Lee
07be0af1c2
Add more real media files to scanner_test ( #1195 )
...
* Add real_media to scanner tests.
* Fix tests.
* Remove old test files.
* Fix with reviews.
2025-04-28 11:10:32 +02:00
Peter Dave Hello
cda043ddb8
Add a basic zh-TW Traditional Chinese translation ( #1187 )
2025-04-22 19:09:49 +03:00
Kostiantyn
0961984134
Bump gqlgen and gqlparser versions in API ( #1191 )
...
* Bump `gqlgen` and `gqlparser` versions in API
* new gqlgen version
---------
Co-authored-by: Konstantin Koval
2025-04-21 22:54:49 +03:00
Kostiantyn
18360e71ae
Bump several deps to the latest versions ( #1189 )
...
Co-authored-by: Konstantin Koval
2025-04-15 12:59:15 +03:00
Kostiantyn
862ac5af39
Bump gqlgen to 0.17.70 ( #1184 )
...
Co-authored-by: Konstantin Koval
2025-03-27 20:46:14 +02:00
Kostiantyn
0f19345d86
Bump several GO dependencies to the latest versions ( #1182 )
...
Co-authored-by: Konstantin Koval
2025-03-22 22:20:24 +02:00
Googol Lee
e4d5345d56
scan_test now checks title and face groups explicitly instead of only lengths. (#1180 )
2025-03-11 20:20:07 +01:00
marc7s
d1636fb7ea
Fix album page being empty for users with overlapping paths ( #1159 )
...
* Fix album page being empty for users with overlapping paths, closes #658
* Add test for non root album paths
* Add basic test for non root album path
2025-03-11 18:01:50 +02:00
Kostiantyn
736eb1c051
Bump crypto, fixing its CVE vulnerability ( #1177 )
...
* Bump `crypto`, fixing its CWE vulnerability
* Bumping several deps for this week
---------
Co-authored-by: Konstantin Koval
2025-03-11 17:45:33 +02:00
Kostiantyn
c4d183627d
Bump github.com/go-sql-driver/mysql and golang.org/x/crypto to the latest versions ( #1174 )
...
Co-authored-by: Konstantin Koval
2025-02-22 21:11:43 +02:00
Googol Lee
06acd165f2
Bump golang from 1.23-bookworm to 1.24-bookworm, as well as gqlgen. ( #1172 )
...
* Bump golang from 1.23-bookworm to 1.24-bookworm
Bumps golang from 1.23-bookworm to 1.24-bookworm.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update to use `go tool`, see https://go.dev/doc/go1.24#go-command .
* Update go.mod to go 1.24
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 18:45:30 +01:00
Kostiantyn
ba6a4ec07c
Bump crypto and sys dependencies to new minor versions ( #1170 )
...
Co-authored-by: Konstantin Koval
2025-02-16 11:43:09 +02:00
Kostiantyn
d9627c2aef
Bump x/image, x/text, and x/sync to their latest minor versions ( #1167 )
...
Co-authored-by: Konstantin Koval
2025-02-13 14:45:02 +02:00
Andreas
6d716a1f1e
improved Thumbnail generation performance ( #1158 )
...
* improved Thumbnail generation performance
* unified SQL query style
* adjusted query
* changed query to make it more readable
2025-02-02 21:43:12 +02:00
Kostiantyn
b93d48f94e
Bump gqlgen and gqlparser to the latest versions ( #1166 )
...
Co-authored-by: Konstantin Koval
2025-02-02 20:51:17 +02:00
Kostiantyn
bdb2aef669
Bump gqlgen, copy, crypto, mint, sys deps to the latest versions in API ( #1156 )
...
Co-authored-by: Konstantin Koval
2025-01-19 21:53:50 +02:00
Googol Lee
e045e0f7ae
Fix sqlite fk configuration and enable all tests for sqlite. Enable detail SQL log in tests ( #1151 )
...
* Fix sqlite fk configuration and enable all tests for sqlite.
* Add default severity to golangci-lint config.
2025-01-02 23:02:19 +01:00
Kostiantyn
33ef0981d7
Bump gqlparser to the latest minor version ( #1149 )
...
Co-authored-by: Konstantin Koval
2025-01-02 18:31:24 +02:00
Kostiantyn
9835c1949d
Bump gqlgen in API to the latest version and regenerate the code ( #1147 )
...
Co-authored-by: Konstantin Koval
2024-12-30 17:17:06 +02:00
Googol Lee
f88fcaba69
Use libmagic to identify files type. ( #1124 )
...
* Use libmagic to identify file types.
* Fix mime array for database querying.
* go mod tidy
* Fix typo
* Another fix for the scheduled image build workflow for tag case (#1137 )
* Try to fix the incorrect tag processing
* more debug code
* try with context=git
* hopefully, final debug
* the final commit with no debug code
---------
Co-authored-by: Konstantin Koval
* Add benchmark.
* rollback workflows.
* Fix AI comments.
* Build image.
* Fix AI comments.
* Fix AI comments.
* Rollback build workflow.
---------
Co-authored-by: Kostiantyn <32730812+kkovaletp@users.noreply.github.com >
2024-12-14 22:07:03 +01:00
Kostiantyn
f1d4d0a048
Bump crypto, go-ffprobe, and sqlite GO dependencies in /api ( #1140 )
...
Updated dependencies for improved performance and security:
- golang.org/x/crypto to version v0.31.0
- gopkg.in/vansante/go-ffprobe.v2 to version v2.2.1
- gorm.io/driver/sqlite to version v1.5.7
Co-authored-by: Konstantin Koval
2024-12-14 20:56:44 +02:00
Kostiantyn
3c53ccc304
Bump several API dependencies to the latest versions ( #1138 )
...
* Bump several API dependencies to the latest versions
Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 in /api
Bump github.com/vektah/gqlparser/v2 from 2.5.19 to 2.5.20 in /api
Bump gorm.io/driver/postgres from 1.5.10 to 1.5.11 in /api
Bump golang.org/x/image from 0.22.0 to 0.23.0 in /api
Bump golang.org/x/crypto from 0.29.0 to 0.30.0 in /api
Bump github.com/99designs/gqlgen from 0.17.56 to 0.17.57 in /api
* Regenerate GraphQL code
---------
Co-authored-by: Konstantin Koval
2024-12-06 16:20:48 +02:00
Googol Lee
f1b523a27e
Include a group of small but real media files for testing. ( #1131 )
...
* Move scanner/test_data/* to a stand-alone directory.
* Include real medias.
* Rename testdata to test_data
* Rename test_data/scanner -> test_data/library
* Clean tests to avoid depneding env.
* Rename: scanner/test_data -> scanner/test_media
* Rename: test_data/bin -> test_data/mock_bin
* Fix paths in tests.
2024-11-23 09:02:11 +01:00
Kostiantyn
dde45c29b9
Bump gorm.io/driver/postgres from 1.5.9 to 1.5.10 in /api ( #1135 )
...
Co-authored-by: Konstantin Koval
2024-11-22 13:51:15 +02:00
Googol Lee
a9d7b774bd
Add log package for better logging level. ( #1130 )
...
* Add log package. Update worker with new log package.
* Add init error to worker.
* Init workers when binary launching.
* Add tests to cover different errors.
2024-11-21 10:44:38 +01:00
Kostiantyn
0d69d5584e
Refactor auth.go and media.go to remove deprecated dependencies ( #1128 )
...
* Refactor `auth.go` and `media.go` to remove deprecated dependencies
* Move the `text` dependency to direct ones in the `go.mod`
---------
Co-authored-by: Konstantin Koval
2024-11-20 21:55:14 +02:00
Googol Lee
772129dbeb
Remove continue-on-error: true because it hides errors. ( #1129 )
...
* Add test for the workflow.
* Remove continue-on-error.
* Remove always failing test.
* Fix the hidden failure.
* Regenerated.
2024-11-19 19:03:19 +01:00
Kostiantyn
91bf79a86e
Bump gqlgen and its indirect dependencies in API ( #1123 )
...
Co-authored-by: Konstantin Koval
2024-11-16 16:00:47 +02:00
Kostiantyn
3cf63e7e2b
Bump gqlparser, crypto, image, and their deps to the latest versions ( #1117 )
...
Co-authored-by: Konstantin Koval
2024-11-09 19:02:43 +02:00
Kostiantyn
a0a2380f90
Remove deprecated convert and add required -auto-orient flags ( #1118 )
...
Co-authored-by: Konstantin Koval
2024-11-09 18:49:53 +02:00
Googol Lee
7b69f247d3
Fix gqlgen ( #1105 )
2024-11-02 17:05:29 +01:00
Googol Lee
84c642ca79
Fix gqlgen code ( #1099 )
2024-10-23 20:40:14 +02:00
Googol Lee
c151bdee96
Process jpgs if raw processing is disabled. ( #1096 )
2024-10-20 16:52:47 +02:00
Kostiantyn
7e3f76aba8
Bump github.com/vektah/gqlparser/v2 from 2.5.17 to 2.5.18 in /api ( #1100 )
...
Co-authored-by: Konstantin Koval <kkb@ukr.net >
2024-10-17 18:12:28 +02:00
bzzim
2f13094d08
Fix wrap nil error ( #1042 )
...
* Fix wrap nil error
In this case ReadVideoStreamMetadata return nil, nil because:
func Wrap(err error, message string) error {
if err == nil {
return nil
}
.....
}
* Update process_video_task.go
2024-10-14 14:16:58 +02:00
Googol Lee
4303b71311
Use hardware acceleration when converting videos. ( #1056 )
2024-10-11 22:27:56 +02:00
Kostiantyn
dd90d476ad
Refactoring part 2.4: Long func refactoring in graphql/resolvers ( #1076 )
...
* Split long functions and optimize code
* Addressing comments
* Remove unnecessary input param
---------
Co-authored-by: Konstantin Koval
2024-10-11 12:31:49 +03:00
Kostiantyn
7e0c38b5b4
Bump github.com/99designs/gqlgen, golang.org/x/crypto, golang.org/x/image, golang.org/x/sys, golang.org/x/text ( #1094 )
...
Co-authored-by: Konstantin Koval <kkb@ukr.net >
2024-10-11 10:23:42 +02:00
Kostiantyn
69e595000d
Refactoring part 2.11: Long func refactoring in server and utils ( #1083 )
...
* Split long functions and optimize code
* Addressing comments
---------
Co-authored-by: Konstantin Koval
2024-10-09 18:20:03 +03:00
Kostiantyn
83e441650b
Split long functions and optimize code ( #1082 )
...
Co-authored-by: Konstantin Koval
2024-10-08 21:58:17 +03:00
Kostiantyn
5fc8feb75e
Refactoring part 2.3: Long func refactoring in graphql/models ( #1075 )
...
* Split long functions and optimize code
* 2 more small files
---------
Co-authored-by: Konstantin Koval
2024-10-08 21:10:34 +03:00
Kostiantyn
f8b9590aa9
Refactoring part 2.1: Long func refactoring in database ( #1073 )
...
* Split long functions and optimize code
* Replace `errors.Wrap()` with the `fmt.Errorf()`; rename `process*()` functions to `parse*()`
---------
Co-authored-by: Konstantin Koval
2024-10-04 16:49:41 +03:00
Kostiantyn
57d5ac5235
Bump version ( #1070 )
...
Co-authored-by: Konstantin Koval <kkb@ukr.net >
2024-10-01 16:11:02 +02:00