* Aircraft level Hub definitions
* Add ability to define a hub for an aircraft apart from its subfleet.
* Update csv import/export capability for hub_id field
* Fix importertest source csv
* Fix source csv for updating too
* Update aircraft_empty_cols.csv
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Update SubfleetImporter.php
Correction to the import to include Simbrief Code
* Update SubfleetImporter.php
Added in the missing fields HUB-ID and SIMBrief as these are input on the main screen
* Update AircraftImporter.php
Part of the missing data fields in csv import export
* Update FlightImporter.php
Part of the missing fields in csv import and export
* Update AircraftImporter.php
* Update FlightImporter.php
* Update aircraft.csv
Test data amended as part of the missing csv fields
* Update subfleets.csv
Part of the fix for missing fields in csv files used for import/export
* Update flights.csv
* Update FlightImporter.php
* Update subfleets.csv
Removed unused fields
* Update FlightImporter.php
* Update FlightImporter.php
* Update FlightImporter.php
* amended for new csv file layouts
* Discord notifications for events #433
* Style fixes
* Check for blank webhook urls and disable
* Cleanup items after review
* Changes and fixes
* Style fixes
* Don't load env for testing
* Fix status text
* Refactor saving fields/fares so events get the latest data
* Cleanup
* Style fixes
* Fix removeExpiredEntires()
* Fix SimBriefTest
No need to add `'pirep_id' => ''` , just let it be `null` (like the core code does) and no need to convert Carbon to DateTimeString.
* Remove "Remove bid on accept" setting and remove bids after PIREP was filed
fixes#1039
* Add migration to remove setting from database
* fix migration naming and remove obsolete code
Co-authored-by: Andreas Palm <ap@ewsp.de>
* when importing flights, set subfleet name only if subfleet has been created, do not update existing subfleets
* add tests for flights import regarding subfleets
Co-authored-by: Andreas Palm <ap@ewsp.de>
* Add boolean field "disable activity checks" to role, check for this field inside PilotLeave-Check, add tests
* fix checkbox on form
* CS fixes
* CS fixes again :-)
Co-authored-by: Andreas Palm <ap@ewsp.de>
* Fix for Fuel and Ground Handling Costs
PR aims to fix issue #1048 and implements the feature request #1049
If no fuel cost is defined for departure airport, settings / airport fuel price will be used.
If no ground handling cost is defined for airports, settings / airport ground handling cost will be used.
Ground handling prices of both departure and arrival airport will be used for calculations.
* Resolve conflict with latest dev
PR will still fail checks due to double ground handling fares and will work on it to have two records at transactions for dep/arr
* Remove Double GH Costs / Fix The Bug Only
Removed double GH costs for now, pr aims only fixing the current issue (general settings not being read for fuel and ground handling costs)
* Add departure and arrival airports to ground handling
* Style fix
* Fix tests
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: Nabeel Shahzad <nabeel@nabeel.sh>
* Fix Metar Decoding / Wind check for Wind Chill
PR aims to fix the bug #1071 by checking both the wind speed and it's value for starting Wind Chill calculation.
* Add unit conversion handling for block_fuel like for fuel_used, add further checks in PIREPTest->testUnitFields
* Remove accidentially added "use"
Co-authored-by: Andreas Palm <ap@ewsp.de>
* Update Laravel and other dependencies
* Composer version in CI
* Remove the PHP exit from env file
* Add PHP 8 to testing matrix
* Update doctrine
* Update doctrine
* Update faker lib
* Rewrite TLD check to remove deprecated library
* Update version lib
* Remove PHP 8 for now
* Style fixes
* Refactoring simbrief fares and aircraft
* Hide user full name/email
* Sort PIREP fields desc; fix cargo counts
* Change the sorting
* Extra logs
* Fix tests
* Return fare information through the API
* Style fixes
* Test fix
* Another test fix
* More fixes
* Set aircraft and fares in prefile
* Formatting
* Update AviationWeather.php
Added the ability to fetch latest TAF report of given icao from ADDS/NOAA
* Update Weather.php
Used updated Metar\AviationWeather service to improve the widget ability and provide raw TAF data for the view
* Style Fix 1
* Update weather.blade.php
Updated blade to match updated Metar\AviationWeather service and the Weather widget controller.
Also fixed the order of temp - dewpoint - humidity - visibility display according to aviation usage.
Widget now displays raw TAF data just below raw METAR data.
* Update Metar inferface and wrap TAF retrieval in cache
* Styles fix
* Add call to getTaf. Don't call AviationWeather directly
* Fix cache lookup strings
* Fix recursion error
* Update weather.blade.php
Used latest weather.blade , added $taf['raw'] after raw metar.
* Compatibility Update
Updated the widget controller to match latest dev (added raw_only to config)
* Update Weather Widget Blade
Made the widget blade compatible with the TAF reports, widget will display raw metar and taf after the decoder, if no metar or taf recieved it will be displayed in its own row. Also added the new option of raw_only to blade, if it is true, metar decoding will be skipped and only raw values will be displayed. ( Useful when displaying multiple wx widgets at the same page for departure, destination and alternate etc )
Co-authored-by: Nabeel Shahzad <nshahzad@live.com>
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
* Refactoring for Simbrief not working #1005
* Style fixes
* Update tests for new briefing URL
* Check the OFP user
* Comment out user check temporarily
* Update Metar.php
The reported pressure was always being assigned as hPa thus resulting display and conversion errors when the reported pressure was inHg.
Also the VFR/IFR (VMC/IMC) determination was using minimum 5 nmi and 3000 ft cloud base, it must be 5 km and 3000 ft.
With this state, this PR should fix issue #948 and partly fixes issue #963
* MetarTest Fix for inHg/hPa