Commit Graph

55 Commits

Author SHA1 Message Date
Nabeel S
aedb1f22b6
Don't allow cancels from certain states (#396)
* Don't allow cancels from certain states

* Unused imports

* Don't reset the state doubly

* Move SetUserActive into listener; code cleanup

* Unused imports

* Add missing files into htaccess

* Move Command contract to correct folder
2019-09-16 13:08:26 -04:00
Nabeel S
a08c9db284
Add setting to include transfer hours in calculations (#350)
* Add setting to include transfer hours in calculations

* Add some extra tests to check versions

* A couple of more version test cases
2019-08-08 12:50:43 -04:00
Nabeel S
9f3ba05880
Issue/329 refactor seeding (#337)
* Fix Contracts class names

* Refactoring of the file seeds so it's not a mess

* StyleCI fixes
2019-08-05 08:27:53 -04:00
Nabeel S
95147e31bf
Fix issue where user stats aren't incremented on PIREP auto accept (#335)
* Fix issue where user stats aren't incremented on PIREP auto accept

* Formatting
2019-08-01 15:23:59 -04:00
Nabeel Shahzad
62a10224a0 Account for fuel in the finance calculations #313 2019-07-23 08:41:20 -04:00
Nabeel Shahzad
87aa6ed1da Fix tests for 5.8 2019-05-12 10:50:38 -05:00
Nabeel Shahzad
3c32f2d89d Apply fixes from StyleCI 2018-08-26 18:51:47 +00:00
Nabeel Shahzad
e95b3eb366 Code cleanup from inspection results 2018-08-26 13:50:08 -05:00
Nabeel Shahzad
9596d88b48 Apply fixes from StyleCI 2018-08-26 16:40:04 +00:00
Nabeel Shahzad
df88cb141a Allow draft for PIREPs, separate out the save/submit and delete functionality 2018-05-10 10:35:10 -05:00
Nabeel Shahzad
c102a0d858 Refactor all of the unit conversion code 2018-04-07 20:52:12 -05:00
Nabeel Shahzad
ccbc109db2 Add setting to automatically remove bid on PIREP accept #200 2018-03-15 18:20:07 -05:00
Nabeel Shahzad
dc2570a408 Rename the PirepService class 2018-03-06 17:36:06 -06:00
Nabeel Shahzad
ea09a18956 Fixed formatting of almost every file 2018-02-20 22:33:09 -06:00
Nabeel Shahzad
8386951511 Rename toInt to toNumber 2018-02-20 15:32:49 -06:00
Nabeel Shahzad
653711fa96 Change volume units to be in lbs/kg closes #193 2018-02-20 14:07:33 -06:00
Nabeel Shahzad
463de8d7e7 Make sure the rank restriction disabled works closes #170 2018-02-20 13:28:53 -06:00
Nabeel Shahzad
4e43223f3a Refuse pirep prefile is user not allowed to use aircraft #170 2018-02-20 12:59:49 -06:00
Nabeel Shahzad
3d9d17d9b9 Add call to get user's PIREPs #192 2018-02-19 10:35:49 -06:00
Nabeel Shahzad
2f8a69b774 Undo casting time types to Time object #189 2018-02-11 20:50:48 -06:00
Nabeel Shahzad
3aa01aaa18 tests check the data object in return #186 2018-02-10 18:17:38 -06:00
Nabeel Shahzad
76caeda967 Fix for tests - lat/lon rounding 2018-01-28 11:16:04 -06:00
Nabeel Shahzad
653ff2a104 Major refactoring and cleanup of ACARS/Pirep API 2018-01-28 11:12:13 -06:00
Nabeel Shahzad
dce9723979 Set airport and landing time of aircraft after pirep accept #112 2018-01-10 12:39:13 -06:00
Nabeel Shahzad
46a411e27b Cleanup tests to automatically inject proper headers when needed 2018-01-06 12:07:22 -06:00
Nabeel Shahzad
db3c60987e Change tests to use generated user 2018-01-04 21:05:26 -06:00
Nabeel Shahzad
591c3e7b8b Change /acars/logs data format; /cancel to DELETE request 2018-01-04 20:08:22 -06:00
Nabeel Shahzad
b29a07afd3 Split out the saveRoute() fn so it's only during a manual filing, not ACARS 2018-01-04 19:39:41 -06:00
Nabeel Shahzad
b62fa7757c Overhaul of ACARS/PIREP APIs 2018-01-04 19:33:23 -06:00
Nabeel Shahzad
6f9e4d725b Add a PIREP cancel route via API #109 2018-01-03 10:25:55 -06:00
Nabeel Shahzad
7700bd6683 Add tests for the duplicate PIREP via prefile/API 2018-01-02 14:31:00 -06:00
Nabeel Shahzad
9c319e73f9 Check whether a duplicate PIREP has been submitted 2018-01-02 13:17:22 -06:00
Nabeel Shahzad
080e8842ac generate nav point name 2018-01-02 11:19:11 -06:00
Nabeel Shahzad
003fafa670 use generated user in tests 2018-01-02 11:12:53 -06:00
Nabeel Shahzad
21e41c68a2 cleanup test output 2018-01-02 10:44:49 -06:00
Nabeel Shahzad
6b95b74b2f print out the routes 2018-01-02 09:43:34 -06:00
Nabeel Shahzad
37cdde845d Add order column to ACARS table for the order of the route points 2018-01-02 09:40:42 -06:00
Nabeel Shahzad
78af2fd637 cleanup of geojson and route map code 2018-01-01 19:02:22 -06:00
Nabeel Shahzad
b456dc1a71 Save PIREP route to ACARS data table #102 2018-01-01 13:48:02 -06:00
Nabeel Shahzad
3bd97b4d37 add PIREP pre-file and ACARS updates; removing caching from ACARS/Pirep/User repositories; adjust PirepState enum values; add additional columns 2017-12-25 15:19:34 -06:00
Nabeel Shahzad
0375bb420f Major refactoring for PIREP statuses and states to accomodate ACARS/route data 2017-12-19 20:19:36 -06:00
Nabeel Shahzad
55250b8789 PIREP tests working, using minutes to track flight hours instead of seconds 2017-12-13 10:56:26 -06:00
Nabeel Shahzad
4c8fca39eb accept/reject pireps in admin; cleanup and refactoring 2017-12-03 00:48:33 -06:00
Nabeel Shahzad
1502e0193f fix tests, finally. i hope. cleanup before laravel 5.5 update 2017-09-07 15:35:17 -05:00
Nabeel Shahzad
b9cebeb044 fixing the build 2017-08-04 20:27:12 -05:00
Nabeel Shahzad
de91b133e7 travis - stop supressing output 2017-07-13 15:23:55 -05:00
Nabeel Shahzad
4dd2e8c9c6 travis - run reset again 2017-07-13 14:39:10 -05:00
Nabeel Shahzad
5527fb3d64 more fixes for travis 2017-07-13 14:29:46 -05:00
Nabeel Shahzad
49b382766a ¯\_(ツ)_/¯ trying to fix tests... 2017-07-11 17:58:59 -05:00
Nabeel Shahzad
b5dd700044 Adjust columns in migrations and give lens to strings and custom flight fields #48 2017-07-10 18:54:51 -05:00