9 Commits

Author SHA1 Message Date
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
5e922f7cd9 fixed tests part1 2023-05-21 11:14:35 +01:00
pushrbx
a145f18bbd wip - major refactor
- AppServiceProvider is needs more work to wire in new services
- todo: more dtos
- todo: add unit tests
- todo: add more integration tests
2023-05-21 11:14:34 +01:00
pushrbx
4aa3c4c617 fixed #332
- added logic to forward `order_by` parameter to the search engine
- modified mongodb query when no search engine is present to use "textMatchScore" name instead of "score" for text match scores -- the text score projection was shadowing the "score" attribute
2023-05-21 11:14:34 +01:00
pushrbx
9d9e24a2b0 fixed multiple issues with non anime/manga enpoints
- order_by field was applied together with "mal_id", making the endpoints act oddly
- order_by parameter was ignored for non anime/manga endpoints
- made Producers data product searchable -> it's going to be indexed in the search index.
- fixed some more things to make the code base compatible with php 8.1
2022-10-04 22:14:03 +01:00
pushrbx
3c13101924 fixed pagination and type filters for anime/manga 2022-07-12 10:29:38 +01:00
pushrbx
e6ff4461ee fixed issues with filtering 2022-07-12 10:29:38 +01:00
pushrbx
569be1ff21 fixed type errors and php syntax mistakes 2022-07-12 10:29:37 +01:00
pushrbx
faa0031409 (wip) added a new system for resolving query string parameters to ORM commands. 2022-07-12 10:29:35 +01:00