1
Fork 0
Commit Graph

678 Commits

Author SHA1 Message Date
stz184 26f2b753b7 Prefixed the env variables to avoid naming collisions 2021-01-16 23:27:23 +02:00
Viktor Strate Kløvedal a10f8ad1ef
Merge pull request #164 from stz184/implement-db-connection-retry
Added db connection retry logic
2021-01-16 19:04:12 +01:00
Vladimir Ivanov 85ce3a1018
Update api/database/database.go
Co-authored-by: Viktor Strate Kløvedal <viktorstrate@gmail.com>
2021-01-16 19:35:02 +02:00
Viktor Strate Kløvedal 5b8660c5a9
Remove hyphen from default SQL password
Which, in some cases, could cause problems. This solves #96
2021-01-12 21:56:43 +01:00
stz184 5b7637cb3c Added db connection retry logic 2021-01-12 20:14:28 +02:00
viktorstrate 41b122c461
Start on sqlite support
- TODO: Sqlite doesn't support MD5, all calls to this function should be done
  beforehand.
2021-01-10 18:59:01 +01:00
viktorstrate b3596751cc
Cleanup Dockerfile after removing old database migrations 2021-01-10 18:34:37 +01:00
viktorstrate 820ae78563
Delete old migrations 2021-01-10 18:29:33 +01:00
Viktor Strate Kløvedal 719dd633ce
Update Discord link with a new valid url 2021-01-06 23:35:58 +01:00
Viktor Strate Kløvedal 8700f98fd2
Merge pull request #157 from photoview/v2/user-multi-paths
Multiple and shared user paths
2021-01-06 17:28:49 +01:00
viktorstrate a1a14286d6
Properly clean up when a user <-> album relation is deleted 2021-01-06 17:28:06 +01:00
Viktor Strate Kløvedal 2016489a5f
Add link to Discord server in Readme 2021-01-03 20:46:46 +01:00
viktorstrate 59048c8416
Fix various small errors regarding database change
- Fix media sidebar
- Fix Albums page
- Fix media and album shares
2021-01-02 23:07:44 +01:00
viktorstrate d78cef300a
Finish add/remove root paths 2020-12-31 00:37:11 +01:00
Viktor Strate Kløvedal 82f4982e0e
Merge pull request #162 from Kjeldgaard/master
Add navigation control to map
2020-12-30 23:10:01 +01:00
Kjeldgaard 6c596c8462 Add navigation control to map
In places tab, navigation controls are added to the mapbox map.
2020-12-30 22:10:26 +01:00
viktorstrate c198e68daf
Hook up UI to add and remove multiple root paths for each user 2020-12-30 18:36:26 +01:00
viktorstrate 6e2773cc65
Add UI for multi root users 2020-12-27 22:33:11 +01:00
viktorstrate 96546f6556
Add resolvers for user albums and root_albums 2020-12-27 20:07:54 +01:00
viktorstrate aeb05bca49
get initial scanner up and running 2020-12-22 01:14:43 +01:00
viktorstrate 732ccd05ab
restructure user <-> albums relations in database 2020-12-20 17:10:00 +01:00
Viktor Strate Kløvedal ae8e764539
Merge pull request #155 from stz184/search-orm-migration
Migrated the search to gorm
2020-12-19 09:46:24 +01:00
viktorstrate d815472458
Simplify search query a little 2020-12-19 09:45:43 +01:00
stz184 e5cb91532a implicitly join on the Album table 2020-12-19 01:07:43 +02:00
stz184 3ce4ab02cc Migrated the search to gorm 2020-12-19 00:50:29 +02:00
viktorstrate b38d7ab29a
Fix periodic scanner
and small bug related to user resolver
2020-12-17 23:21:51 +01:00
viktorstrate 907894dda3
Merge branch 'master' into v2.0.0 2020-12-17 23:18:00 +01:00
viktorstrate 4cd822f068
Update gomod to reflect repo transfer 2020-12-17 22:51:43 +01:00
viktorstrate 2903670255
Migrate album and media sharing 2020-12-17 22:29:24 +01:00
viktorstrate 092cbdb872
Migrate FormatSQL 2020-12-17 21:32:13 +01:00
Viktor Strate Kløvedal c1f7146f85
Merge pull request #153 from stz184/fixed-issue-that-caused-scan-errors
Fixed issue that caused runtime error: invalid memory address or nil …
2020-12-15 13:09:51 +01:00
stz184 441134fcc8 Revert package-lock.json 2020-12-15 13:15:32 +02:00
stz184 7546987f85 Fixed issue that caused runtime error: invalid memory address or nil pointer dereference
because the sidecar file was trying to process before the highResMediaURL and thumbURL are actually created
2020-12-15 02:25:30 +02:00
viktorstrate 48c3ed93f2
Fix api tests 2020-12-14 10:41:00 +01:00
viktorstrate 4f370deab9
Merge remote-tracking branch 'origin/master' into v2.0.0 2020-12-10 12:30:10 +01:00
Viktor Strate Kløvedal f2212988b7
Fix github actions docker builds (#152)
- Use QEMU for multiplatforms (needed after updating buildx-action)
- Cleanup Dockerfile
2020-12-09 19:24:39 +01:00
viktorstrate 4980a77efb
Properly merge SiteInfo in Apollo cache
This solves #146
2020-12-09 16:58:40 +01:00
Viktor Strate Kløvedal d4900b76d0
Replace buildx action (#151)
Replace `crazy-max/ghaction-docker-buildx@v3` with `docker/setup-buildx-action@v1`, since the old version has been archived and moved to the new one
2020-12-09 11:52:36 +01:00
Vladimir Ivanov 6adc79001c
Photo duplication detection (#148)
* Fixes viktorstrate/photoview#8
- Added new property CounterpartPath to Media struct to hold the path to the counterpart JPEG file (if any)
- Added new MediaType method isBasicSupportedisBasicTypeSupported()
- Added new function isFileExists() to minimize the code duplication

* Fixes viktorstrate/photoview#8
- Chaned CounterpartPath definition from string to *string
- Added new helper method FileExtensions()
- Simplified the logic inside scanForRawCounterpartFile() and scanForCompressedCounterpartFile() functions, reducing the code duplication

* Fixes viktorstrate/photoview#8
- Added debug to fileExists() function

* Cleanup fileExists logging

Co-authored-by: viktorstrate <viktorstrate@gmail.com>
2020-12-09 11:40:37 +01:00
viktorstrate 1fbdaf101f
Update dependencies 2020-12-08 16:35:39 +01:00
viktorstrate f0d580116b
Improve album and media resolvers 2020-12-08 16:24:08 +01:00
viktorstrate b13873f48d
Fix error that caused infinite CPU loop 2020-12-06 16:54:19 +01:00
viktorstrate 4b778fbdde
Fix tests, fix photo route 2020-12-06 15:24:15 +01:00
viktorstrate 98f13d76e6
Replace database, work on scanning 2020-11-30 21:29:49 +01:00
viktorstrate 364521958b
Fix site_info, replace ID type in graphql queries 2020-11-30 16:42:13 +01:00
viktorstrate 31da5e1c07
Replace database, initial setup now works 2020-11-28 21:49:33 +01:00
viktorstrate e42ac2436b
Replace database, resolve all build-time errors 2020-11-28 21:29:31 +01:00
viktorstrate d3ebecc3b5
Replace database, mostly user related 2020-11-28 17:31:19 +01:00
viktorstrate 22e328b94b
Replace database, mostly share token 2020-11-27 16:02:10 +01:00
viktorstrate 2b966aa672
Replace database, mostly media and video 2020-11-26 20:48:04 +01:00