hensei-api/app/controllers/api/v1
Justin Edmund be91c2c033 Optimize party loading by adding eager loading to set_from_slug
- Refactored `set_from_slug` to use `includes` for eager loading associated models:
  - `user`, `job`, `raid` (with `group`)
  - `characters` (with `character` and `awakening`)
  - `weapons` (with `weapon`, `awakenings`, `weapon_key1`, `weapon_key2`, `weapon_key3`)
  - `summons` (with `summon`)
  - `guidebooks` (`guidebook1`, `guidebook2`, `guidebook3`)
  - `source_party`, `remixes`, `skills`, and `accessory`
- This change improves query efficiency by reducing N+1 queries and ensures all relevant associations are preloaded.
- Removed redundant favorite check as it was not necessary in this context.
2025-02-09 18:00:14 -08:00
..
api_controller.rb Update api_controller.rb 2025-02-07 01:50:58 -08:00
characters_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
favorites_controller.rb Refactor FavoritesController for blueprinter 2022-12-21 16:10:53 -08:00
grid_characters_controller.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
grid_summons_controller.rb Add support for weapon transcendence (#142) 2024-01-15 14:05:17 -08:00
grid_weapons_controller.rb Add support for weapon transcendence (#142) 2024-01-15 14:05:17 -08:00
guidebooks_controller.rb Adds guidebooks and gacha tables (#95) 2023-06-04 22:23:34 -07:00
import_controller.rb Jedmund/import (#167) 2025-01-17 12:02:12 -08:00
job_accessories_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
job_skills_controller.rb Updated getting skills assignable to a job 2022-12-22 23:26:23 -08:00
jobs_controller.rb Assorted updates (#146) 2025-01-08 12:19:19 -08:00
parties_controller.rb Optimize party loading by adding eager loading to set_from_slug 2025-02-09 18:00:14 -08:00
raids_controller.rb Add raids#show (#145) 2024-02-21 23:25:11 -05:00
search_controller.rb Add support for weapon transcendence (#142) 2024-01-15 14:05:17 -08:00
summons_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
users_controller.rb Implement roles and visibility (#128) 2023-08-25 15:53:56 -07:00
weapon_keys_controller.rb Hotfix so weapon key search translates ints to arrays (#140) 2023-12-30 06:20:22 -08:00
weapons_controller.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00