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

Block aircraft with Simbrief #1213

Merged
merged 11 commits into from
Jun 3, 2021
Merged

Block aircraft with Simbrief #1213

merged 11 commits into from
Jun 3, 2021

Commits on May 27, 2021

  1. Block Aircraft with SimBrief

    Changes aim to have the ability to block an aircraft's usage if it is used to generate a SimBrief OFP.
    
    Unused/Expired briefings will be deleted by cron like before but will now be checked by HourlyCron, so admins can define more precise restrictions for them (and the blockage period of their aircraft)
    
    Owner of the SimBrief OFP will be able to start a flight with acars using that particular aircraft, but pilots will get an Aircraft Not Available error (similar to Aircraft State check)
    
    To prevent SimBrief OFP packs being marked as expired/unused, during pirep prefile, pirep_id will be saved to SimBrief model along with flight_id.
    
    And when a flight is finished (pirep file), flight_id will be removed from SimBrief model as before. Only pirep_id will remain and aircraft will be available for another OFP generation.
    FatihKoz committed May 27, 2021
    Configuration menu
    Copy the full SHA
    a55a574 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2021

  1. Update PirepController

    In case a pirep is being saved/submitted with manual entry (but the va is using simbrief effectively) same logic should be applied during save/submit button selection.
    Save will act like a pirep prefile , Submit will be pirep file.
    FatihKoz committed May 28, 2021
    Configuration menu
    Copy the full SHA
    c1af2f4 View commit details
    Browse the repository at this point in the history
  2. Manual Pirep Checks

    Manual pireps, prefiled from a generated simbrief should be checked too. Also pirep.show blade's submit button should provide the same simbrief checks.
    FatihKoz committed May 28, 2021
    Configuration menu
    Copy the full SHA
    8b6e7da View commit details
    Browse the repository at this point in the history
  3. Update PirepService.php

    FatihKoz committed May 28, 2021
    Configuration menu
    Copy the full SHA
    5e10380 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    382360e View commit details
    Browse the repository at this point in the history
  5. StyleFix (SimBriefService)

    FatihKoz committed May 28, 2021
    Configuration menu
    Copy the full SHA
    1ea88b9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e35c753 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0638a28 View commit details
    Browse the repository at this point in the history
  8. Update SimBriefController

    Removed null check of pirep_id for aircraft list generation to prevent live flights' aircraft being listed for another ofp generation.
    ( Active acars flights will have both flight_id and pirep_id at simbrief table)
    FatihKoz committed May 28, 2021
    Configuration menu
    Copy the full SHA
    8e154d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Update PirepService.php

    FatihKoz committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    8bed9ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59310da View commit details
    Browse the repository at this point in the history