82 Commits

Author SHA1 Message Date
pushrbx
df854f65a6 fixed tests 2023-06-29 21:01:24 +01:00
pushrbx
714d4cb490 added search analytics 2023-06-28 16:30:24 +01:00
pushrbx
dd624d6872 added improvements for search
- better typesense 0.24.1 support
- exhaustive search disabled by default
- central place for the MAX_RESULTS_PER_PAGE option
- added class for getting searchable attributes of models in typesense
2023-06-27 14:45:38 +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
Irfan
a637e697e1 Update SerializerFactory.php 2023-05-21 11:18:35 +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
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
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
ff5068bf27 fixed road runner integration 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
pushrbx
4a25c30d7d refactored user endpoints and cache ttl config 2023-05-21 11:14:35 +01:00
pushrbx
37c273fbab wip - anime season controller refactor, central limit parameter validation
- fixed cache validation
2023-05-21 11:14:35 +01:00
pushrbx
413df48fdc fixed issues and added route params mapper 2023-05-21 11:14:35 +01:00
pushrbx
49ebc8f581 wip - mediator refactor
- anime schedules - validation and corrections
- refactorings around "augmentResponse" - macro usage instead
2023-05-21 11:14:34 +01:00
pushrbx
c564de979d wip - mediator refactor 2023-05-21 11:14:34 +01:00
pushrbx
69d66378be added scraper service and rewritten anime controller 2023-05-21 11:14:34 +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
2156c6bfe1 added serialization to model factories 2023-05-21 11:14:33 +01:00
pushrbx
628f3e2294 fixed things and applied code review recommends 2023-05-21 11:14:33 +01:00
pushrbx
f4e5986514 rollback 2023-05-21 11:14:33 +01:00
Irfan
405f2be00d resolve php8.1 warning 2023-01-02 11:12:27 +05:00
Irfan
8df86920ba LE 2022-12-03 02:08:19 +05:00
pushrbx
49faaf0a2f added docker entrypoint and healthchecks, fixed psr worker warmup 2022-10-23 12:09:11 +01:00
pushrbx
e47ad20f04 added roadrunner support and dockerfile 2022-10-23 11:35:25 +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
4fe7673501 fixed a typo in AppServiceProvider.php 2022-10-04 19:06:00 +01:00
Irfan
dc16537126 fix merge 2022-10-03 23:26:36 +05:00
Irfan
5ba22248a5 Merge branch 'feature/scout-typesense' of https://github.com/pushrbx/jikan-rest into pr/227 2022-10-03 23:17:31 +05:00
pushrbx
4e209fbcb2 untested: fixed producers after merge 2022-10-03 18:40:34 +01:00
pushrbx
3c13101924 fixed pagination and type filters for anime/manga 2022-07-12 10:29:38 +01:00
Irfan
0feb05b2a3 minor fix to thrown exception message 2022-07-12 10:29:38 +01:00
pushrbx
d89760354c made search results more similar to the ones on MAL
- added more support for elasticsearch
- added more options for typesense searches
2022-07-12 10:29:37 +01:00
pushrbx
569be1ff21 fixed type errors and php syntax mistakes 2022-07-12 10:29:37 +01:00
pushrbx
0610b630c7 wip - completed the refactoring of query builders 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
pushrbx
194a17881b wip
- refactored query builders
- added function for transforming nested fields on models to typesense compatible format.
- readded the AppServiceProvider class to the service container
- todo: create a base class for all models so they would share the common typesense specific implementations
2022-07-12 10:29:26 +01:00
Irfan
c42278bce8 minor fix to thrown exception message 2022-06-22 23:22:15 +05:00
pushrbx
1dbdc71d15 made search results more similar to the ones on MAL
- added more support for elasticsearch
- added more options for typesense searches
2022-06-18 15:03:50 +01:00
pushrbx
291a6aa8f9 fixed type errors and php syntax mistakes 2022-06-17 16:21:20 +01:00
pushrbx
fa1b9abc7d wip - completed the refactoring of query builders 2022-06-09 16:01:37 +01:00
pushrbx
b5acf936ed (wip) added a new system for resolving query string parameters to ORM commands. 2022-06-08 17:05:12 +01:00
pushrbx
461ccf3db6 wip
- refactored query builders
- added function for transforming nested fields on models to typesense compatible format.
- readded the AppServiceProvider class to the service container
- todo: create a base class for all models so they would share the common typesense specific implementations
2022-06-05 18:53:53 +01:00
Irfan
9653f2e570 Delete SearchQueryBuilder.php 2022-04-09 21:08:29 +05:00
Irfan
7617235ec6 QOL 2022-02-18 05:23:22 +05:00
Irfan
bf4079aa68 add php8.0 support & update deps 2021-12-28 00:36:12 +05:00
Irfan
5a5dcfb36b add MAL Heartbeat info to / root response 2021-06-13 02:51:27 +05:00
Irfan
f5f5d8a686 Update SerializerFactory.php 2021-01-16 10:24:16 +05:00
Irfan
d756dadbec port anime/mangalist filters 2020-11-27 19:53:22 +05:00