Go to file
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
.github Cleanup the docker-compose for local testing 2021-05-25 15:07:04 -04:00
app Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00
bootstrap Fix public path in application bootstrap #887 2020-11-23 13:39:26 -05:00
config Add queue worker setting so those aren't run in cron if there's a worker 2021-05-21 12:31:32 -04:00
modules Fix PilotHoursAwards (#1011) 2021-01-26 19:48:43 -05:00
public Update dependencies (#1188) 2021-05-14 13:02:47 -04:00
resources New Language: German (#1218) 2021-06-03 11:46:32 -04:00
storage Fix the avatars directory #316 2019-07-17 08:56:38 -04:00
tests Fix SimBriefService (#1209) 2021-05-27 09:27:38 -04:00
.dockerignore Add base Dockerfile for Dockerhub builds (#504) 2020-01-16 11:49:22 -05:00
.editorconfig Update module generation #714 (#716) 2020-09-20 19:10:52 -04:00
.eslintignore Add eslint and styleci files 2018-09-10 09:25:45 -05:00
.eslintrc Refactor all JS API calls #360 (#375) 2019-08-30 08:08:00 -04:00
.gitignore Migrate all configs into the env.php file #1075 (#1128) 2021-04-10 17:19:45 -04:00
.htaccess Migrate all configs into the env.php file #1075 (#1128) 2021-04-10 17:19:45 -04:00
.php_cs Formatting 2019-05-12 17:37:22 -05:00
.styleci.yml #355 Calculate distance button (#366) 2019-08-26 12:32:46 -04:00
artisan laravel base files 2017-06-08 13:28:26 -05:00
CHANGELOG.md Update CHANGELOG 2020-05-09 12:24:23 -04:00
composer.json Use queues for notifications #1154 (#1174) 2021-05-20 11:54:07 -04:00
composer.lock Use queues for notifications #1154 (#1174) 2021-05-20 11:54:07 -04:00
docker-compose.local.yml Cleanup the docker-compose for local testing 2021-05-25 15:07:04 -04:00
docker-compose.yml Cleanup the docker-compose for local testing 2021-05-25 15:07:04 -04:00
Dockerfile Add GD PHP Extension for docker container (#1212) 2021-05-28 08:48:52 -04:00
intellij_style.xml Split the importer module out from the installer module (#468) 2019-12-12 15:07:35 -05:00
LICENSE Copyright/license update 2018-02-22 11:37:47 -06:00
Makefile Cleanup the docker-compose for local testing 2021-05-25 15:07:04 -04:00
package-lock.json Update dependencies (#1188) 2021-05-14 13:02:47 -04:00
package.json Update dependencies (#1188) 2021-05-14 13:02:47 -04:00
phpstan.neon some cleanup as-per phpstan 2018-04-23 08:46:28 -05:00
phpunit.xml Make fuel_used an optional field in PIREP file (#1197) 2021-05-21 10:02:07 -04:00
Procfile Working docker-compose files for development 2019-05-10 18:40:07 -05:00
README.md Update README 2021-05-25 15:11:09 -04:00
swagger.yml Search flights by subfleet #484 (#506) 2020-01-16 17:36:03 -05:00
webpack.mix.js Fix error in webpack file (#994) 2021-01-20 09:24:27 -05:00

phpVMS 7

Build Codacy Badge Latest Stable Version StyleCI License

The next phpvms version built on the laravel framework. work in progress. The latest documentation, with installation instructions is available on the phpVMS documentation page.

Installation

A full distribution, with all of the composer dependencies, is available at this GitHub Releases link.

Requirements

  • PHP 7.3+, extensions:
    • cURL
    • JSON
    • mbstring
    • openssl
    • pdo
    • tokenizer
  • Database:
    • MySQL 5.5+ (or MySQL variant, including MariaDB and Percona)

View more details on requirements

Installer

  1. Upload to your server
  2. Visit the site, and follow the link to the installer

View installation details

Development Environment with Docker

A full development environment can be brought up using Docker, without having to install composer/npm locally

make docker-test

# **OR** with docker-compose directly

docker-compose -f docker-compose.yml -f docker-compose.local.yml up

Then go to http://localhost. If you're using dnsmasq, the app container is listening on phpvms.test, or you can add to your /etc/hosts file:

127.0.0.1   phpvms.test

The docker-compose.local.yml overrides the app section in docker-compose.yml. The standard docker-compose.yml can be used if you want to deploy from the image, or as a template for your own Dockerized deployments.

Building JS/CSS assets

Yarn is required, run:

make build-assets

This will build all of the assets according to the webpack file.