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

feat: error handling/data-module core #7

Closed
wants to merge 2 commits into from
Closed

Conversation

diehbria
Copy link
Contributor

Issue #, if available:

Description of changes:
The major work in this PR will be the error handling, restructuring the core data module, the subscription store, and the request handler.

With this PR, errors will no longer re-request every 5 seconds for all properties (no longer spamming the backend w/ 403s), and subscribers to data-module will only have messages emitted to them when the information being emitted is different than previously.

  • Prevent data streams with associated errors from re-requesting over
    and over
  • Refactor subscription store to utilize RXJS to broadcast subscription
    updates to subscribers
  • Update types on @iot-app-kit/components to be any query
  • Remove unused dependency on redux-thunk
  • Up required code coverage targets

Testing:

lerna success run Ran npm script 'test' in 2 packages in 62.9s:
lerna success - @iot-app-kit/components
lerna success - @iot-app-kit/core
✨  Done in 63.78s.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

 * Prevent data streams with associated errors from re-requesting over
  and over
 * Refactor subscription store to utilize RXJS to broadcast subscription
  updates to subscribers
 * Update types on @iot-app-kit/components to be any query
 * Remove unused dependency on redux-thunk
 * Up required code coverage targets
@diehbria diehbria added the enhancement New feature or request label Nov 19, 2021
NorbertNader
NorbertNader previously approved these changes Nov 22, 2021
@NorbertNader
Copy link
Contributor

This is awesome work! Just had some clarifying questions.

@diehbria diehbria marked this pull request as draft November 23, 2021 04:28
@diehbria diehbria closed this Nov 23, 2021
@diehbria diehbria deleted the iot-app-kit-core-work branch May 5, 2022 16:27
sheilaXu pushed a commit that referenced this pull request Sep 23, 2022
* Release 1.2.1 (#85)

* fix: unsubrscribe data provider on component updates

* Release 1.2.1

Co-authored-by: Norbert Nader <nnader@amazon.com>

* fix: resolves #83 (#87)

* fix: resolves #83

* Update index.ts

Co-authored-by: Norbert Nader <nnader@amazon.com>

* 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 <Norbert.Nader@gmail.com>

* 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)

Co-authored-by: Norbert Nader <Norbert.Nader@gmail.com>
Co-authored-by: Norbert Nader <nnader@amazon.com>
Co-authored-by: db <77755322+diehbria@users.noreply.github.com>
Co-authored-by: Mitchell Lee <mitch@evildev.net>
Co-authored-by: Bowei Han <boweih@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants