Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed unsupported time ordering from interpolated query; cache… #323

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

chejimmy
Copy link
Collaborator

@chejimmy chejimmy commented Jun 12, 2024

… id of aggregates

What this PR does / why we need it:

  • this PR fixes issues by
    • removed unsupported time ordering from interpolated query
    • cache id of aggregates
  • see issues descriptions below

Which issue(s) this PR fixes:

  1. interpolated query should not support time ordering, see related API https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetInterpolatedAssetPropertyValues.html
  2. cache id logic was not caching aggregates

@chejimmy chejimmy marked this pull request as ready for review June 12, 2024 20:20
@chejimmy chejimmy requested a review from a team as a code owner June 12, 2024 20:20
@chejimmy chejimmy requested review from idastambuk and kevinwcyu and removed request for a team June 12, 2024 20:20
@sarahzinger sarahzinger self-requested a review June 12, 2024 20:31
@chejimmy chejimmy force-pushed the fix-time-order branch 2 times, most recently from e303457 to 5072066 Compare June 12, 2024 22:32
Copy link
Member

@sarahzinger sarahzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One stylistic suggestion, but I'm also ok with us doing this at another time.

Ran the e2e tests in a separate draft: #324 and it all passed. Going to merge.

@@ -83,6 +79,44 @@ export class QualityAndOrderRow extends PureComponent<Props> {
onChange({ ...query, maxPageAggregations: +event.currentTarget.value });
};

timeOrderField = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we want to break this into it's own function, I think it might make sense to create a separate functional component for this.

@sarahzinger sarahzinger merged commit 54b3cd5 into grafana:main Jun 13, 2024
4 of 7 checks passed
@chejimmy chejimmy deleted the fix-time-order branch January 23, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants