Skip to content

bug: sanctions panel ignores timeRange filter — newEntryCount always 0 #2437

@rayanhabib07

Description

@rayanhabib07

Variant

worldmonitor.app (Full / Geopolitical)

Affected area

Market Radar / Crypto

Bug description

Summary

The sanctions pressure panel does not pass the timeRange parameter to the API, causing all time-sensitive metrics to be incorrect.

Bug

The URL contains timeRange=7d but the API call is:

/api/sanctions/v1/list-sanctions-pressure?max_items=30

No timeRange param is passed. As a result:

  • newEntryCount is always 0 because it compares against the dataset date (March 27) instead of the user's selected window
  • Vessels, aircraft, and countries counts also ignore the timeRange filter

Environment

  • Tested on worldmonitor.app

Steps to reproduce

Steps to Reproduce

  1. Open the sanctions panel
  2. Set timeRange to 7d
  3. Observe "New: 0" despite entries existing within that window
  4. Inspect the network request — no timeRange param in the API call

Expected behavior

The API call should include the timeRange parameter and newEntryCount should reflect entries added within the selected window.

Screenshots / Console errors

No response

Browser & OS

Chrome 120 OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions