phpvms/app
B.Fatih KOZ 17447c6903
Block aircraft with Simbrief (#1213)
* 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.

* 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.

* 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.

* Update PirepService.php

* Change settings and move sb cron to hourly

* StyleFix (SimBriefService)

* Another StyleFix (SimBriefService)

* 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)

* Update PirepService.php

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2021-06-03 16:17:16 -04:00
..
Bootstrap 391 Notification refactorings (#441) 2019-11-20 10:16:01 -05:00
Console Add queue worker setting so those aren't run in cron if there's a worker 2021-05-21 12:31:32 -04:00
Contracts Use queues for notifications #1154 (#1174) 2021-05-20 11:54:07 -04:00
Cron Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
Database Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
Events Notifications fixes (#804) 2020-09-03 12:50:42 -04:00
Exceptions Check Aircraft Availability (#1177) 2021-05-13 15:26:53 -04:00
Http Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
Listeners Make fuel_used an optional field in PIREP file (#1197) 2021-05-21 10:02:07 -04:00
Models Use queues for notifications #1154 (#1174) 2021-05-20 11:54:07 -04:00
Notifications Use queues for notifications #1154 (#1174) 2021-05-20 11:54:07 -04:00
Providers Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
Repositories Add Airline ICAO to Subfleet selectBoxList (#1153) 2021-04-23 09:44:37 -04:00
Services Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
Support replace windows backslashes by slashes before path mapping (#1107) 2021-03-28 18:15:56 -04:00
Utils Installing and managing modules from admin panel (#847) 2020-10-19 10:10:28 -04:00
Widgets Fixes For GDPR/Deleted Users (#1164) 2021-05-03 08:46:21 -04:00
helpers.php Force empty to be 0 for in_mask #1180 2021-05-19 10:22:15 -04:00