726 Commits

Author SHA1 Message Date
pushrbx
3d48517fd4 fixed typing issue in cors middleware 2023-05-21 20:05:30 +01:00
pushrbx
e6a969402d improved CORS support 2023-05-21 16:10:21 +01:00
pushrbx
dc9b234f19 improved full-text search
- added support for typesense 0.24.1
- fixed issue where empty `filter_by` field being sent to typesense which resulted in an error
- added infix indexing for title fields in case of Anime/Manga
- added more env vars for customising typesense search
- upgraded typesense driver
2023-05-21 11:18:35 +01:00
pushrbx
6eff2af172 various fixes and refactorings
- genre filtering
- added unapproved filtering
- fixed sfw filtering
- fixed kids filtering
- fixed deprecation warnings as of php 8.1
  - DateTime ctor can't take `null` anymore as first param
  - preg_replace doesn't accept `null` values as `$subject`
- fixed failed items indexer (the --failed option of indexers) -- it didn't load the correct file making it impossible to retry the indexing
- changed the document schema for search indexed anime/manga
  - added `approved` field to them
  - staging will require a reimport into TypeSense
- the central filtering system will now process `sfw` and `unapproved` filters, so they will be applied implicitly through the `filter` model scope method.
2023-05-21 11:18:35 +01:00
pushrbx
61af2e0420 fixed the load of failed entries in indexers 2023-05-21 11:18:35 +01:00
pushrbx
6732de1188 refactoring and code cleanup 2023-05-21 11:18:35 +01:00
Irfan
a637e697e1 Update SerializerFactory.php 2023-05-21 11:18:35 +01:00
Irfan
ec5f091687 move open api docs params to respective DTO files 2023-05-21 11:18:35 +01:00
Irfan
55229901ab fixes order_by not working when a query is passed via typesense 2023-05-21 11:18:35 +01:00
Irfan
2b67dc0d26 update docs 2023-05-21 11:18:35 +01:00
Irfan
ab1e496c0f fix docs 2023-05-21 11:18:35 +01:00
Irfan
12322b6e9a update random anime/manga, adds unapproved, minor refactor 2023-05-21 11:18:35 +01:00
Irfan
615a1613c6 update exceptItemsWithAdultRating 2023-05-21 11:18:34 +01:00
Irfan
1c74e29c04 getRouteName: fixes crash when there's no route 2023-05-21 11:18:34 +01:00
Irfan
d5f3b0904d adds unapproved, kids, sfw to remaining seasons, schedules endpoints 2023-05-21 11:18:34 +01:00
Irfan
6d5930fbc0 adds unapproved filter #369 2023-05-21 11:18:34 +01:00
Irfan
1b69c3fe96 fixes sfw, makes kids reusable ands adds it to seasonal 2023-05-21 11:18:34 +01:00
Irfan
3be6ed7bd7 fixes sfw parameter for getCurrentlyAiring 2023-05-21 11:18:34 +01:00
Irfan
d8ec3e2990 deletes empty userlistquerybuilder file 2023-05-21 11:18:34 +01:00
Irfan
88c3201874 update logging config [adds .env values] 2023-05-21 11:18:34 +01:00
Irfan
c3f1556d25 Update DefaultMangaRepository.php 2023-05-21 11:18:34 +01:00
Irfan
de6bd8e440 updates sfw policy for anime/manga #218 2023-05-21 11:18:34 +01:00
Irfan
be53d2ea7f fixes default order_by (i.e mal_id) of searchable resources 2023-05-21 11:18:34 +01:00
Irfan
fe2b5869db fixes random person API call 2023-05-21 11:18:34 +01:00
Irfan
9df3ae0d05 user search: fixes passing gender resulting in error 2023-05-21 11:18:34 +01:00
Irfan
3dc25a35c0 add Producers to scout flush 2023-05-21 11:18:34 +01:00
pushrbx
d432db77a9 added missing parameters for search endpoint 2023-05-21 11:18:34 +01:00
pushrbx
b9a6aa2731 fixed a bug with handling empty q query string parameter in case of searches 2023-05-21 11:18:34 +01:00
pushrbx
cfdc99fe2d improved search results in typesense for anime,manga 2023-05-21 11:18:34 +01:00
pushrbx
1cd58fb964 added type checks when retrieving the year attribute of anime items 2023-05-21 11:18:34 +01:00
pushrbx
431a2fb8f1 fixed scheduler issues when running anime/manga cleanups 2023-05-21 11:18:34 +01:00
pushrbx
9bc2e14d44 fixed an issue with the PSR-7 context
- the search filters were not emptied between requests resulting in wrong search results when searching anime/manga
2023-05-21 11:18:34 +01:00
pushrbx
5e55dd7887 added more tests and improved api docs 2023-05-21 11:18:03 +01:00
pushrbx
9932f69cd2 fixed an issue with broadcast value in anime model 2023-05-21 11:18:03 +01:00
pushrbx
331d5e821b added more unit tests and configured test coverage discovery 2023-05-21 11:18:03 +01:00
pushrbx
b35f37a0a9 changed inserting method into the database
- this should be changed back later on once we finalised the fillable/guard fields on model classes.
2023-05-21 11:18:02 +01:00
pushrbx
d171f29bc9 fixed bugs introduced by the new system 2023-05-21 11:18:02 +01:00
pushrbx
fbc3b8277d wip - more fixes
- added user animelist/mangalist endpoints back
- fixed issues with the container image
- improved club model factory
- fixed ordering while searching when search engine is disabled (mongodb based search)
2023-05-21 11:18:02 +01:00
pushrbx
7ac4f8693e fixed CachedData and scraper service classes 2023-05-21 11:18:02 +01:00
pushrbx
baa5e9c557 refactored tests and fixed test runner issues
- additionally fixed some bugs with schedule endpoint
2023-05-21 11:18:02 +01:00
pushrbx
a530e9f5d6 multiple changes
- wip -> http tests should use model factories
- test runner bootstrap: jikan models are cached in a temporary file
- fixed various bugs
- improved test execution time with typesense
- added new dev dependency: ClassFinder
- updated composer scripts to include coverage generation
- added coverage reports in phpunit
- improved roadrunner integration
- updated docker image
  - added xdebug in disabled state
2023-05-21 11:18:02 +01:00
pushrbx
0211fc4128 multiple fixes
- updated api docs
- fixed top reviews endpoint
- fixed reviews parsing
- added "contextual" boolean query string parameters, so params without value can be interpreted as "boolean". E.g. ?sfw or ?kid in the url would add "true" value to their corresponding field in the DTO
- fixed typesense issues
2023-05-21 11:18:02 +01:00
pushrbx
c054c20fe7 updated github error reporting with the new issue form 2023-05-21 11:17:58 +01:00
pushrbx
ff5068bf27 fixed road runner integration 2023-05-21 11:14:35 +01:00
pushrbx
c78d8cd333 wip - cached scraper service unit tests 2023-05-21 11:14:35 +01:00
pushrbx
25378c263b fixed people search 2023-05-21 11:14:35 +01:00
pushrbx
118fc4f84b fixed minor issues 2023-05-21 11:14:35 +01:00
pushrbx
9b5b5aad1e fixed more problems 2023-05-21 11:14:35 +01:00
pushrbx
5e922f7cd9 fixed tests part1 2023-05-21 11:14:35 +01:00
pushrbx
1e302fb62c wip - refactor finished 2023-05-21 11:14:35 +01:00