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: sitewise source time series module #71

Merged
merged 1 commit into from
Feb 28, 2022
Merged

fix: sitewise source time series module #71

merged 1 commit into from
Feb 28, 2022

Conversation

diehbria
Copy link
Contributor

@diehbria diehbria commented Feb 28, 2022

Overview

  • fix how start and end date are passed into the data cache layer - previously the full requested range was passed into the onsuccess on every call, which was incorrectly caching data that wasn't present
  • fix caching for 'fetchMostRecentBeforeEnd'
  • bump synchrocharts to 3.0.0
  • fix bug in how determine resolution worked
  • gutted out source-iotsitewise source which was duplicating work done in the logic to create the requestInformations

Legal

This project is available under the Apache 2.0 License.

NorbertNader
NorbertNader previously approved these changes Feb 28, 2022
date: Date;
onError: ErrorCallback;
onSuccess: OnSuccessCallback;
}): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

is Promise the correct return signature?

Copy link
Contributor Author

@diehbria diehbria Feb 28, 2022

Choose a reason for hiding this comment

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

it resolves when the entire request is done. It gives you a way to know, and wait for it to be done, without wrapped it with a promise and doing a bunch of work to get the same end result

@diehbria diehbria force-pushed the fix-iot-app-kit branch 2 times, most recently from e485ca9 to e4bebad Compare February 28, 2022 18:47
gareth-amazon
gareth-amazon previously approved these changes Feb 28, 2022
},
],
}),
]}
/>
</div>
</div>
resolution:{' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove the resolution controls in the demo?

boweihan
boweihan previously approved these changes Feb 28, 2022
@NorbertNader NorbertNader self-requested a review February 28, 2022 19:12
NorbertNader
NorbertNader previously approved these changes Feb 28, 2022
@diehbria diehbria merged commit 998d59f into main Feb 28, 2022
@diehbria diehbria deleted the fix-iot-app-kit branch February 28, 2022 19:58
sheilaXu pushed a commit that referenced this pull request Sep 23, 2022
TheEvilDev pushed a commit that referenced this pull request Nov 2, 2022
This was referenced Nov 2, 2022
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.

4 participants