]> BookStack Code Mirror - bookstack/commit
Revamped some complex queries, added favourites to home
authorDan Brown <redacted>
Sat, 22 May 2021 13:05:28 +0000 (14:05 +0100)
committerDan Brown <redacted>
Sat, 22 May 2021 13:05:28 +0000 (14:05 +0100)
commitd0ff79ea6010f71861ce687c1f768264db3978e1
tree42ac9dd42dc4401c4c99db3521598dfb1dca7138
parent3de02566bf199f3a49fcfe2b2d4119a287eb26bb
Revamped some complex queries, added favourites to home

- Removed old view system and started use of new query classes instead.
- Finished off RelationMultiModelQuery but found it was less efficient
than x-many queries due to the amount of tables being scanned.
Adding now for history but will delete as not used.
- Updated recently viewed to use same query system as popular items
  rather than running and joining x-entities queries.
- Added "Most Viewed Faviourites" listing to homepages.
15 files changed:
app/Actions/View.php
app/Actions/ViewService.php [deleted file]
app/Config/app.php
app/Entities/Queries/EntityQuery.php [new file with mode: 0644]
app/Entities/Queries/Popular.php [new file with mode: 0644]
app/Entities/Queries/RecentlyViewed.php [new file with mode: 0644]
app/Entities/Queries/TopFavourites.php [new file with mode: 0644]
app/Entities/Tools/RelationMultiModelQuery.php
app/Facades/Views.php [deleted file]
app/Http/Controllers/HomeController.php
app/Http/Controllers/SearchController.php
resources/lang/en/entities.php
resources/views/common/home-sidebar.blade.php
resources/views/common/home.blade.php
resources/views/errors/404.blade.php