Commit Graph

14 Commits

Author SHA1 Message Date
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
viktorstrate
c5a307283d Refactoring of API
- Add request context to all database calls
- Update deprecated gqlgen functions
- Update go.mod dependencies
2021-11-11 18:57:02 +01:00
viktorstrate
adfcf33e79 Write tests for searching 2021-09-02 18:09:37 +02:00
viktorstrate
ba16fc1caa Fix postgres errors + fix search results without thumbnails
This closes #241
2021-03-12 14:26:51 +01:00
viktorstrate
a4f5d26197 Fix search 2021-01-26 14:34:28 +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
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
e42ac2436b Replace database, resolve all build-time errors 2020-11-28 21:29:31 +01:00
viktorstrate
df80802cab Huge refactor: rename photo to media
To prepare for video support

Migrate database rename tables and columns:
- photo to media
- photo_url to media_url
- photo_exif to media_exif

- Update api accordingly
2020-07-10 14:26:19 +02:00
viktorstrate
a5fc15af45 Fix security bug regarding search
...that let users search for albums and photos made by other users
2020-03-05 20:46:50 +01:00
viktorstrate
c30f5a833a Add search resolver to api 2020-03-05 11:53:42 +01:00