Skip to content

Connector creation - improve error messaging from server #54386

Description

@peterschretlen

(Review feedback from docs team on the connectors UI)

#48959 adds a connector creation flyout where you fill a form, and submitting it calls the create action API. We display server-side validation errors, but the messaging is not always clear.

Here are two specific examples:

Example 1: webhook
image

Example 2: email
image

  1. Is there a way to make these messages easier to read/understand to the user? Both are very
    verbose, and the problem is not made clear.

    • In the case of the email action, erhaps this validation could be done client-side.
    • For the webhook action, could we link to xpack.actions.whitelistedHosts documentation about the whitelisting setting (this page)?
  2. All the error messages should start with capital E - "Error validating..."

Activity

  1. elasticmachine commented on Jan 9, 2020

    @elasticmachine
    Contributor

    Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

  2. mikecote commented on Dec 30, 2020

    @mikecote
    Contributor

    Moving from 7.12 - Candidates to 7.x - Candidates.

  3. mikecote commented on Feb 4, 2021

    @mikecote
    Contributor

    Moving from 7.x - Candidates to 8.x - Candidates (Backlog) after the latest 7.x planning session.

  4. pmuellr commented on Apr 23, 2021

    @pmuellr
    Contributor

    The messages from config-schema can get overly wordy. We're really in need of a better solution for JS data validation, as config-schema is only intended for validating Kibana config values into TS-typed objects. It has a number of downsides including the types generated are read-only, so can't be reused for cases where we want construct data of the same shape to pass somewhere else (eg, tests). It also can cause issues if the validated objects are re-validated - durations turn into objects which when passed through the same validation again will fail.

    I don't think there's much use in trying to "fix" anything here - except perhaps extremely annoying messages that we see frequently - since we really need to replace what we're using. For those extremely annoying messages, we can provide custom validate methods which produce nicer messages than config-schema does.

    Leaving this open though, as I suspect we may get questions about the error messages in the future, and can point them here.

  5. added
    connectivityIssues relating to connectivity between Kibana and external services
    estimate:smallSmall Estimated Level of Effort
    on Aug 13, 2021
  6. mikecote commented on Jun 24, 2022

    @mikecote
    Contributor

    Closing as no longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:ActionsFeature:Actions/ConnectorsManagementIssues related to Connectors Management UXTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//UXconnectivityIssues relating to connectivity between Kibana and external servicesestimate:smallSmall Estimated Level of Effort

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions