Skip to content

Automatically update voyage.status #70

Description

@JonBacc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions