NokiaTube | New address | Mode Phone | On high quality
Skip to content

Timeline: activities from different sources in the same second aren't listed newest first #585

Open

Description

@adeelahmad

Seen while writing the automations journey test (M12): an email arrives, an automation runs on it and an approval is decided, all within one second. GET /api/v1/activities then lists them as email, automation.ran, approval.waiting, approval.decided, which is oldest first, though the timeline is meant to be newest first.

Likely cause (not confirmed): sources stamp published to the second, and ties across sources fall back to source name and id (events._order does this for followers, oldest first), so the order within a second is arbitrary rather than causal.

Possible fix: break ties by lens.cause depth (an effect after its cause), or keep sub-second times where the source has them.

The journey test checks activities by id rather than by order for now.

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