Skip to content

When a new visit is pushed from the mercure hub, append to visits page only if it fulfils date filtering #252

@acelaya

Description

@acelaya

Shlink web client version

  • Version: 2.5.0
  • How do you use shlink-web-client: All

Summary

When a visit is pushed from the mercure hub and the visits page for the short URL is open, it always gets appended to the list of visits, even if there's currently a date filtering in place which os not fulfilled by that new visit.

Current behavior

The new visit is always appended

Expected behavior

The visit is only appended if the constraints are fulfilled.

How to reproduce

Filter by setting a past date on the "until" filed, and then visit the short URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions