Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Enhancement: Introduce Simultaneous Querying for Alarms with Deviation >= and <= in IHR API #48

@mohamedawnallah

Description

@mohamedawnallah

Problem

Currently, our system faces a slowdown issue due to the need for two network requests to fetch hegemony alarms with a deviation >= 20 and <= -20. Given the abundance of hegemony alarms, this process becomes inefficient. The existing IHR API cannot simultaneously query both deviation values, such as >= 20 and <= -20.

Feature Description

To address the inefficiency, a new feature needs to be implemented in the IHR API. This feature should enable the querying of both deviation values concurrently, for example, >= value1 and <= -value2. This enhancement aims to significantly improve the speed of retrieving hegemony alarms.

Additional Context

To better understand the current implementation, refer to the code snippet in ihr-website responsible for making two separate network requests to obtain hegemony alarms with deviation >= 20 and <= -20:
https://github.com/InternetHealthReport/ihr-website/blob/cae2f402dca4cb7efb74508c4bedc059a1186ae0/src/views/GlobalReport.vue#L182-L190

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions