Commit Graph

651 Commits

Author SHA1 Message Date
Nabeel Shahzad
6993cba55a Don't change rank if it seems like it's been manually changed by an admin #196 2018-02-28 15:01:23 -06:00
Nabeel Shahzad
e03abc1a64 Moved away from the phpmoney library since it requires intl extension 2018-02-28 13:54:14 -06:00
Nabeel Shahzad
777bd5e26d Return the pay in Money() format 2018-02-28 13:34:49 -06:00
Nabeel Shahzad
a6afcc944c Add Money composition class to Support 2018-02-27 21:38:05 -06:00
Nabeel Shahzad
ae0c3c5f27 Get the pilot pay, reconcile with values for subfleet overrides 2018-02-27 16:16:40 -06:00
Nabeel Shahzad
dfa6d6da51 Split rank pay rate into separate rates for acars and manual flights 2018-02-27 14:29:45 -06:00
Nabeel Shahzad
81b867fa20 Add bid expire time 2018-02-27 14:23:09 -06:00
Nabeel Shahzad
3aa4b8a410 Cleanup and move subfleet/rank settings to FleetService class 2018-02-27 14:12:03 -06:00
Nabeel Shahzad
f0977b48e5 alt_airports missing in flight create 2018-02-27 13:38:11 -06:00
Nabeel Shahzad
baccf7e3ad Fix the flight time not showing closes #199 2018-02-27 13:37:29 -06:00
Nabeel Shahzad
97764866f2 Rename user_bids table to bids 2018-02-27 13:25:32 -06:00
Nabeel Shahzad
c89926399b Delete a bid by either the bid_id or the flight_id 2018-02-27 13:14:58 -06:00
Nabeel Shahzad
a38b4e063b Return the flight object with the bid 2018-02-27 13:11:48 -06:00
Nabeel Shahzad
18aa573a16 remove extra libs 2018-02-26 20:30:50 -06:00
Nabeel Shahzad
d61ade4482 move currency to config file; change units to their own group in settings 2018-02-26 20:23:48 -06:00
Nabeel Shahzad
cdd5fc749c Add the acars and manual payrates in the rank/subfleet forms 2018-02-26 19:14:10 -06:00
Nabeel Shahzad
f6ec647eb6 Add base payrate field for ranks 2018-02-26 17:56:30 -06:00
Nabeel Shahzad
4a73a5a6b3 Add table/models and admin for expenses #136 2018-02-26 15:16:12 -06:00
Nabeel Shahzad
3bbcd2a20d fix pirep ids in sample; rename navs to flight reports 2018-02-24 16:05:00 -06:00
Nabeel Shahzad
d0b3b27975 Remove the flight_id column from the pireps table 2018-02-24 15:51:04 -06:00
Nabeel Shahzad
7345dd8076 change some of the sample data 2018-02-24 15:47:43 -06:00
Nabeel Shahzad
2e57f84657 Add sample data for pirep fares #125 2018-02-24 15:45:43 -06:00
Nabeel Shahzad
58e0f50c48 specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125 2018-02-24 15:38:25 -06:00
Nabeel Shahzad
910c0e0eab Convert aircraft active to more detailed status #134 2018-02-23 16:37:10 -06:00
Nabeel Shahzad
709aec83e2 Add multiplier to factory #134 2018-02-23 16:07:53 -06:00
Nabeel Shahzad
db94f5b405 Add a ground_handling_multiplier to the subfleet table #134 2018-02-23 16:00:14 -06:00
Nabeel Shahzad
4142d5d28a Add ground_handling_cost to airport #134 2018-02-23 15:48:50 -06:00
Nabeel Shahzad
b8b4fe7a8a Add percentages as part of sample data #125 2018-02-23 15:34:14 -06:00
Nabeel Shahzad
d5aef6fb87 Allow setting percent for fare overrides against base fare #125 2018-02-23 15:12:09 -06:00
Nabeel Shahzad
b2d91ba4c9 Show how pirep was filed in list/edit 2018-02-22 15:29:25 -06:00
Nabeel Shahzad
53b0bbd936 Convert errors into HttpException calls 2018-02-22 15:15:00 -06:00
Nabeel Shahzad
3748ab77d2 Fix aircraft active/inactive states 2018-02-22 14:59:09 -06:00
Nabeel Shahzad
ad5f36f85e Cleanup frontend user bid add/remove to use the API, script and html cleanup #172 2018-02-22 11:34:57 -06:00
Nabeel Shahzad
6dfab75f08 Add api routes to get/add/remove bids for a user #172 2018-02-22 10:44:15 -06:00
Nabeel Shahzad
487b7480af Refactor how errors are handled 2018-02-22 10:14:12 -06:00
Nabeel Shahzad
5d2ef3a9d3 Fix wrong Exception being thrown 2018-02-22 09:41:23 -06:00
Nabeel Shahzad
abf47274a1 Cleanup some class names; move acars data into separate seed file 2018-02-22 09:31:07 -06:00
Nabeel Shahzad
3abf38ab93 Return string if not multi-value; add delete_previous flag #194 2018-02-21 21:42:47 -06:00
Nabeel Shahzad
9ed370693d First pass at csv column parsing for kvp as values #194 2018-02-21 21:38:35 -06:00
Nabeel Shahzad
964ea904a1 Make sure the subfleet type field doesn't have spaces 2018-02-21 20:18:50 -06:00
Nabeel Shahzad
1a54aadc19 Make sure the subfleet name doesn't have spaces 2018-02-21 20:16:49 -06:00
Nabeel Shahzad
7872a6a442 Remove debug stuff in xml converter 2018-02-21 15:25:58 -06:00
Nabeel Shahzad
9dfdc8195d Add flight log to both frontend and admin pirep edit view 2018-02-21 15:24:46 -06:00
Nabeel Shahzad
77055991af Get the correct ordering for flight route on map 2018-02-21 15:15:12 -06:00
Nabeel Shahzad
a18c00ee95 Convert sequelpro xml to yaml for import 2018-02-21 15:02:24 -06:00
Nabeel Shahzad
ea09a18956 Fixed formatting of almost every file 2018-02-20 22:33:09 -06:00
Nabeel Shahzad
c5b6ca53fa Redirect subfleet create to edit page 2018-02-20 21:55:01 -06:00
Nabeel Shahzad
14d04604cb Add ranks from the subfleet edit page closes #160 2018-02-20 21:53:50 -06:00
Nabeel Shahzad
bac829b425 Shrink decimal field sizes as they're overly large 2018-02-20 15:57:31 -06:00
Nabeel Shahzad
7185f6cedf Restrict max number in factory, might be hitting 32 bit limit in tests 2018-02-20 15:41:05 -06:00
Nabeel Shahzad
8386951511 Rename toInt to toNumber 2018-02-20 15:32:49 -06:00
Nabeel Shahzad
b9e88527dd Unit conversion fixes #193 2018-02-20 14:23:02 -06:00
Nabeel Shahzad
aeacd80bcb Check aircraft permissions in PIREP update/file 2018-02-20 14:14:20 -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
4e43223f3a Refuse pirep prefile is user not allowed to use aircraft #170 2018-02-20 12:59:49 -06:00
Nabeel Shahzad
8393ae2851 Add /flight/:id/route resource, returns all route info that's in the navaid database closes #183 2018-02-20 12:06:52 -06:00
Nabeel Shahzad
fdf18cf533 Remove raw_data field from pireps closes #188 2018-02-20 11:17:34 -06:00
Nabeel Shahzad
5ee8c1e779 level not required in prefile; distance required in file 2018-02-20 11:12:50 -06:00
Nabeel Shahzad
ad4259625c Add flight time to flight create/edit form 2018-02-19 13:33:26 -06:00
Nabeel Shahzad
3d55fc09f7 Add options field on setting data import 2018-02-19 11:19:18 -06:00
Nabeel Shahzad
3d9d17d9b9 Add call to get user's PIREPs #192 2018-02-19 10:35:49 -06:00
Nabeel Shahzad
5c58dfe1ae generate a hex code for an aircraft on creation #33 2018-02-12 20:58:23 -06:00
Nabeel Shahzad
2678514077 API: Only show active airlines 2018-02-12 12:05:10 -06:00
Nabeel Shahzad
ee71f4a1c8 Remove tail_number field from aircraft 2018-02-12 11:03:25 -06:00
Nabeel Shahzad
62506a26a1 set country on the airline, in admin and installer #191 2018-02-12 10:51:04 -06:00
Nabeel Shahzad
61dc0a046d Fix rank image field 2018-02-12 10:26:27 -06:00
Nabeel Shahzad
c817d1ae4b Installer fixes 2018-02-12 09:47:12 -06:00
Nabeel Shahzad
2f8a69b774 Undo casting time types to Time object #189 2018-02-11 20:50:48 -06:00
Nabeel Shahzad
61af5fe226 Cleanup column types and assign Time class to fields #189 2018-02-11 20:38:56 -06:00
Nabeel Shahzad
fd4407a798 Move internal unit definitions to config file #189 2018-02-11 20:19:02 -06:00
Nabeel Shahzad
4eef254688 set nautical miles as the default mass unit #189 2018-02-11 19:58:07 -06:00
Nabeel Shahzad
d5c2d25c74 finally fixed serialization of conversions #189 2018-02-10 22:49:08 -06:00
Nabeel Shahzad
0700c96901 fix serialization of converter classes #189 2018-02-10 22:30:42 -06:00
Nabeel Shahzad
9b9a20b437 set default storage unit #189 2018-02-10 22:18:07 -06:00
Nabeel Shahzad
f14a9e3ba1 implements ArrayAccess for casting to type #189 2018-02-10 22:04:30 -06:00
Nabeel Shahzad
cb02a7c15e add Time support class #189 2018-02-10 21:36:13 -06:00
Nabeel Shahzad
a8e06c6cc6 base conversion classes for units #189 2018-02-10 21:16:32 -06:00
Nabeel Shahzad
3aa01aaa18 tests check the data object in return #186 2018-02-10 18:17:38 -06:00
Nabeel Shahzad
04d44d9bd7 Add SKIN_NAME to error message pages #187 2018-02-10 17:58:11 -06:00
Nabeel Shahzad
762544ea6f don't change rank if it's not auto promoted #168 2018-02-10 17:53:25 -06:00
Nabeel Shahzad
2a289e0468 pirep route wrap the data object #186 2018-02-10 17:48:51 -06:00
Nabeel Shahzad
21e13b6b92 make sure resources return the data object #186 2018-02-10 17:34:46 -06:00
Nabeel Shahzad
5a89b4f194 write the route if it hasn't been set by acars #184 2018-02-10 16:10:19 -06:00
Nabeel Shahzad
7a6b228d8f make planned_distance optional #185 2018-02-10 16:02:15 -06:00
Nabeel Shahzad
fbd73b0717 make planned_distance optional #185 2018-02-10 16:00:43 -06:00
Nabeel Shahzad
7a527f2ed3 Set access modifier on all enums (php 7.1) 2018-02-10 14:06:25 -06:00
Nabeel Shahzad
e6290c3396 set pirep source to acars #177 2018-02-10 13:41:24 -06:00
Nabeel Shahzad
8acb9291fe hide all cancelled pireps #180 2018-02-10 13:25:40 -06:00
Nabeel Shahzad
3ded06390c ignore cancelled pireps in dupe check #179 2018-02-10 13:12:12 -06:00
Nabeel Shahzad
936bceba5d Add --reset-db flag to phpvms:dev-install command #176 2018-02-09 17:16:52 -06:00
Nabeel Shahzad
d94294e3f6 Added new phpvms:dev-install command #176 2018-02-09 17:11:55 -06:00
Nabeel Shahzad
80cd80a5cf Change the filtering to operate without being in the service layer #174 2018-02-09 15:42:37 -06:00
Nabeel Shahzad
17f1085ffb Filter out flights depending on the only_flights_from_current setting #174 2018-02-09 15:36:13 -06:00
Nabeel Shahzad
9b55a9691f Setting which filters out aircraft not at the departure airport #171 2018-02-09 15:07:34 -06:00
Nabeel Shahzad
13b4a3854b move filterSubfleets() to FlightService class #170 2018-02-09 14:36:36 -06:00
Nabeel Shahzad
f6b2102e48 fix bug where aircraft restrictions aren't respected in flight calls #170 2018-02-09 14:26:14 -06:00
Nabeel Shahzad
71189e4f2d Change most APIs to require API key #173 2018-02-09 13:20:35 -06:00
Nabeel Shahzad
041cef91de Refactor how settings are added to generate the offsets and order 2018-02-09 12:57:00 -06:00
Nabeel Shahzad
b5dbde84c4 Fix rank image link field to be string 2018-02-06 14:09:20 -06:00
Nabeel Shahzad
e69d9f4c38 Add pirep fields to the API response; add tests for setting/getting them 2018-02-06 13:59:40 -06:00
Nabeel Shahzad
de0c71cb06 Set fields to pireps in prefile/update calls 2018-02-06 13:46:23 -06:00
Nabeel Shahzad
cf286986e2 change variable name 2018-02-06 13:13:00 -06:00
Nabeel Shahzad
7d8dc2a4d4 Cleanup factories and seed data for airport timezone column change 2018-02-06 13:11:42 -06:00
Nabeel Shahzad
531c7ddba3 Set hours to read-only once they've changed away from PENDING #167 2018-02-06 12:58:48 -06:00
Nabeel Shahzad
ac0058e951 Some more attribute cleanup 2018-02-06 12:01:55 -06:00
Nabeel Shahzad
56bf277fe0 Add shorthands for timezone to tz 2018-02-06 11:02:40 -06:00
Nabeel Shahzad
1cc999a4f9 Change Airport tz field to timezone 2018-02-06 10:59:31 -06:00
Nabeel Shahzad
c6b1a475e9 Add timezone aliases 2018-02-06 10:33:39 -06:00
Nabeel Shahzad
8d76e16220 Add the validation error fields in the templates 2018-02-06 10:18:22 -06:00
Nabeel Shahzad
995d53df3e Set slug properly on pirep field and fix validation 2018-02-06 10:02:34 -06:00
Nabeel Shahzad
87b5ad390f Make sure all the Flight fields are included 2018-02-04 12:39:51 -06:00
Nabeel Shahzad
a4947fca79 Cleanup error handler; re-add the validation error messages 2018-02-04 11:53:02 -06:00
Nabeel Shahzad
b4908f482e Add a reference to the skin name in the templates to make it easier to create and modify skins 2018-02-03 18:18:09 -06:00
Nabeel Shahzad
512d8a2172 Read the version base from the install for the deployment 2018-02-03 13:16:37 -06:00
Nabeel Shahzad
533e5a8973 Cleanup l5-repository deps and update to latest 2018-02-01 16:46:37 -06:00
Nabeel Shahzad
83d17ab2dd Shrink landing rate field size 2018-01-30 12:40:04 -06:00
Nabeel Shahzad
f8cac4643e Add country list to user page 2018-01-30 12:39:24 -06:00
Nabeel Shahzad
1e33c4c9ae Add country flag in admin user list 2018-01-30 12:37:51 -06:00
Nabeel Shahzad
cda541dad3 cleanup code 2018-01-30 12:34:46 -06:00
Nabeel Shahzad
00382c6a04 fix transfer time field #129 2018-01-30 12:34:35 -06:00
Nabeel Shahzad
ad90d1bccf add transfer time fields in user table #129 2018-01-30 12:31:59 -06:00
Nabeel Shahzad
ec5478a766 Add /pireps/id/acars/events endpoint 2018-01-30 12:06:46 -06:00
Nabeel Shahzad
c8ac739820 Add a /api/pirep/{id}/update call 2018-01-30 11:36:22 -06:00
Nabeel Shahzad
9a426f79f9 Add fuel_used column to PIREPs table 2018-01-30 11:27:39 -06:00
Nabeel Shahzad
7300cdddf4 fuel cost field type adjustment 2018-01-30 11:25:06 -06:00
Nabeel Shahzad
af4c9cd973 Cleanup some PIREP fields 2018-01-30 11:15:07 -06:00
Nabeel Shahzad
0fbd8e5d68 Fix distance field types 2018-01-30 11:09:59 -06:00
Nabeel Shahzad
29c0f3cdaf Add zfw and block_fuel to factory 2018-01-30 11:07:48 -06:00
Nabeel Shahzad
4f59e466a2 Change fuel_used to block_fuel 2018-01-30 11:05:14 -06:00
Nabeel Shahzad
6498ba1d16 add zfw field to aircraft 2018-01-30 10:04:50 -06:00
Nabeel Shahzad
351f777488 Set flight type in admin 2018-01-29 20:51:00 -06:00
Nabeel Shahzad
906a8ef5fe Fix tests and extend the source_name field 2018-01-29 20:30:29 -06:00
Nabeel Shahzad
a5f51f6264 Add first pass of pirep import; additional fields in flight/pirep tables #114 2018-01-29 18:14:55 -06:00
Nabeel Shahzad
5c164e2cf6 Add distance to PIREP factory 2018-01-29 16:29:51 -06:00
Nabeel Shahzad
2b2aaefe2c Cast distance fields 2018-01-29 16:29:02 -06:00
Nabeel Shahzad
c55b55726e Add distance and planned_distance to PIREP api 2018-01-29 16:27:55 -06:00
Nabeel Shahzad
23dbbc788f Create database with utf8 info 2018-01-29 16:02:15 -06:00
Nabeel Shahzad
cc40b7580a Shorten log length in tests #156 2018-01-29 15:09:29 -06:00
Nabeel Shahzad
9f92f45293 Remove dead code #156 2018-01-29 13:19:03 -06:00
Nabeel Shahzad
f660af5c3b Add config.php at root; include configuration overhaul and then fixes to the installer #156 2018-01-29 13:16:39 -06:00
Nabeel Shahzad
b1759d9276 read a config.php file from root #156 2018-01-28 21:05:02 -06:00
Servetas George
78724e981c Awards Administration 2018-01-28 21:19:35 +02:00
Nabeel Shahzad
e57f0cb234 Add /acars/event as alias to /acars/log, and accept event as log line 2018-01-28 12:02:41 -06:00
Nabeel Shahzad
653ff2a104 Major refactoring and cleanup of ACARS/Pirep API 2018-01-28 11:12:13 -06:00
Nabeel Shahzad
77d0d2bcd0 Add comments to the PIREP endpoint 2018-01-24 16:22:49 -06:00
Nabeel Shahzad
8caabb9153 Write http errors for API to log 2018-01-24 14:14:47 -06:00
Nabeel Shahzad
9dc963ad29 some better logging 2018-01-24 13:38:06 -06:00
Nabeel Shahzad
cd61c999e7 Cleanup default value field migrations; flight fields 2018-01-23 21:58:13 -06:00
Nabeel Shahzad
9964eb63fb Add pirep comments and subfleets fares #118 2018-01-23 21:40:34 -06:00
Nabeel Shahzad
f9efa81bb4 Refactoring of PIREP submission and field code #146 2018-01-23 15:48:30 -06:00