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

expose batchDuration as a configurable setting on sitewise source #128

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

boweihan
Copy link
Contributor

Overview

The ideal batch duration (timeframe in which requests are batched) observed by the sitewise source is highly dependent on factors such as dashboard configuration, widget configuration, browser performance, and latency. Batching by a single browser tick is fine as a default behaviour but needs to be customizable for the use-case.

This change exposes batchDuration as a setting on the sitewise source (and thus on app kit initialize). batchDuration accepts a numeric value representing the batching window in ms.

Documentation to follow.

Legal

This project is available under the Apache 2.0 License.

@@ -27,7 +27,10 @@ type IoTAppKitInitInputs =
registerDataSources?: boolean;
awsCredentials: Credentials | AWSCredentialsProvider<Credentials>;
awsRegion: string;
};
}
) & {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why intersection type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

figure it's better than writing it twice

@boweihan boweihan merged commit 01ac0a1 into awslabs:feature-batch Jun 20, 2022
TheEvilDev added a commit that referenced this pull request Nov 2, 2022
* Release 1.2.1 (#85)

* fix: unsubrscribe data provider on component updates

* Release 1.2.1

Co-authored-by: Norbert Nader <[email protected]>

* fix: resolves #83 (#87)

* fix: resolves #83

* Update index.ts

Co-authored-by: Norbert Nader <[email protected]>

* feat: improve documentation (#90)

* Run tests on pull request (#91)

* Update reference to code name (#86)

AWS-UI internal code name is mentioned in the readme.

Co-authored-by: Norbert Nader <[email protected]>

* feat: update synchro charts to 3.1.0, update docs (#92)

* feat: Improve documentation formatting (#93)

* feat: Improve resource explorer docs (#95)

* Update README.md (#94)

* feat: support fetchMostRecentBeforeStart (#79)

* Update documentation & make react-components easier to use (#98)

* Utilize lock file in CI (#99)

* build(deps): bump async from 2.6.3 to 2.6.4 (#100)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: support auto-assigning colors for certain components (#96)

* feat: support auto-assigning colors for certain components

* Update package.json

* Update cypress to v9, added stricted linting, fixed linting warnings and errors (#104)

* Add stylelint and enforce via global package.json (#106)

* use most recent synchro-charts version, 4.0.1 (#111)

* build(deps): bump eventsource from 1.1.0 to 1.1.1 (#116)

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](EventSource/eventsource@v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: expand children in resource explorer (#115)

* feat: expand children in resource explorer

* fix typo

* Fix asset module cache

* Add logic for fetching hierarchies

* Add tests

* Improve insert

* Fix linting

Co-authored-by: Norbert Nader <[email protected]>

* Update README.md (#121)

Fix test runner status badge

* Bump minor version (#120)

* specify react types package version to be 17 (#134)

Co-authored-by: Xinyi <[email protected]>

* build(deps): bump parse-url from 6.0.0 to 6.0.2 (#142)

Bumps [parse-url](https://github.com/IonicaBizau/parse-url) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/IonicaBizau/parse-url/releases)
- [Commits](https://github.com/IonicaBizau/parse-url/commits)

---
updated-dependencies:
- dependency-name: parse-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix: Development Quick Start Docs/Scripts (#148)

* add yarn bootstrap script to replace lerna bootstrap

* specify supported node and yarn engines

* simplify development docs and update build steps

Co-authored-by: Thomas Juranek <[email protected]>

* build(deps): bump moment from 2.29.2 to 2.29.4 (#149)

Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: update @testing-library/react to use create root (#151)

Co-authored-by: Norbert Nader <[email protected]>

* feat(props): adapt props for synchro-charts (#133)

* feat(props): adapt props for synchro-charts

* add testing for new props

* fix(tests): cleanup tests from devwork

* Update changelog

* update tests to wait for intercepts

Co-authored-by: Norbert Nader <[email protected]>

* feat: batch API for historical, aggregated, and latest value data (#137)

* fix: resolve float decimal precision issue on round() function. (#160)

* fix: update @testing-library/react to use create root

* fix: resolve float decimal precision issue on round() function.

* Simplify round() function. Remove managing the negative sign separately.

Co-authored-by: Norbert Nader <[email protected]>

* sync changes with private repo for common files (#150)

* sync changes with private repo for common files

* Revert "fix: update @testing-library/react to use create root (#151)"

This reverts commit 960f53f.

Co-authored-by: Xinyi <[email protected]>

* Update npm packages repository (#161)

* build(deps): bump terser from 4.8.0 to 4.8.1 (#168)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: Fix KPI docs and explain behavior of querying timer-series data when resolution is omitted

* bump synchro-charts/core version from v5 to v6 (#199)

Co-authored-by: Thomas Juranek <[email protected]>

* docs: Add coding guidelines

* organize coding guidelines into sections and reword items (#212)

sentance casing on headings

Co-authored-by: Thomas Juranek <[email protected]>

* feat(core)!: Refactor time series data module to  remove unused functionality. Add meta field to data stream.

BREAKING CHANGE: Refactored export from `@iot-app-kit/core` IoTAppKitDataModule to be named TimeSeriesDataModule, and removed the concept of multiple data sources per time series data module

* feat(core): Support caching of dataType, name and other fields describing dataStreams

* feat(core,source-iotsitewise)!: Change time series data modules getRequestsFromQueries to be async

Fix various eslint errors on existing code

* chore: remove unecessary template section

* build: npm workspaces (#231)

* feat(core): Add meta field to requestInfos in TimeSeriesDataModule

* build: npm publish with npm workspaces (#233)

* docs: add documentation for publishing new packages (#236)

* docs: add documentation around data sources and time series data

* feat(core): Add viewportManager to orchestrate viewport syncing within groups

* docs(core): Add documentation for viewportManager; export viewportManager from pkg

* feat: set up table package and add createTableItems method (#124)

- config typescript & rollup
- config jest
- config eslint
- add unit tests for createTableItems method
- updated .eslintrc.js at project root level

fix: update tsconfig path in eslintrc for Table package.

- remove unused variables.

fix: add tests for dataFilters.ts

- update descriptions for tests in createTableItems.spec.ts
- add one test case for getting data point from aggregated datastream

fix: remove unnecessary describe block

fix: use object to replace CellItem class
- add createCellItem function
- add unit tests for createCellItem
- rename SC_DataStream to SynchroChartsDataStream for better consistency

fix: remove unused import
- update createCellItem tests.

* feat(table): create new Table component based on AWSUI Table component (#129)

feat: add helper functions for

- iconUtils.tsx - copied from synchro-charts with changes.
- iconUtils.spec.ts - copied from synchro-charts with changes:
-- add one test cases, that color are provided, compared with the original.
- spinner.tsx - copied from synchro-charts with adjustments for React
- spinner.spec.tsx - copied from synchro-charts with adjustments for React

feat: add the main table component

fix: remove generic types for TableProps

fix: add size to loading spinner

fix: remove unnecessary TS compiler options

update a few things based on comments from PR.

Fix: remove full file eslint disable. Switch to minimal eslint disable.

* fix(table): fix an issue when key in columnDefinition doesn't exist in TableItems (#146)

fix: remove unused variables.

* feat!(component): replace table component in @iot-app-kit/components (#147)

* feat: Replace iot-table with new version.

* Update autogenerated types

* fix import

* another fix for import

* another fix for import

* Remove unused property for Iot.

* Fix a typo

* Code cleanups.

* Code cleanups.

* update type of `ColumnDefinition.formatter`

also added a few use cases in testing-ground.tsx

* update type of `ColumnDefinition.formatter`

also added a few use cases in testing-ground.tsx

* Update asset/property IDs and table examples.

* update: add formatter to filterOptions

Property filtering options now has the same displayed value as table.

* update formatPropertyFilterOptions function to better handle error & loading states.

* update test examples for table component.

* Disable Customized formatter for property filter options.

* update test cases after disabled formatter for filter options

* Remove unused dependency.

* a few bug fixes
- Split sorting and propertyFiltering
- Remove formatting on property filtering options.

* UI adjustment - center icon and string vertically.

* Update styles and unit tests

* Remove unused imports and statements.

* Reformat css file

* Restore testing ground

* chore(table): Merge changes from mainline and other changes: (#169)

* docs(table): update docs and add README.md (#165)

* Update docs. Add README.md for new table component.

* fix(table): add missing brackets. (#183)

* docs(table): update docs / major version bump for breaking changes.(#213)

* feat(table): support messageOverrides (#211)

* chore(table): add missing tests (#215)
- render correct data based on different viewports
- render spinner when a datastream is loading
- render error icon and message when a datastream in error state
- render icon and apply styles when it breaches thresholds

* docs(table): update docs / remove unnecessary jest configuration (#217)

* fix(components): move message merge to componentWillRender()

- clean git history and update doc
- removed unused method in `iot-react-table.tsx`

* build: add table to workspace

- updated docs
- export `dataFilters` from core and removed duplications from table.
- update npm-publish.yml
- update table styles
- iot-table: watch messageOverrides for changes

* docs(table): revert version bumps and doc changes.

* chore: update changelogs & docs / major version bumps to 2.0.0

* fix(components): import missing CSS style sheets.

* doc: update link in Coding Guidelines

* feat(TwinMaker): Add TwinMaker packages (#252)

* build(deps): bump scss-tokenizer from 0.3.0 to 0.4.3

Bumps [scss-tokenizer](https://github.com/sasstools/scss-tokenizer) from 0.3.0 to 0.4.3.
- [Release notes](https://github.com/sasstools/scss-tokenizer/releases)
- [Commits](sasstools/scss-tokenizer@v0.3.0...v0.4.3)

---
updated-dependencies:
- dependency-name: scss-tokenizer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* doc(TwinMaker): update TwinMaker docs and link them to the main doc (#256)

* chore: update changelogs & version bump (#257)

* chore(components): reduce concurrent workers in testing

* Fixes the Camera Component Editor for Lens and Clipping planes updates when changing between cameras (#263)

* chore(examples): easier linking for iot-app-kit packages (#265)

* feat(components): support viewport grouping in iot-table using ViewportManager.

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Norbert Nader <[email protected]>
Co-authored-by: Norbert Nader <[email protected]>
Co-authored-by: db <[email protected]>
Co-authored-by: Mitchell Lee <[email protected]>
Co-authored-by: Bowei Han <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Xinyi Xu <[email protected]>
Co-authored-by: Xinyi <[email protected]>
Co-authored-by: Thomas Juranek <[email protected]>
Co-authored-by: Thomas Juranek <[email protected]>
Co-authored-by: Xiao(Bill) Li <[email protected]>
Co-authored-by: jmbuss <[email protected]>
Co-authored-by: Brian Diehr <[email protected]>
Co-authored-by: Jonathan Wills <[email protected]>
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.

2 participants