Commit Graph

554 Commits

Author SHA1 Message Date
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
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
Nabeel Shahzad
341424ad7e Fix flight edit and active/inactive flags #150 2018-01-23 13:23:32 -06:00
Nabeel Shahzad
edb72e462f Add stricter validation around ACARS/PIREP API updates #149 2018-01-23 11:46:26 -06:00
Nabeel Shahzad
3c78b5f1e2 Simplify list to associative array conversion #148 2018-01-21 13:59:51 -05:00
Nabeel Shahzad
33cbceaa92 Add some more truth states to test 2018-01-21 13:52:55 -05:00
Nabeel Shahzad
f09b3b888a Cast the required field properly and add helper #146 2018-01-21 13:43:32 -05:00
Nabeel Shahzad
e86fd64235 Fix setting drop downs not being saved properly #148 2018-01-21 13:36:03 -05:00
Nabeel Shahzad
c732268bd7 Fix field label to 'Required' #148 2018-01-21 13:13:49 -05:00
Nabeel Shahzad
2cd45acbdf Show if there's a new version available on the admin dashboard #143 2018-01-19 18:44:17 -05:00
Nabeel Shahzad
1133902f50 Check for duplicate flight number/code/leg when adding/editing a flight #139 2018-01-19 17:16:15 -05:00
Nabeel Shahzad
3a02a77eba Add pilots list page; fix gravatar display and pilot profile #82 2018-01-19 17:07:31 -05:00
Nabeel Shahzad
f58b01f3ea fix ACARS replay 2018-01-19 16:12:08 -05:00
Nabeel Shahzad
36c904d98d safer casting for boolean values 2018-01-19 16:02:49 -05:00
Nabeel Shahzad
7c70bb0971 add setting to disable user aircraft rank restriction #138 2018-01-19 12:46:30 -05:00
Nabeel Shahzad
333f866232 include build date in version number #141 2018-01-19 12:08:43 -05:00
Nabeel Shahzad
6e12c00725 add mysql/db version to posted analytics 2018-01-18 22:59:09 -05:00
Nabeel Shahzad
7e09cf6c28 Add enums for the custom analytics fields 2018-01-18 22:32:50 -05:00
Nabeel Shahzad
e3bce1cd69 Track hours on aircraft #73 2018-01-11 22:00:39 -06:00
Nabeel Shahzad
fe4f39a5dc Cleanup Controller inheritance 2018-01-11 21:35:03 -06:00
Nabeel Shahzad
4fb8a1aaf9 Add helper for the skin view 2018-01-11 21:21:33 -06:00
Nabeel Shahzad
0c7117da6c Fix settings log message 2018-01-11 19:46:35 -06:00
Nabeel Shahzad
186bbca428 Restrict the aircraft to only show the user's #138 2018-01-10 19:40:20 -06:00
Nabeel Shahzad
4f4137abf2 force no wrapping on the user fleet list #35 2018-01-10 19:00:38 -06:00
Nabeel Shahzad
bf4e164e0d Add calls and API to get user's fleet, determined by rank #35 2018-01-10 18:40:01 -06:00
Nabeel Shahzad
8aacd844b3 Merge branch 'master' of github.com:nabeelio/phpvms 2018-01-10 16:27:04 -06:00
Nabeel Shahzad
9bc6501e8d Rename widgets from Recent* to Latest* 2018-01-10 16:05:02 -06:00
Nabeel Shahzad
2ccaaddfcd add latest news item as widget to dashboard #52 2018-01-10 16:02:33 -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
7e71b46e02 Enable ATTR_EMULATE_PREPARES for MariaDB specifically #132 2018-01-09 23:05:52 -06:00
Nabeel Shahzad
f16748167b Rewrite how mysql db is created to avoid external processes #132 2018-01-09 20:47:03 -06:00
Nabeel Shahzad
78912f2f31 Allow user to set country 2018-01-09 19:08:16 -06:00
Nabeel Shahzad
44550330b4 Expand the subfleets type column 2018-01-09 16:40:00 -06:00
Nabeel Shahzad
cbdce35545 Aircraft can be added without subfleet/block subfleet deletion if still in use #128 2018-01-09 13:34:19 -06:00
Nabeel Shahzad
26d3a7f4d6 Convert live acars map into a widget 2018-01-09 12:48:24 -06:00
Nabeel Shahzad
458ee93974 add the length to the build block to see if it fixes a bug 2018-01-09 09:13:58 -06:00
Nabeel Shahzad
bb59dc1ef9 Convert recent pilots/pireps to widgets #127 2018-01-08 19:53:55 -06:00
Nabeel Shahzad
a8ecc8a26f Catch all Exception in root namespace 2018-01-08 16:42:08 -06:00
Nabeel Shahzad
4eb5aeebed confirmation dialog and user wasn't getting saved #52 2018-01-08 16:35:52 -06:00
Nabeel Shahzad
6b265ed67b add and delete news from admin dashboard #52 2018-01-08 16:22:26 -06:00
Nabeel Shahzad
110d742714 cleanup model relationship references 2018-01-08 09:22:12 -06:00
Nabeel Shahzad
8d65462084 Add news tables and models #52 2018-01-08 09:02:55 -06:00
Nabeel Shahzad
247310b4e7 Cleanup user edit page and show their pireps; log last IP address #110 2018-01-07 15:09:22 -06:00
Nabeel Shahzad
4a34286c67 remove return type of addUserBid() 2018-01-07 11:16:44 -06:00
Nabeel Shahzad
633dd5b804 Remove index #125 2018-01-07 11:13:59 -06:00
Nabeel Shahzad
adf8935d33 Change field types on flight_fare pivot table to string 2018-01-07 11:05:34 -06:00
Nabeel Shahzad
0495ff27cb Add fares and set prices on flights #125 2018-01-07 10:38:16 -06:00
Nabeel Shahzad
7e45291b27 Add pivot table for flight_fare to override fare #125 2018-01-07 09:19:46 -06:00
Nabeel Shahzad
c69e2c0cc8 Fix for subfleet add/remove on flight page #124 2018-01-07 08:58:57 -06:00
Nabeel Shahzad
94c0eb8502 Create wrapper around versioning library to update on builds 2018-01-06 17:00:47 -06:00
Nabeel Shahzad
d63f0ee2f8 Added /api/settings to retrieve all VA settings #120 2018-01-06 15:41:23 -06:00
Nabeel Shahzad
fbfefa4a3b Include subfleets in rank list 2018-01-06 15:23:35 -06:00
Nabeel Shahzad
082c33ae59 Add /api/flights to retrieve all flights paginated #120 2018-01-06 15:21:21 -06:00
Nabeel Shahzad
2de8d9ed64 Add /api/airlines and /api/airline/{id} #120 2018-01-06 15:13:33 -06:00
Nabeel Shahzad
46a411e27b Cleanup tests to automatically inject proper headers when needed 2018-01-06 12:07:22 -06:00
Nabeel Shahzad
60256ab213 Add route for getting the current hubs 2018-01-05 15:30:35 -06:00
Nabeel Shahzad
927be50d9b A bit more of a rudimentary id generator 2018-01-05 14:56:07 -06:00
Nabeel Shahzad
bf493623c7 Change how route is pulled from post and add another validation 2018-01-05 14:46:00 -06:00
Nabeel Shahzad
4ee6830181 Make sure the dpt airport is known before trying to parse the route 2018-01-05 14:33:22 -06:00
Nabeel Shahzad
5719971a13 Remove route parse from prefile 2018-01-05 14:21:45 -06:00
Nabeel Shahzad
2dd5d8cd5b Fix /acars/position route 2018-01-05 13:13:56 -06:00
Nabeel Shahzad
500cbb8e06 Add lookup for aircraft as /fleet/aircraft/{id} #120 2018-01-05 13:00:45 -06:00
Nabeel Shahzad
1ee9041058 Add /api/fleet to get subfleets and all the aircraft #120 2018-01-05 10:45:34 -06:00
Nabeel Shahzad
e931310dee Add /api/airports with pagination to return all the airports #120 2018-01-05 10:23:26 -06:00
Nabeel Shahzad
e04fa2e056 Do a cleanup of the state check 2018-01-04 23:31:57 -06:00
Nabeel Shahzad
8af0c30a18 Check hub values for state in create/update 2018-01-04 23:22:31 -06:00
Nabeel Shahzad
0dc1e6e9c4 Remove error status log 2018-01-04 23:16:52 -06:00
Nabeel Shahzad
dd629b2af8 Make sure arr_airport and dep_airport are included in PIREP prefile response #120 2018-01-04 21:21:51 -06:00
Nabeel Shahzad
c43eef6be2 Add some extra logging for the airport hub save 2018-01-04 21:07:23 -06:00
Nabeel Shahzad
db3c60987e Change tests to use generated user 2018-01-04 21:05:26 -06:00
Nabeel Shahzad
265fb235f2 Deny user API access if they're not ACTIVE #119 2018-01-04 20:50:57 -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
b0231ff2a9 Remove RestHelper Facade 2018-01-04 19:34:10 -06:00
Nabeel Shahzad
ab89fada83 Added supporting Resources and Helpers 2018-01-04 19:33:47 -06:00
Nabeel Shahzad
b62fa7757c Overhaul of ACARS/PIREP APIs 2018-01-04 19:33:23 -06:00
Nabeel Shahzad
0bb4ca78f5 Fix links on admin dashboard 2018-01-04 08:14:39 -06:00
Nabeel Shahzad
64734af419 Fix broken test/Airport model in boot 2018-01-03 22:28:17 -06:00
Nabeel Shahzad
676a310432 Add relationship to pull ACARS log messages 2018-01-03 22:19:06 -06:00
Nabeel Shahzad
8810f03c29 Add separate ACARS route to post log messages to the ACARS table 2018-01-03 22:16:18 -06:00
Nabeel Shahzad
81650f5c34 Added AcarsType::LOG 2018-01-03 22:10:56 -06:00
Nabeel Shahzad
fe4e200983 Trim ICAO/IATA names, clean up model fields 2018-01-03 22:04:51 -06:00
Nabeel Shahzad
507ce5f24f Add flights to the importer, added a few missing columns with output 2018-01-03 21:40:05 -06:00
Nabeel Shahzad
da1b3b16ee Add various units to settings 2018-01-03 21:35:03 -06:00
Nabeel Shahzad
61ea069481 Change setting name for pilot flight restriction; some cosmetics 2018-01-03 20:56:46 -06:00
Nabeel Shahzad
e5c34bc8af Change the PIREP accept/reject buttons 2018-01-03 20:39:24 -06:00
Nabeel Shahzad
1f1acb424c Fix flight time display on profile page 2018-01-03 20:11:06 -06:00
Nabeel Shahzad
80d68d6d14 search airports close #87 2018-01-03 20:07:34 -06:00
Nabeel Shahzad
1d74558abe pagination on the airports page #87 2018-01-03 20:03:39 -06:00
Nabeel Shahzad
f58f4fdc39 Fix the mapping logic in the importer; do some more cleanup there 2018-01-03 18:36:08 -06:00
Nabeel Shahzad
6181fb0388 rename to new_login_details 2018-01-03 15:47:29 -06:00
web541
08df20de19 Fixed a few field entries (#116)
* Stopped inheritance errors popping up

* Added fillable fields

These would not save otherwise.

* Added country fillable field

Wouldn’t save when importing from phpvms classic.

* Added more to classic importer

Change arguments to ask in terminal
Fixed table_prefix names in Importer.php

Added the ability to import users from phpvms classic (tested on
simpilot’s 5.5.x) and when importing, it will then reset the user’s
password to a temporary hash and then email it to the user to then
change when they first log in.

* Changes to ImporterService
2018-01-03 15:41:21 -06:00
Nabeel Shahzad
be6e5e8dec admin can add comments to PIREPs #70 2018-01-03 15:27:56 -06:00
Nabeel Shahzad
fce6c987fd Add some stats info for airlines and the stats table #108 2018-01-03 12:58:38 -06:00
Nabeel Shahzad
2394b8e419 Rename field to image_link and add field to edit #111 2018-01-03 12:47:12 -06:00
Nabeel Shahzad
4a5c11fc34 Add a DELETED state for PIREPs 2018-01-03 10:30:12 -06:00
Nabeel Shahzad
6f9e4d725b Add a PIREP cancel route via API #109 2018-01-03 10:25:55 -06:00
Nabeel Shahzad
162057f940 Filter out cancelled PIREPs 2018-01-03 09:54:32 -06:00
Nabeel Shahzad
8744a8b17b Add a CANCELLED state for PIREPs 2018-01-03 09:49:32 -06:00