Commit Graph

307 Commits

Author SHA1 Message Date
Nabeel Shahzad
45a22e26be Merge #154 Awards into dev 2018-03-17 00:03:17 -05:00
Nabeel Shahzad
067fb0f9f0 Implement events for cron expenses; add processing of daily/monthly expenses #136 2018-03-16 20:12:56 -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
c7925db0e7 Add field to charge an expense to a user #130 2018-03-06 17:15:42 -06:00
Nabeel Shahzad
dad923489b Set tags on transactions #130 2018-03-06 06:40:49 -06:00
Nabeel Shahzad
453ca5b180 Cleanup the transaction memos 2018-03-06 06:17:45 -06:00
Nabeel Shahzad
9d3953f3ac Refactor expenses; move finance service classes; add daily/monthly skeletons #130 #136 2018-03-05 22:49:42 -06:00
Nabeel Shahzad
db10ebf807 Add expenses on airports as well #130 #136 2018-03-05 22:10:00 -06:00
Nabeel Shahzad
88a8fd2bbd Remove subfleet_expenses and combine into main expenses table; select expense type on subfleet #130 #136 2018-03-05 21:24:49 -06:00
Nabeel Shahzad
505931736c Finance overview page added to admin with monthly breakdown #130 2018-03-05 19:55:48 -06:00
Nabeel Shahzad
53e4bf533f Add finance controller; morphable expense type so they can be applied to any model #130 2018-03-05 14:18:54 -06:00
Nabeel Shahzad
96e8fbfa78 Add subfleet specific expenses, fixed bug for pirep fares #130 #136 2018-03-05 12:21:38 -06:00
Nabeel Shahzad
2eb0f76f32 Fix sample data removing extra expenses #130 2018-03-02 17:52:20 -06:00
Nabeel Shahzad
9424bf7c46 Fix finding expenses call #130 2018-03-02 17:48:36 -06:00
Nabeel Shahzad
fa5237179b Remove balance field from user table #130 2018-03-02 17:31:58 -06:00
Nabeel Shahzad
586769fbf0 Fix tests and docs/better checks #130 2018-03-02 17:29:11 -06:00
Nabeel Shahzad
9d65515290 Add index of ref class+id #130 2018-03-02 13:15:18 -06:00
Nabeel Shahzad
607367feb2 Replace the ref_class_id 2018-03-02 13:14:20 -06:00
Nabeel Shahzad
9f89447070 Add pilot pay to journals; cleanup payment code #130 2018-03-02 13:12:39 -06:00
Nabeel Shahzad
92a18448eb YAML table exporter 2018-03-01 21:59:58 -06:00
Nabeel Shahzad
2c52a2f7e6 Post fares/expenses on PIREP to Airline journal #130 2018-03-01 16:20:13 -06:00
Nabeel Shahzad
f1b9ea94dc Use morphed column types 2018-03-01 09:51:48 -06:00
Nabeel Shahzad
498e795e4b Fixes and tests for the journal and journaled transactions #130 2018-02-28 21:52:36 -06:00
Nabeel Shahzad
1794549a20 Move journal transaction code to repository #130 2018-02-28 19:04:56 -06:00
Nabeel Shahzad
f557e9f965 Add ledger and journal tables #130 2018-02-28 18:01:32 -06:00
Nabeel Shahzad
3188f356eb Add setting for home airport restriction #104 2018-02-28 15:27:46 -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
97764866f2 Rename user_bids table to bids 2018-02-27 13:25:32 -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
abf47274a1 Cleanup some class names; move acars data into separate seed file 2018-02-22 09:31:07 -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
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
653711fa96 Change volume units to be in lbs/kg closes #193 2018-02-20 14:07:33 -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
5c58dfe1ae generate a hex code for an aircraft on creation #33 2018-02-12 20:58:23 -06:00
Nabeel Shahzad
ee71f4a1c8 Remove tail_number field from aircraft 2018-02-12 11:03:25 -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
a8e06c6cc6 base conversion classes for units #189 2018-02-10 21:16:32 -06:00
Nabeel Shahzad
8acb9291fe hide all cancelled pireps #180 2018-02-10 13:25:40 -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
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
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
1cc999a4f9 Change Airport tz field to timezone 2018-02-06 10:59:31 -06:00
Nabeel Shahzad
83d17ab2dd Shrink landing rate field size 2018-01-30 12:40:04 -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
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
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
c55b55726e Add distance and planned_distance to PIREP api 2018-01-29 16:27:55 -06:00
Nabeel Shahzad
cc40b7580a Shorten log length in tests #156 2018-01-29 15:09:29 -06:00
Servetas George
78724e981c Awards Administration 2018-01-28 21:19:35 +02:00
Nabeel Shahzad
653ff2a104 Major refactoring and cleanup of ACARS/Pirep API 2018-01-28 11:12:13 -06:00
Nabeel Shahzad
cd61c999e7 Cleanup default value field migrations; flight fields 2018-01-23 21:58:13 -06:00
Nabeel Shahzad
f9efa81bb4 Refactoring of PIREP submission and field code #146 2018-01-23 15:48:30 -06:00
Nabeel Shahzad
c732268bd7 Fix field label to 'Required' #148 2018-01-21 13:13:49 -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
7c70bb0971 add setting to disable user aircraft rank restriction #138 2018-01-19 12:46:30 -05:00
Nabeel Shahzad
e3bce1cd69 Track hours on aircraft #73 2018-01-11 22:00:39 -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
dce9723979 Set airport and landing time of aircraft after pirep accept #112 2018-01-10 12:39:13 -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
4eb5aeebed confirmation dialog and user wasn't getting saved #52 2018-01-08 16:35:52 -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
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
082c33ae59 Add /api/flights to retrieve all flights paginated #120 2018-01-06 15:21:21 -06:00
Nabeel Shahzad
927be50d9b A bit more of a rudimentary id generator 2018-01-05 14:56:07 -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
db3c60987e Change tests to use generated user 2018-01-04 21:05:26 -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
1f1acb424c Fix flight time display on profile page 2018-01-03 20:11:06 -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
162057f940 Filter out cancelled PIREPs 2018-01-03 09:54:32 -06:00
Nabeel Shahzad
a6ddecf159 Basic import logic and scaffolding #114 2018-01-02 21:00:46 -06:00
Nabeel Shahzad
da9d47513f Add sessions table for if DB is the session driver 2018-01-02 19:47:56 -06:00
Nabeel Shahzad
da4093b75f add sessions table migration for DB session driver 2018-01-02 18:23:21 -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
b0907504b6 Updates to settings code for creating the ID and setting the order 2018-01-02 11:42:26 -06:00
Nabeel Shahzad
93786835af get the generated IDs from the middle of the sha1 hash 2018-01-02 11:23:38 -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
37cdde845d Add order column to ACARS table for the order of the route points 2018-01-02 09:40:42 -06:00
Nabeel Shahzad
5cf0bbaa65 Clean up the GeoJSON generation code 2018-01-01 16:01:01 -06:00
Nabeel Shahzad
d1c626afe8 remove duplicate method calls 2018-01-01 15:04:32 -06:00
Nabeel Shahzad
b456dc1a71 Save PIREP route to ACARS data table #102 2018-01-01 13:48:02 -06:00
Nabeel Shahzad
078e26df57 Add AcarsType column and enum; save flight updates as FLIGHT_PATH #102 2018-01-01 10:30:31 -06:00
Nabeel Shahzad
6406f47aaa Fix up the PIREP field CRUD code 2017-12-31 20:59:26 -06:00
Nabeel Shahzad
948338d2b6 Change setting table ID to string, handle the converison of . to _ 2017-12-31 11:09:56 -06:00
Nabeel Shahzad
528a7c7440 allow marking of airport as hub and restrict to hubs at registration #86 2017-12-31 09:42:31 -06:00
Nabeel Shahzad
d943d9bbff Force flight number to be unique 2017-12-30 20:31:18 -06:00
Nabeel Shahzad
2323330444 Add a setting for the admin email and set an initial value after the install 2017-12-30 20:27:12 -06:00
Nabeel Shahzad
4a1d7c59fb added settings page in admin #93 2017-12-30 10:38:18 -06:00
Nabeel Shahzad
520751b151 Move seed data into separate file with importer; fix admin panel js being broken 2017-12-29 17:34:09 -06:00
Nabeel Shahzad
7cd4bf5ffb Add user setup to installer 2017-12-29 16:56:46 -06:00
Nabeel Shahzad
edca0644ff Add acars map page and show in-progress flights 2017-12-27 16:47:22 -06:00
Nabeel Shahzad
13eb1ace31 add extra airports and edit link 2017-12-27 09:57:41 -06:00
Nabeel Shahzad
a931435b42 cleanup PIREP api; file report via API 2017-12-26 14:54:28 -06:00
Nabeel Shahzad
0defa86f51 Add KBWI/KIAH to dev seeder airports 2017-12-26 14:04:37 -06:00
Nabeel Shahzad
9916444ca2 change field to in acars table 2017-12-25 18:22:46 -06:00
Nabeel Shahzad
f29a9cfdc5 some acars/tables fixes 2017-12-25 18:10:24 -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
3b8621371a show dates/times in user's timezone 2017-12-23 11:58:17 -06:00
Nabeel Shahzad
eb6e624a4d user dashboard shows real data 2017-12-23 11:17:29 -06:00
Nabeel Shahzad
1ebf2bd09c Don't allow login if user is pending or rejected; some refactoring of the registration code 2017-12-22 13:38:24 -06:00
Nabeel Shahzad
161623c85e Fixes for emails; send user registered/pending depending on state 2017-12-22 12:46:46 -06:00
Nabeel Shahzad
6c546b5094 Add flight route map; algorithm for picking from multiple nav points; some tests 2017-12-20 19:12:39 -06:00
Nabeel Shahzad
17093e9fe9 Import navigation data from Navigraph files 2017-12-20 16:34:52 -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
f2131093c4 Simple PIREP overview page (map not working atm) 2017-12-19 15:19:06 -06:00
Nabeel Shahzad
5bedbba2a7 use laratrust to replace entrust #78 2017-12-15 12:36:13 -06:00
Nabeel Shahzad
88e9acf9d9 rename migration to make room for moving the roles tables 2017-12-15 11:43:49 -06:00
Nabeel Shahzad
aed09c2bf5 Add explicit pilot states 2017-12-14 23:51:57 -06:00
Nabeel Shahzad
9d2ee0e7df More installer fixes, creation and seeding works 2017-12-14 21:59:54 -06:00
Nabeel Shahzad
a7318b851b Set some defaults for the cache and queue drivers in the installer 2017-12-14 17:12:42 -06:00
Nabeel Shahzad
aa57ab515f Reorganized folders to try to clean up the root folder a bit 2017-12-14 10:38:10 -06:00