Files
growstuff/app/models
google-labs-jules[bot] 97e236f7e8 Convert Photos controller to plain SQL queries
- Refactored `PhotosController#index` to use ActiveRecord queries instead of Searchkick/Elasticsearch.
- Handled filtering by crop and planting via associations.
- Added eager loading for the photo owner to prevent N+1 queries.
- Decoupled the `Photo` model from Elasticsearch by removing the `SearchPhotos` concern.
- Deleted `app/models/concerns/search_photos.rb`.
- Updated controller and model specs to use standard ActiveRecord expectations.
- Cleaned up the photo factory by removing the now-obsolete `:reindex` trait.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
2026-06-23 12:16:50 +00:00
..
2022-11-06 17:36:30 +10:30
2026-04-26 14:22:32 +09:30
2026-04-26 13:09:00 +00:00
2022-11-06 17:36:11 +10:30
2026-04-26 13:09:00 +00:00
2025-09-20 09:43:22 +00:00
2025-09-20 09:43:22 +00:00
2026-04-26 13:09:00 +00:00
2025-08-24 21:10:16 +09:30
2025-09-20 09:43:22 +00:00
2026-04-26 09:26:52 +00:00
2025-09-20 09:43:22 +00:00
2022-11-06 17:36:49 +10:30