Voyage.status tells us the status of a trip. It has three different statuses, planned, completed, cancelled.
Make so that once time.now > departure.datetime for the voyage, the status can be flipped automatically to completed.
This will later on be picked up by the widget. If a voyage is completed, the widget could automatically just be hidden, and not accepting any new intents (since it's an old trip). Or some other functionalities.
Note that this task may need some digging, since easiest may be to have a service running in the background, that it triggered for example once an hour, checks through all planned voyages, if time.now > departure.datetime, it flips the status.
Alternatively some rule in the database, that automatically flips it.
To be researched and implemented and a short documentation underneath for future use, if we have similar problem in some other area.
Voyage.status tells us the status of a trip. It has three different statuses, planned, completed, cancelled.
Make so that once time.now > departure.datetime for the voyage, the status can be flipped automatically to completed.
This will later on be picked up by the widget. If a voyage is completed, the widget could automatically just be hidden, and not accepting any new intents (since it's an old trip). Or some other functionalities.
Note that this task may need some digging, since easiest may be to have a service running in the background, that it triggered for example once an hour, checks through all planned voyages, if time.now > departure.datetime, it flips the status.
Alternatively some rule in the database, that automatically flips it.
To be researched and implemented and a short documentation underneath for future use, if we have similar problem in some other area.