Michael Mayer
fbf675fbfb
Add s2 prefix to all cell ids
...
Fixes location search when using SQLite
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-05 16:49:32 +02:00
Michael Mayer
3ecb205133
Moments: Remove emojis from album titles
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-05 11:09:08 +02:00
Michael Mayer
5c574e3837
Backend: Hide private photos in moments
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-05 10:59:59 +02:00
Michael Mayer
5a06433a1c
Fix restore photo data from YAML files
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-05 10:17:00 +02:00
Michael Mayer
5b1c0f2afe
Refactor Photo.LoadLocation and LoadPlace
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 22:26:00 +02:00
Michael Mayer
f16169c259
Refactor Photo.PlaceLoaded and LocationLoaded
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 22:05:24 +02:00
Michael Mayer
6564e7a548
NewPhoto should only set default IDs, not entities
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 21:55:00 +02:00
Michael Mayer
c0a3ab5ac5
Favorites: Don't count private photos #334
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 17:33:00 +02:00
Michael Mayer
916e3a570c
Backend: Don't index sidecar files if main file failed
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 17:06:42 +02:00
Michael Mayer
ca8a8466d4
Indexing bug fixes and UX improvements
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-04 14:56:27 +02:00
Michael Mayer
18f7a999fd
Backend: Add search filter for "original" file name #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-03 10:33:09 +02:00
Michael Mayer
3542bc5d61
Backend: Run moments after import
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-03 10:26:29 +02:00
Michael Mayer
15113afaa6
Backend: Fix handling of deleted labels
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-02 17:57:12 +02:00
Michael Mayer
bf7bb5006b
Backend: Remove debug log messages
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-02 16:33:23 +02:00
Michael Mayer
716012aa8b
Backend: Improve labels and title capitalization
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-01 13:22:19 +02:00
Michael Mayer
973911fabf
Backend: Code clean-up and small improvements
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-01 12:08:08 +02:00
Michael Mayer
cd54bbe7ae
Backend: Improve title capitalization
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-01 11:23:15 +02:00
Theresa Gresch
ad9167360d
Feature/246 ( #345 )
...
* Import: Implement "add to album" in backend #246
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Import: Implement "add to album" in frontend #246
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Add OriginalName to photo search result
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Add json tags to PhotoName and PhotoPath
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Photo: Use EstimateCountry() in UpdateLocation()
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Photo: Set OriginalName earlier while indexing
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Ignore whitespace when stripping sequence from filename #335
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Fix labels count for SQLite
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Import: Show name of new albums #246
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
* Frontend: Add acceptance test files
Co-authored-by: Michael Mayer <michael@liquidbytes.net>
2020-06-01 09:45:24 +02:00
Michael Mayer
a1238c94cc
Fix photo test after improving location estimate #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 18:19:24 +02:00
Michael Mayer
68c758a686
Backend: Improve location list for estimates #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 17:45:58 +02:00
Michael Mayer
14c89022d3
Improve browsing by original file and folder name #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 14:42:41 +02:00
Michael Mayer
23df85375e
Originals and import path auto-configuration #66
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 12:20:32 +02:00
Michael Mayer
4684f66298
Improve storage path auto-configuration #66
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 11:28:28 +02:00
Michael Mayer
1d8e7f1ad3
Show all months in calendar, even with just one photo #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 11:28:05 +02:00
Michael Mayer
4e214ae202
Set year, month and country for folder albums #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 03:45:38 +02:00
Michael Mayer
d0199598d0
Simplify configuration #66
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 02:09:52 +02:00
Michael Mayer
825c8b31a7
Code clean-up (make fmt)
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 21:37:24 +02:00
Michael Mayer
cf05b82732
Fix albums test #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 21:34:42 +02:00
Michael Mayer
946f7967b5
Implement download as zip for moments, calendar and folders #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 21:31:32 +02:00
Michael Mayer
5d92ece264
Albums: Add category filter
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 21:11:56 +02:00
Michael Mayer
ea6ed61d1f
Automatically create albums from folders #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 15:42:04 +02:00
Michael Mayer
0b1bcf0d4a
Replace TiDB with SQLite for improved stability #66
...
As a side effect, we need less configuration values.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 14:52:47 +02:00
Michael Mayer
dd442ab9e9
Add moments #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 01:41:47 +02:00
Michael Mayer
e775c8f910
Metadata: Limit Exif extraction to photos #338
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-29 18:14:43 +02:00
Michael Mayer
9a5d4fa719
Backend: Indexing improvements #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-29 18:04:30 +02:00
Michael Mayer
f6c929528e
Locations and places: Revert key renaming
...
Code reads better this way.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-29 12:56:24 +02:00
Michael Mayer
dcc610d7a9
Use AlbumType to distinguish between manual collections and moments #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-29 12:21:17 +02:00
Alex Kay
c5c07d58f9
Fix inconsistent naming for PHOTOPRISM_READONLY ( #337 )
...
The actual name used throughout all Docker and YAML config files is `PHOTOPRISM_READONLY`
2020-05-29 09:23:26 +02:00
Michael Mayer
a77b2431d3
Backend: Improve labels, keywords and caching
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 21:20:42 +02:00
Michael Mayer
4783183790
Thumbnails: Improve log message
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 21:17:23 +02:00
Michael Mayer
52473a1ca9
Add thumbnail filename cache and reuse db connections
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 16:26:22 +02:00
Michael Mayer
ed8390906c
Add PHOTOPRISM_DATABASE_CONNS config parameter
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 15:37:08 +02:00
Michael Mayer
02800e796e
Guess title, location and date from file and path name #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 15:12:18 +02:00
Michael Mayer
94846c2337
Rename ThumbToken to PreviewToken
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-27 19:56:56 +02:00
Michael Mayer
6f6e3799dc
Refactor download urls and client config
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-27 19:38:40 +02:00
Michael Mayer
f510ac994c
XMP: Group files based on DocumentID and Instance ID #335
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-27 13:40:21 +02:00
Michael Mayer
301e510b2d
Photos: Generate title based on estimated place #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 21:51:34 +02:00
Michael Mayer
1df0d9a549
Change name of maintenance worker to "prism" #154
...
See https://twitter.com/browseyourlife/status/1265289044856123393
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 19:27:29 +02:00
Michael Mayer
968cd71f34
Backend: Add groom worker and test stubs #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 15:15:14 +02:00
Michael Mayer
24cc8089fa
Fix favorite counter for archived files #334
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 13:43:16 +02:00
Michael Mayer
fe732e274c
Fix saving photo metadata
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 12:46:22 +02:00
Michael Mayer
dd42d2b823
Entities: Refactor FirstOrCreate
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 11:00:39 +02:00
Michael Mayer
10d5f433aa
Albums/Folders: Add category, country, year & month columns #154
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 09:02:19 +02:00
Michael Mayer
26f749cfdc
Folder selections should include sub directories #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-26 07:14:50 +02:00
Michael Mayer
2156afd85a
File browser: Implement clipboard; refactor entities and fixtures #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-25 19:10:44 +02:00
Michael Mayer
4421e7d203
Add simple file browser to Library #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-24 22:16:06 +02:00
Michael Mayer
03ec4b586d
Initial commit for folders and moments #154 #260 #331
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-23 20:58:58 +02:00
Michael Mayer
65212f393f
API: Shorten cache debug messages #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-22 20:08:28 +02:00
Michael Mayer
75fd1904f3
Add caching to folders API #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-22 20:00:33 +02:00
Michael Mayer
c88cd69e5c
Backend: Make sure dirs exist in folder API tests #328
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-22 19:25:53 +02:00
Michael Mayer
e796d036c2
Fix indexer and add sort by file name #328
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-22 19:05:16 +02:00
Michael Mayer
a7122ff4e1
Add /folders API to get directory lists for browsing #260
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-22 16:29:12 +02:00
Michael Mayer
0eb30715b3
Backend: Add folder as alias for path in search form
...
Due to popular request, see https://twitter.com/browseyourlife/status/1263442036570697731
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-21 16:46:22 +02:00
Michael Mayer
f9b6952947
Support for Live Photos #177
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-21 13:26:28 +02:00
Michael Mayer
2efb0039e8
Photos: Add photo_type column and search filters for path / name
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-21 10:03:56 +02:00
Michael Mayer
c7e46c44d9
API: Add return to preview error handler
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-20 22:21:59 +02:00
Michael Mayer
1297a8cc1f
Read taken date from file name #304
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-20 15:10:24 +02:00
Michael Mayer
a77d74e6eb
Add play button for videos to photo viewer #321
...
You can now play a video by clicking on the title (or description) if a video icon is shown next to it.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-20 10:42:48 +02:00
Michael Mayer
d3cc3ccc82
Sync: Disable account when retry limit is reached
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 19:55:20 +02:00
Michael Mayer
6f3ccc95aa
Backend: Make sure .photoprism directory exists
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 19:49:32 +02:00
Michael Mayer
4300d45482
Backend: Log errors in database
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 13:48:05 +02:00
Michael Mayer
a785a9d708
Backend: Update TestPhoto_Save test
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 12:51:19 +02:00
Michael Mayer
27ea0cb214
Backend: Improve entity log and error messages
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 12:48:32 +02:00
Michael Mayer
1cf0893b18
Backend: Fix AfterCreate after upgrading GORM
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 12:30:26 +02:00
Michael Mayer
132db3c0d2
Backend: Upgrade Go modules
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 12:09:48 +02:00
Michael Mayer
f720ca6664
Check PHOTOPRISM_JPEG_HIDDEN flag when converting #311
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 11:33:39 +02:00
Michael Mayer
e61dda495a
Add PHOTOPRISM_SIDECAR_HIDDEN and PHOTOPRISM_JPEG_HIDDEN flags #311
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 11:00:17 +02:00
Michael Mayer
7777fa95a5
Backend: Don't backup albums to photo yaml (just yet)
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 09:44:49 +02:00
Michael Mayer
bbe60d120b
Backend: Set DescriptionSrc when restored from YAML
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-19 09:21:10 +02:00
Michael Mayer
da067f52e7
Improve command flag descriptions for sidecar files
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 22:21:27 +02:00
Michael Mayer
b24d5c03a1
Use YAML files to save and restore photo metadata
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 22:18:58 +02:00
Michael Mayer
f057880df3
Backend: Fix panic in File.Save()
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 17:57:40 +02:00
Michael Mayer
7f2b13bf71
Backend: Use actual instead of original dimensions from metadata #304
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 17:38:14 +02:00
Michael Mayer
0bf17206d0
Entity: Return error in File.Save() if PhotoID is 0
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 17:25:28 +02:00
Theresa Gresch
1fdc2cf610
Backend: Add tests to internal/entity
2020-05-18 16:37:37 +02:00
Michael Mayer
a2d5da7afd
Entity: Fix query in File.AllFilesMissing()
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 16:36:24 +02:00
Michael Mayer
39878b3f83
Store created files in .photoprism sub directory
...
See #268 , #311 and #313
Hidden directory name poll: https://twitter.com/browseyourlife/status/1262320988081074178
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 15:45:55 +02:00
Theresa Gresch
d2975666e5
Backend: Make LocLabel unique in place fixtures
2020-05-18 10:05:33 +02:00
Michael Mayer
7121c09d66
Upgrade go-exif and go-jpeg-image-structure; see #302 , #304 , #305 and #295
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-18 08:44:40 +02:00
Michael Mayer
46f3f12da8
Upgrade go-exif, go-jpeg-image-structure and go-png-image-structure
...
See #302 , #304 , #305 and #295
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-17 11:05:57 +02:00
Michael Mayer
abfd2fa79d
Videos: Improve indexing and searching #312
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-16 17:07:44 +02:00
Michael Mayer
ba524d05d6
Metadata: Add DateTimeDigitized as fallback value for TakenAt #304
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-16 09:27:21 +02:00
Michael Mayer
7ee4d5eda5
Photo: Update year and month whenever takenAt may change
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-15 16:06:32 +02:00
Michael Mayer
9937304d0c
Metadata: Improve date and error handling; see #302 , #304 , #305 and #295
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-15 15:29:56 +02:00
Theresa Gresch
e4c521d9b3
Backend: Update FindPlaceByLabel function
2020-05-15 13:16:03 +02:00
Theresa Gresch
4aaa4e9fc2
Backend: Add tests to internal/entity
2020-05-15 13:15:10 +02:00
Theresa Gresch
238468c8f9
Backend: Add tests to internal/api
2020-05-15 13:14:50 +02:00
Michael Mayer
fbc2cfaf22
Backend: Add test for (resized) JPEG with GPS issues #295
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-15 12:45:42 +02:00
Michael Mayer
a16f00f359
Backend: Add support for DateTime in Exif metadata #304
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-15 11:15:15 +02:00
Michael Mayer
71fb67adb2
Videos: Support H.264/AVC .mov files
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-15 09:39:32 +02:00
Michael Mayer
eba0b1d896
Backend: Fix search query (photo:true filter)
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-14 22:49:01 +02:00
Michael Mayer
871c5aae9c
Backend: Don't abort import / index options API requests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-14 19:45:01 +02:00
Michael Mayer
2d1763edbe
Add videos to main navigation #17
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-14 19:03:12 +02:00
Theresa Gresch
afc1e10646
Backend: Add tests to internal/api
2020-05-14 18:10:01 +02:00
Theresa Gresch
e3993b3dbf
Backend: Add tests to internal/thumb
2020-05-14 17:28:55 +02:00
Theresa Gresch
b4c27ffb51
Backend: Add tests to internal/query
2020-05-14 15:43:39 +02:00
Theresa Gresch
07e4d22464
Backend: Add tests to internal/entity
2020-05-14 15:28:11 +02:00
Theresa Gresch
269915d77b
Backend: Remove unnecessary group in photos.go
2020-05-14 15:27:12 +02:00
Theresa Gresch
6c9b994664
Backend: Add tests to internal/query
2020-05-14 15:27:12 +02:00
Theresa Gresch
156c7b295e
Backend: Add tests to internal/entity
2020-05-14 15:27:12 +02:00
Michael Mayer
2c564ed145
Backend: Swap width and height to fix rotation when reading from JSON
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-14 14:28:57 +02:00
Theresa Gresch
160977fec4
Backend: Add tests to internal/query
2020-05-14 14:18:28 +02:00
Theresa Gresch
05078b0e4b
Backend: Add test fixtures
2020-05-14 14:17:12 +02:00
Michael Mayer
2045e3d770
Index and show video metadata #17
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-14 11:57:26 +02:00
Michael Mayer
cbeaab64e7
Backend: Remove story flag code
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 21:22:49 +02:00
Michael Mayer
55819dba9b
Backend: Read JSON from sidecar file #4 #243
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 21:06:34 +02:00
Michael Mayer
5f408f4f76
Backend: Read from JSON sidecar files (created by exiftool) #4 #243
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 20:53:15 +02:00
Theresa Gresch
47e4abe9a4
Backend: Fix test
2020-05-13 20:05:33 +02:00
Theresa Gresch
9fc0265d9a
Backend: Add tests to internal/query
2020-05-13 19:47:17 +02:00
Theresa Gresch
c0a2da8bab
Backend: Add tests fixtures
2020-05-13 19:46:49 +02:00
Michael Mayer
bd59dc2564
Backend: Don't import / index sidecar files without media file
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 17:42:25 +02:00
Theresa Gresch
a123726d28
Backend: Add tests to internal/query
2020-05-13 17:23:16 +02:00
Michael Mayer
bd3426ae51
Add video player #17
...
Still need to index metadata. Work in progress.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 15:36:49 +02:00
Theresa Gresch
e634fd97a7
Backend: Add tests to internal/query
2020-05-13 11:57:54 +02:00
Theresa Gresch
25da779c43
Backend: Add tests fixtures
2020-05-13 11:51:51 +02:00
Theresa Gresch
f949db0b38
Backend: Add tests to internal/query
2020-05-13 10:16:12 +02:00
Theresa Gresch
0284f7c101
Backend: Add test fixtures
2020-05-13 10:15:43 +02:00
Theresa Gresch
c0b6eaa9d5
Backend: Add tests to internal/entity
2020-05-12 13:52:09 +02:00
Theresa Gresch
687c85ed73
Backend: Fix bug in addLabels function
2020-05-12 11:52:46 +02:00
Theresa Gresch
96208d2c51
Backend: Add tests to internal/entity
2020-05-12 11:51:54 +02:00
Theresa Gresch
ac698b6eab
Backend: Add test fixtures
2020-05-12 11:51:28 +02:00
Michael Mayer
a61f2384b3
Initial video support #17
...
Still need to add a player and index metadata. Work in progress.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 18:29:17 +02:00
Theresa Gresch
510df88d7f
Backend: Add tests to internal/api
2020-05-11 17:11:04 +02:00
Theresa Gresch
e95260e3ab
Backend: Add tests to internal/entity
2020-05-11 17:01:19 +02:00
Theresa Gresch
95ab6dfb94
Backend: Add test fixtures
2020-05-11 17:01:05 +02:00
Theresa Gresch
7cce763864
Backend: Refactor test fixtures
2020-05-11 14:49:53 +02:00
Michael Mayer
cdadf664ff
Backend: Improve query parser #266
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 14:49:00 +02:00
Michael Mayer
3c47a85ea5
Backend: Move UpdatePhotoCounts() to entity package
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 11:01:28 +02:00
Michael Mayer
71c849c23b
Backend: Update photo counts after sync download
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 10:48:18 +02:00
Michael Mayer
984ffb511d
Tests: Improve TestImport_DestinationFilename
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 10:03:03 +02:00
Michael Mayer
4e3c076511
Backend: Re-import missing files #300
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 09:47:10 +02:00
Michael Mayer
4fbed12e94
Backend: Skip archived photos while indexing #300
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 08:57:58 +02:00
Michael Mayer
78d1230088
Purge: Increase batch size to 500 and reduce sleep to 50ms
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 07:51:31 +02:00
Michael Mayer
2d9be81658
Backend: Don't use a view for label photo counts
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 07:44:45 +02:00
Michael Mayer
923093042a
Purge: Improve photo counts and logging
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 07:23:23 +02:00
Michael Mayer
7f48ad5efa
Purge: Only process 250 rows per iteration
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-10 22:36:08 +02:00
Michael Mayer
b865203d89
Purge: Sleep 250ms to give database time for other tasks
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-10 22:21:05 +02:00
Michael Mayer
561323d544
Backend: Re-render thumbs after files changed #299
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-10 20:10:17 +02:00
Michael Mayer
8ccaaff4e5
Backend: Update label photo count and refactor entity fixtures
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-10 19:43:49 +02:00
Michael Mayer
406737e180
Fix places counter #292
...
See https://github.com/photoprism/photoprism/issues/292#issuecomment-626203720
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-10 16:12:15 +02:00
Michael Mayer
4beeebe5cc
Backend: Add Hidden column to PhotoAlbum
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-09 21:00:02 +02:00
Michael Mayer
253fbc632b
Backend: Add Hidden column to PhotoAlbum
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-09 20:59:45 +02:00
Michael Mayer
252e67ce03
Add photo_count column to labels table
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-09 11:00:22 +02:00
Michael Mayer
3aad02501f
Run unit tests in separate databases to avoid conflicts
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 19:34:29 +02:00
Michael Mayer
e703a54586
Backend: Close db connection after running tests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 18:35:19 +02:00
Michael Mayer
2f28c6840e
Backend: Try migrations a second time if they fail
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 18:18:19 +02:00
Michael Mayer
40b7a1285f
Backend: Reduce db migration error log level to debug
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 18:02:53 +02:00
Michael Mayer
c5dbe1bc14
Backend: Refactor database migration
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 17:45:32 +02:00
Michael Mayer
94dfb3cd19
Add WaitForMigration() function to avoid db test failures
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 16:36:09 +02:00
Michael Mayer
05d9187167
Update count in places are restoring photos #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 16:01:34 +02:00
Theresa Gresch
aaf1ff64ad
Backend: Add tests to internal/entity
2020-05-08 15:46:16 +02:00
Michael Mayer
842da9f09b
Backend: Query package refactoring
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 15:41:01 +02:00
Theresa Gresch
695294fc58
Backend: Improve photo_label_test
2020-05-08 14:31:58 +02:00
Theresa Gresch
0d0ba28331
Backend: Add tests to internal/entity
2020-05-08 14:18:11 +02:00
Michael Mayer
1894b4440f
Detect and report photos without primary file, e.g. after purging #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 12:01:28 +02:00
Michael Mayer
3288ede6e6
Simplify Purge() function #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 12:01:28 +02:00
Theresa Gresch
dc23632556
Backend: Add tests to internal/entity
2020-05-08 11:46:09 +02:00
Theresa Gresch
a136945470
Backend: Add tests to internal/entity
2020-05-08 10:21:03 +02:00
Michael Mayer
c0c0c96c30
Remove primary flag for missing files #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 09:36:34 +02:00
Michael Mayer
305ec3e822
Get convert option for index command from settings
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 08:09:43 +02:00
Michael Mayer
a5a2da36f1
Automatically purge when running index command #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 07:56:14 +02:00
Michael Mayer
830ce5fc21
Improve purge performance using ignore option #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 07:43:14 +02:00
Michael Mayer
979a5f5c76
Code clean-up and refactoring of purge command #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 21:55:34 +02:00
Michael Mayer
252672b291
Run purge after indexing files in Web UI #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 21:46:00 +02:00
Michael Mayer
ac33ee87a1
Purge command: Fix database query and add --dry flag #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 20:33:11 +02:00
Michael Mayer
f0187df4a1
Purge command to remove missing files from the index #234
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 19:42:04 +02:00
Theresa Gresch
5c0d12c4d9
Backend: Add tests to internal/entity
2020-05-07 18:08:12 +02:00
Theresa Gresch
4c6aec9912
Backend: Add tests to internal/entity
2020-05-07 17:29:35 +02:00
Theresa Gresch
a0465e0e10
Backend: Add tests to internal/entity
2020-05-07 16:45:33 +02:00
Michael Mayer
c318d22ca7
UX: Rename "path" to "folder"
...
See https://twitter.com/browseyourlife/status/1258330913991208960
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 12:49:06 +02:00
Michael Mayer
38fe8277fa
UX: Rename "directory" to "folder"
...
See https://twitter.com/browseyourlife/status/1258330913991208960
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 12:33:09 +02:00
Michael Mayer
c505503485
NSFW: Don't set flag if private filter is disabled #296
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 10:23:09 +02:00
Michael Mayer
a6ab94fb2e
Indexer: Observe Convert option flag
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-07 08:29:41 +02:00
Theresa Gresch
1ccb546893
Backend: Add tests to internal/form
2020-05-06 17:05:06 +02:00
Michael Mayer
3ccad67622
Index and import subdirectories #258
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-06 15:53:47 +02:00
Theresa Gresch
ff505579ec
Backend: Add tests to internal/api
2020-05-06 12:56:13 +02:00
Michael Mayer
1479a3ec5b
Refactor indexer so that thumbs and jpegs can be created on demand #258
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-06 10:35:41 +02:00
Michael Mayer
6c6ea0ac3d
Support GPSVersionID 2.0.0.0 #295
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-06 08:03:57 +02:00
Michael Mayer
bc69f22da2
Fix edit dialog after renaming config value
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 19:44:02 +02:00
Michael Mayer
9b643c830f
Add template settings; remove twitter config value
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 18:26:44 +02:00
Michael Mayer
a886ad7942
Improve naming of thumbnail config values #294
...
Reverted PHOTOPRISM_RESAMPLE_FILTER back to PHOTOPRISM_THUMB_FILTER so that nothing breaks.
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 17:17:19 +02:00
Michael Mayer
14fc9cd374
Revert and improve naming of thumbnail config values #294
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 17:04:13 +02:00
Michael Mayer
1c53a565a7
Configure on-demand rendering of regular thumbnail sizes #294
...
Can be enabled by setting PHOTOPRISM_RESAMPLE_UNCACHED to true
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-05 15:42:54 +02:00
Theresa Gresch
ee6dd2be72
Backend: Add tests to internal/api
2020-05-05 09:28:52 +02:00
Theresa Gresch
b16216819b
Backend: Add test fixtures
2020-05-05 09:28:30 +02:00
Michael Mayer
f9b2ff326b
Refactor feature flags and settings
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-04 18:28:23 +02:00
Theresa Gresch
5388b785bf
Backend: Add tests to internal/api
2020-05-04 17:54:42 +02:00
Theresa Gresch
b53eb53b08
Backend: Use correct errors in internal/api/link.go
2020-05-04 17:14:43 +02:00
Theresa Gresch
90c910654b
Backend: Add tests to internal/api
2020-05-04 17:14:04 +02:00
Theresa Gresch
e4162d3a29
Backend: Use uuid instead of hash in LinkFile function
2020-05-04 17:12:37 +02:00
Theresa Gresch
eb0467cde8
Backend: Add errors
2020-05-04 17:11:53 +02:00
Theresa Gresch
6e2062ea4b
Backend: Add tests to api/labels
2020-05-04 16:02:49 +02:00
Theresa Gresch
73e0d294ff
Backend: Add tests to internal/api
2020-05-04 14:40:58 +02:00
Michael Mayer
0ff34b6f43
Backend: Change error message prefix in thumb package
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-03 18:05:05 +02:00
Michael Mayer
2032b40f2b
Backend: Code clean-up
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-03 18:00:50 +02:00
Theresa Gresch
c474ec5dd2
Backend: Add tests to api/batch
2020-05-03 17:26:26 +02:00
Theresa Gresch
d81fe794eb
Backend: Add label fixtures
2020-05-03 17:26:26 +02:00
Michael Mayer
05a05773d9
Backend: Fix import command and improve logging #233 #287
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-03 16:16:00 +02:00
Theresa Gresch
2f5ae08768
Backend: Add tests api/album
2020-05-03 15:55:38 +02:00
Michael Mayer
fe28c7d284
Backend: Add support for .ppignore files #233 #287
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-03 14:40:59 +02:00
Theresa Gresch
fd50478218
Backend: Add tests to internal/api
2020-05-01 19:58:05 +02:00
Michael Mayer
3e6df5fd5d
Backend: Replace filepath.Walk with godirwalk.Walk #267
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 17:31:49 +02:00
Theresa Gresch
9cbad48972
Backend: Add tests to api/account
2020-05-01 16:38:00 +02:00
Michael Mayer
44abbfc43a
Backend: Use fastwalk.Walk instead of filepath.Walk in tests #267
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 15:35:47 +02:00
Theresa Gresch
f5a1d76748
Backend: Remove old fixtures from config/db.go
2020-05-01 14:18:51 +02:00
Theresa Gresch
2a21bc5158
Backend: Use new fixtures in query tests
2020-05-01 14:18:51 +02:00
Theresa Gresch
9dbd743452
Backend: Use new fixtures in api tests
2020-05-01 14:18:51 +02:00
Theresa Gresch
6edb578b34
Backend: Add test fixtures
2020-05-01 14:18:51 +02:00
Theresa Gresch
9e343cef04
Backend: Add fixtures for files
2020-05-01 14:18:51 +02:00
Theresa Gresch
409cea4659
Backend: Add fixtures for photokeywords
2020-05-01 14:18:51 +02:00
Theresa Gresch
5d2c4fa5d6
Backend: Add fixtures for photolabels
2020-05-01 14:18:51 +02:00
Theresa Gresch
c0a37ca36a
Backend: Add fixtures photoalbum
2020-05-01 14:18:51 +02:00
Theresa Gresch
0008f68b71
Backend: Add fixtures for links
2020-05-01 14:18:51 +02:00
Theresa Gresch
5f33848b14
Backend: Add fixtures for keywords
2020-05-01 14:18:51 +02:00
Theresa Gresch
3127eef80f
Backend: Add fixtures for categories
2020-05-01 14:18:51 +02:00
Theresa Gresch
5c86f02106
Backend: Add test fixtures for albums
2020-05-01 14:18:51 +02:00
Theresa Gresch
434948d57a
Backend: Add test fixtures for photos
2020-05-01 14:18:51 +02:00
Theresa Gresch
9234c5797a
Backend: Add test fixtures for labels
2020-05-01 14:18:50 +02:00
Theresa Gresch
6188c7f736
Backend: Add test fixtures for countries
2020-05-01 14:18:50 +02:00
Theresa Gresch
785d433ba9
Backend: Add test fixtures for cameras
2020-05-01 14:18:50 +02:00
Michael Mayer
59f1c0d786
Backend: Code clean-up
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 13:54:47 +02:00
Michael Mayer
e3356aa79b
Backend: Don't regenerate existing unique IDs
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 12:57:26 +02:00
Michael Mayer
2836d25e1b
Backend: Add tests for thumb package
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 11:53:41 +02:00
Michael Mayer
d4fefe411b
Backend: Add tests for service package
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-01 09:57:38 +02:00
Michael Mayer
b4a04a478f
Backend: Set test database using PHOTOPRISM_TEST_DSN
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 22:39:38 +02:00
Michael Mayer
f8de34dac7
Backend: Add account fixtures
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 22:25:53 +02:00
Michael Mayer
c30476f120
Backend: Refactor test db initialization
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 21:21:09 +02:00
Michael Mayer
260cca91fe
Backend: Refactor entity package
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 20:07:03 +02:00
Michael Mayer
c06d0c0b9d
Backend: Refactor test logs
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:44:04 +02:00
Michael Mayer
363b9797be
Backend: Refactor classify tests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:11:27 +02:00
Michael Mayer
0c0bea5ed7
Backend: Add nsfw tests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:09:05 +02:00
Michael Mayer
953ca55483
Backend: Refactor config tests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:09:05 +02:00
Michael Mayer
eaae910014
Backend: Refactor entity tests
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 14:32:48 +02:00
Michael Mayer
faa2074e69
Backend: Refactor exif parsing
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-29 16:42:06 +02:00
Michael Mayer
1502838ddb
Fix NSFW test
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-29 16:13:18 +02:00
Michael Mayer
1e05670501
Increase NSFW detector threshold
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-29 16:12:09 +02:00
Theresa Gresch
426e5a9f9c
Backend: Add tests to internal/photoprism
2020-04-29 14:09:44 +02:00
Theresa Gresch
190333f4f5
Backend: Add tests to internal/remote
2020-04-29 13:21:15 +02:00
Theresa Gresch
bacb0f67c3
Backend: Add tests to internal/maps
2020-04-29 13:21:15 +02:00
Michael Mayer
194e208e31
Backend: Update client info after changing private flag
...
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-29 12:42:59 +02:00