Commit graph

540 commits

Author SHA1 Message Date
Deka Jello
d0f6a36f5e Make verify_unpage for test_pool_search ignore order unless specified 2024-04-19 07:43:50 -05:00
Deka Jello
e7031b3b5d Fix tests/func/test_get_pools_around to use new format 2024-04-18 11:36:47 -05:00
Deka Jello
076a3a0b44 Don't copy codebase twice in dockerfile 2024-04-18 11:35:04 -05:00
Deka Jello
5607664397 Update dockerfile to cache package installs before copying in code 2024-04-18 11:29:41 -05:00
Deka Jello
cb0377a8eb Spacing 2024-04-18 10:48:09 -05:00
Deka Jello
2ea36ceb7f Restore more dev env convenience changes 2024-04-18 10:47:51 -05:00
Deka Jello
75d9fb2dc7 Restore dev env convenience changes 2024-04-18 10:46:58 -05:00
Deka Jello
fdb36ed097 Remove unneeded new SQL function lines 2024-04-18 10:32:01 -05:00
Deka Jello
75840f2ba5 Remove unneeded files 2024-04-18 10:31:17 -05:00
Deka Jello
dde52f1009 Fix pool post serializer 2024-04-18 10:26:59 -05:00
Deka Jello
85f012b02f Rewrite get_pool_posts_around to not use raw sql 2024-04-18 10:24:40 -05:00
Deka Jello
1c189fc9c2 fix defaulted abstraction 2024-04-15 10:16:45 -05:00
Rebecca Nelson
fa14bea4ac rewire post search config to actual function 2024-04-14 19:36:55 -05:00
Rebecca Nelson
eabf637736 Add todo msg 2024-04-14 19:12:49 -05:00
Rebecca Nelson
1a54bb31d5 Merge branch 'update/Ruin0x11/improve-pools' of github.com:dekarrin/szurubooru into update/Ruin0x11/improve-pools 2024-04-14 16:25:07 -05:00
Deka Jello
fa95a988eb remove initial pgfunction migration bc endgoal is to not have it 2024-04-14 10:16:57 -05:00
Deka Jello
e39781748b temp rearrange server Dockerfile so cache is used for fast dev cycle 2024-04-14 10:14:37 -05:00
Rebecca Nelson
719f6dc741 Impl post_search_config.py's create_around_query() 2024-04-13 23:50:56 -05:00
Rebecca Nelson
6a0d5741c3 slap alembic-utils into install process quick and let ci do the work for now 2024-04-13 23:07:57 -05:00
Rebecca Nelson
2ce243d7e7 Merge branch 'old-pool-divergence' into update/Ruin0x11/improve-pools 2024-04-13 22:55:03 -05:00
neobooru
da425afc49 Pin pillow-avif-plugin to compatible version range 2024-02-21 17:47:27 +01:00
Zak B. Elep
c292b96f06 server/net: use yt-dlp instead of youtube-dl
youtube-dl no longer even gets URLs properly, so switch to yt-dlp as a
drop-in replacement for it.
2023-08-17 20:41:50 +08:00
neobooru
7a82e9d581 tests/server: post category filter 2023-07-05 12:22:11 +00:00
neobooru
4806bbe0ed server: post category filter 2023-07-05 12:22:11 +00:00
Shyam Sunder
648121d7c3 client+server: add quicktime video support
Merge branch 'skybldev-upstream'
2023-04-17 12:21:26 -04:00
Shyam Sunder
42524503b9 client/tests: add unit tests for quicktime videos 2023-04-17 12:01:20 -04:00
skybldev
8a03015349 client+server: added quicktime upload support 2023-04-17 11:36:44 -04:00
Shyam Sunder
244a0f0b6c server/test: skip network tests by default 2023-04-17 10:31:35 -04:00
Neo
e3062b1c77
client: add bulk delete feature (#459)
This introduces a new privilege 'posts:bulk-edit:delete' which by default is given to power users.
2023-01-19 18:44:31 +01:00
w1kl4s
8088ff3bbe support ftypiso6 file signature 2022-09-13 19:18:22 +02:00
Shyam Sunder
e746f09911 server: fix build error due to broken pip requirements
Pinned pyheif to v0.6.1
2022-03-31 18:43:37 -04:00
Shyam Sunder
6088e89ea1 server/szuru-admin: Add thumbnail regeneration script
Closes #467
2022-03-30 23:04:16 -04:00
noirscape
82541536af Make waitress thread count configurable.
This should fix most scaling problems without needing to start
more server instances. By default, waitress maintains at most
4 threads. This works fine if the database is small (sub 100k posts)
but causes a large Task queue depth to occur if the database is larger.

Letting users increase the amount of threads means that one server instance
is able to handle more requests without locking up the rest of the site.

This adds a new environment variable to .env, THREADS, which can be used to
configure the amount of threads to start and is by default set to 4
(the default amount used by waitress).
2022-02-14 17:33:23 -05:00
Shyam Sunder
6de0a74257 server/config: fix deprecated database string format 2022-02-08 09:58:56 -05:00
Shyam Sunder
a22485afda server/func/images: upgrade to heif-image-plugin 2022-02-08 09:58:33 -05:00
Shyam Sunder
106dcc4135 server/func/images: Do not pass file content to ffmpeg stdin 2022-01-16 11:07:46 -05:00
Shyam Sunder
9b3123a815 server: fix python docstring formatting 2021-11-29 18:39:34 -05:00
Shyam Sunder
d083084407 server/tests: use transactional db for faster unit tests
* `test_modify_saves_non_empty_diffs` needs non-transactional
  db, so moved to seperate file
* Replaced incompatable usage of `db.session.rollback()`
  with parametrerized function calls
* xfail conditionals for search removed, as we can no longer
  get current driver with binds
* Also remove usage of deprecated `pytest.yield_fixture`
2021-09-23 12:24:56 -04:00
Shyam Sunder
ad9d3599bc server/net: return more useful error messages 2021-09-22 22:08:07 -04:00
Shyam Sunder
c3b81371d8 client+server/docker: fix ARM build platform issue 2021-09-19 12:03:32 -04:00
Shyam Sunder
4f57f49ebe client+server: migrate to GitHub actions 2021-09-19 11:01:47 -04:00
Shyam Sunder
e4a253fd25 client+server: fixed style errors 2021-09-13 13:25:37 -04:00
neobooru
fa4997fbb9 server: fix issue where no video files could be uploaded 2021-06-07 00:37:30 +02:00
neobooru
f497dca92f server: update docker image base to alpine:3.13
We do this so that we don't have to use 'edge' packages, which aren't (always) ABI compatible
2021-06-01 18:20:51 +02:00
neobooru
5ea9e27e48 Merge branch 'avif'
Merges PR #399
2021-06-01 16:57:29 +02:00
Ruin0x11
a2b68925ac Support BMP format uploads 2021-05-09 01:29:36 -07:00
Ruin0x11
28eaf53dfd Add first/last pool post to pool navigator 2021-05-09 01:00:27 -07:00
Ruin0x11
e1c97049da Add pool posts around test 2021-05-09 01:00:27 -07:00
Ruin0x11
7750e43714 Initial implementation of pool navigation inside posts 2021-05-09 01:00:27 -07:00
Ruin0x11
8e8b15a1d8 Route for getting previous/next posts in pool 2021-05-09 01:00:27 -07:00