phpvms icon indicating copy to clipboard operation
phpvms copied to clipboard

Add the possibility to reserve an aircraft without creating a simbrief ofp

Open Sebastiano1412 opened this issue 3 years ago • 4 comments

Describe the solution you'd like I would like to have the possibility to allow pilots to be able to reserve an aircraft without necessarily having to create a briefing with simbrief

Describe alternatives you've considered Another solution could be to allow the administrators to reserve the aircraft for a specific pilot from the management page of each aircraft, so that only he can use that aircraft until the administrator releases it.

Sebastiano1412 avatar Feb 09 '22 16:02 Sebastiano1412

Possible duplicate of #1135

Personal thoughts;

First part is ok, it would be nice to tie an aircraft to the bid system. When a bid is placed, aircraft selection window opens and if the pilot wants he/she then can select a plane for the flight. It will be reserved as long as the bid is valid (admin settings) and both flight and the aircraft will be available if the bid gets deleted (by cron or by sending a pirep for it etc)

Alternative is not applicable, admins should not interfere with user planes and/or assigning them or releasing them manually. It may be ok for a small airline or a group of friends flying together but it will be a pain for 100+ members and lots of planes.

FatihKoz avatar Feb 10 '22 15:02 FatihKoz

Bids should expire after x hours, that should release the aircraft

nabeelio avatar Feb 10 '22 16:02 nabeelio

Possible duplicate of #1135

Personal thoughts;

First part is ok, it would be nice to tie an aircraft to the bid system. When a bid is placed, aircraft selection window opens and if the pilot wants he/she then can select a plane for the flight. It will be reserved as long as the bid is valid (admin settings) and both flight and the aircraft will be available if the bid gets deleted (by cron or by sending a pirep for it etc)

Alternative is not applicable, admins should not interfere with user planes and/or assigning them or releasing them manually. It may be ok for a small airline or a group of friends flying together but it will be a pain for 100+ members and lots of planes.

If is possible to create the first part it would be perfect. The second is only a second idea, but the first is better.

Bids should expire after x hours, that should release the aircraft

Exactly

Sebastiano1412 avatar Feb 10 '22 16:02 Sebastiano1412

Bids should expire after x hours, that should release the aircraft

What I can think of;

  • Have an aircraft_id field at bids table and a relationship at model level
  • When the bid button is clicked, forward the pilot to aircraft selection page (like the one we have for simbrief)
  • Select aircraft (with the ability to leave it not selected)
  • Save the bid

or

  • Have an aircraft_id field at bids table and a relationship at model level
  • When the bid button is clicked, save the bid (no change to current logic)
  • Forward the pilot to aircraft selection page (like the one we have for simbrief)
  • Select aircraft
  • Update the bid or just continue without selection

For both solutions above, we should check the aircraft_id when going to simbrief form and pass the info to bypass its own selection dialog.

And for "blocking" the aircraft we can use the same logic we have for simbrief, a count in the query returning > 0 will be enough to block the aircraft (remove it from dropdowns, not allowing acars direct selection and start etc).

For both there will be no changes needed for the cron or bid expire settings, currently deleting/removing the bid works fine and when it drops aircraft will be released too.

Personally, I would love to have the aircraft selections in a modal window (not as a complete new page) but it will be tricky and may be too template (& bootstrap) dependent, needs javascript or jquery etc to properly load when clicked etc (honestly I do not like them that much).

Edit; We can control the blockage of aircraft with bids by a setting, if that setting is enabled the forwarding logic gets executed, if not all works like it is now.

FatihKoz avatar Feb 10 '22 17:02 FatihKoz