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

Notifier logging #4464

Merged
merged 6 commits into from
Jan 6, 2020
Merged

Notifier logging #4464

merged 6 commits into from
Jan 6, 2020

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Jan 6, 2020

resolves #4098 by implementing what was proposed in #4098 (comment)

Demos:

Updated in #4464 (comment)


I kept the config option name onGraphLogging to start this PR. The name notifyOnWarnings has also been proposed, but since the same config option applies to both "logs" and "warnings", maybe we could do better. Please let me know if you can think of a better option name or if you think notifyOnWarnings is the way to go.

@archmoj @nicolaskruchten

- set valType to 'integer'
- set min and max
- add option to notifier such that it stays on-graph
  w/o fading out
- within lib/loggers, call notifier with log/warn/error messages
... so that the error message can show up on the graph when
    the onGraphLogging config option is turned on.
@etpinard etpinard added this to the v1.52.0 milestone Jan 6, 2020
@nicolaskruchten
Copy link
Contributor

notifyOnLogging ?

@nicolaskruchten
Copy link
Contributor

logToNotifications ?

@archmoj
Copy link
Contributor

archmoj commented Jan 6, 2020

viewAlert ?

@etpinard
Copy link
Contributor Author

etpinard commented Jan 6, 2020

notifyOnLogging

I'm a fan of this. Is everyone in @plotly/plotly_js ok with this?

@antoinerg
Copy link
Contributor

notifyOnLogging

I'm a fan of this. Is everyone in @plotly/plotly_js ok with this?

I'm fine with it.

@archmoj
Copy link
Contributor

archmoj commented Jan 6, 2020

@etpinard this PR is ready to 💃
Would you please update the codepens as well as description using the final attribute name?
Thank you in advance!

@etpinard
Copy link
Contributor Author

etpinard commented Jan 6, 2020

New demos with notifyOnLogging:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On-figure error for mapbox-token-related problems
4 participants