Skip to content

fix: prevent invalid time range query when times parameter is missing#59

Merged
Nimbus318 merged 1 commit into
Project-HAMi:mainfrom
Shenhan11:fix/range-vector-invalid-time-range
Nov 27, 2025
Merged

fix: prevent invalid time range query when times parameter is missing#59
Nimbus318 merged 1 commit into
Project-HAMi:mainfrom
Shenhan11:fix/range-vector-invalid-time-range

Conversation

@Shenhan11

Copy link
Copy Markdown
Contributor

No description provided.

Add validation check before calling getRangeVector in fetchInstantData
to ensure times parameter exists and contains valid start/end values.
This prevents API calls with identical start and end times (0 second range)
when useInstantVector is called without the times parameter.

Signed-off-by: Shenhan11 <1670285296@qq.com>
@hami-robot

hami-robot Bot commented Nov 27, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Shenhan11

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Nimbus318
Nimbus318 merged commit ddf781c into Project-HAMi:main Nov 27, 2025
7 of 8 checks passed
@Shenhan11
Shenhan11 deleted the fix/range-vector-invalid-time-range branch November 28, 2025 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants