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

[Enhancement] Show an error notification for errors in deck #1373

Merged
merged 7 commits into from Jan 6, 2021

Conversation

igorDykhta
Copy link
Collaborator

@igorDykhta igorDykhta commented Dec 10, 2020

  • custom _onDeckError handler in map-container with error throttling to prevent multiple similar errors from appearing.
  • additional logic for addNotification to update existing notifications.

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

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

LGTM though I am not kepler approver.

src/components/map-container.js Outdated Show resolved Hide resolved
src/constants/default-settings.js Outdated Show resolved Hide resolved
Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
src/reducers/ui-state-updaters.js Outdated Show resolved Hide resolved
src/components/map-container.js Outdated Show resolved Hide resolved
@@ -251,6 +256,28 @@ export default function MapContainerFactory(MapPopover, MapControl, Editor) {
setLayerBlending(gl, this.props.layerBlending);
};

_onError = (error, layer) => {
const errorMessage = `An error in deck.gl: ${error.message} in ${layer.id}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Will error from deck.gl always have a message?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question.

Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
@igorDykhta igorDykhta force-pushed the igor/on-error-handler-for-deck branch from 3e4019f to 412c4c7 Compare January 6, 2021 16:16
Signed-off-by: Igor Dykhta <dikhta.igor@gmail.com>
@igorDykhta igorDykhta force-pushed the igor/on-error-handler-for-deck branch from ebee7bc to 38c5a8f Compare January 6, 2021 18:57
@igorDykhta igorDykhta marked this pull request as ready for review January 6, 2021 20:58
@igorDykhta igorDykhta merged commit fa6deff into master Jan 6, 2021
@delete-merged-branch delete-merged-branch bot deleted the igor/on-error-handler-for-deck branch January 6, 2021 21:13
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.

None yet

4 participants