8000 Notifier logging by etpinard · Pull Request #4464 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content
  • Insights
  • 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
    Contribu 8000 tor 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

    5 participants

    0