Commit Graph

4 Commits

Author SHA1 Message Date
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
Kostiantyn
d1193c5ca4 Refactoring part 1: Fix some annoying linter warnings in API code (#1064)
* names, constants of reusable strings, removed unneeded `if`, replaced deprecated imports

* more deprecated imports replaced

* What is this?))

* Fix a path and quote a var in Dockerfile

* Addressing review comments

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-09-30 14:45:02 +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
060e2008b7 Add tests for albums, users, site_info models 2021-04-23 23:07:18 +02:00