Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eager loading update for frontend controllers and widgets #1348

Merged
merged 19 commits into from
Nov 9, 2021
Merged

Eager loading update for frontend controllers and widgets #1348

merged 19 commits into from
Nov 9, 2021

Commits on Nov 7, 2021

  1. Update AirportController.php

    Eager load `files`
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    610b721 View commit details
    Browse the repository at this point in the history
  2. Update DashboardController.php

     Eager load `journal` for user , and `aircraft, arr_airport, comments, dpt_airport` for last_pirep.
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    f4fcdcf View commit details
    Browse the repository at this point in the history
  3. Update FlightController.php

    Eager load + `alt_airport, subfleets` (with their airlines) for flights and `current_airport` for user 
    (though current_airport can be removed and we can base the in blade checks on `$user->curr_airport_id` to reduce db reads and model loading)
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    7dd4a41 View commit details
    Browse the repository at this point in the history
  4. Update HomeController.php

    Eager load `home_airport` for users
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    fd88fcd View commit details
    Browse the repository at this point in the history
  5. Update PirepController.php

    Eager load `airline, aircraft, fares, transactions, dpt_airport, arr_airport, comments, simbrief, user with rank` for pirep details
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    be420b9 View commit details
    Browse the repository at this point in the history
  6. Update ProfileController.php

    Eager load `airline, awards, current_airport, fields.field, home_airport, last_pirep, rank` for user
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    707675f View commit details
    Browse the repository at this point in the history
  7. Update UserController.php

    Eager load `airline, current_airport, fields.field, home_airport, rank` for users and count `awards`
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    e49ec28 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5bcef6c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    73c1d8c View commit details
    Browse the repository at this point in the history
  10. Update PirepController.php

    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    7b81bf1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    51975c0 View commit details
    Browse the repository at this point in the history
  12. Update LatestNews.php

    Eager load `user` for news
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    bcfeb5a View commit details
    Browse the repository at this point in the history
  13. Update LatestPilots.php

    Eager load `home_airport` for latest users
    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    e36fecc View commit details
    Browse the repository at this point in the history
  14. StyleFix 1

    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    c09adb4 View commit details
    Browse the repository at this point in the history
  15. StlyeFix 1.5

    FatihKoz committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    9642ecf View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Update SimBriefController.php

    Eager load airline with flight
    FatihKoz committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    9087702 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3746145 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e47f1a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7be5829 View commit details
    Browse the repository at this point in the history