Commit Graph

28 Commits

Author SHA1 Message Date
viktorstrate
e66a9199a1 Add timeline resolver tests 2021-09-27 20:23:10 +02:00
viktorstrate
e142784267 Improve performance when testing if user owns an album
This is done by querying parent albums instead of sub-albums,
which changes the runtime from exponential to linear time.

This fixes #388
2021-08-30 21:36:45 +02:00
viktorstrate
0a0fdeedc5 Improve user tests API 2021-04-26 21:22:28 +02:00
viktorstrate
542e5c8532 Improve scanner_album NewRootPath tests 2021-04-26 20:37:29 +02:00
viktorstrate
1029b61a4c Fix faces not getting scanned
- This fixes #344
- Add integration tests for face recognition
- Properly check that the user own the queried album
2021-04-26 12:21:15 +02:00
viktorstrate
060e2008b7 Add tests for albums, users, site_info models 2021-04-23 23:07:18 +02:00
viktorstrate
6c63d3a6dd Integrate italian translation
- Add before save checks on user language, to make sure the value is
  valid
2021-04-17 12:23:02 +02:00
viktorstrate
b6a85d0966 Finish localization
- Add user preferences section to settings
- Make settings page available for all users
- Move log out button to settings page
- Make it possible for each user to choose their desired language
2021-04-11 22:31:42 +02:00
Viktor Strate Kløvedal
ce3090394b Add dataloaders to combine database queries (#190)
See also https://gqlgen.com/reference/dataloaders/
2021-02-07 22:17:33 +01:00
viktorstrate
2c230d917a Further gorm attributes cleanup 2021-01-19 18:35:19 +01:00
viktorstrate
fc515aa375 Cleanup gorm model attributes + add indexes 2021-01-19 17:31:37 +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
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
27b2f95a7b Start on migrating database integration to gorm 2020-11-23 19:39:44 +01:00
viktorstrate
cacfb5edde Fix share pages 2020-07-10 18:35:37 +02:00
viktorstrate
2af47b2381 Properly close sql rows 2020-02-28 20:57:46 +01:00
viktorstrate
a87e9fc56d Add user management to api 2020-02-16 12:22:00 +01:00
viktorstrate
f1ce85dcb5 Set max sql connections + improve user register 2020-02-14 14:29:41 +01:00
viktorstrate
a3a4dda286 Work on share tokens 2020-02-09 21:25:33 +01:00
viktorstrate
d81e945b68 Start on image proccessing 2020-02-02 00:29:42 +01:00
viktorstrate
e2049bd6e5 Add sql tables for photos and albums 2020-02-01 14:52:27 +01:00
viktorstrate
9892366143 Refactor gqlgen 2020-02-01 00:08:23 +01:00
viktorstrate
51fbe8a2d5 Implement authorization 2020-01-31 23:30:34 +01:00
viktorstrate
9d734af5e2 Implement access token 2020-01-31 18:51:24 +01:00
viktorstrate
0518c0e360 Add user signup 2020-01-31 17:36:48 +01:00