Skip to content

Validate host and target fields on firewall rules #2187

Closed

Description

@charliepark

image

image

If we validate these on the client, they will not hit the API and the user will not have to figure out what these API error messages mean. Note that validating host and target depends on the type selected in the dropdown. The validate function will have to look at the selected type to decide which validation to run. Ideally, changing the type will re-run validation on the value field (I don't think it will work this way by default).

Activity

  1. david-crespo commented on Apr 23, 2024

    @david-crespo
    Collaborator

    These are API errors, so there's not that much we can do about them, or at least, if we were going to spend time getting elaborate client-side it would be better spent on the API side so all clients can benefit.

  2. david-crespo commented on Apr 23, 2024

    @david-crespo
    Collaborator

    Actually.... the reason this gets to be an API error is because we fail to catch it in client-side validation in the form. So we can probably improve that.

  3. modified the milestone: 8 on Apr 23, 2024
  4. david-crespo commented on Apr 24, 2024

    @david-crespo
    Collaborator

    Thinking more about this, the validation problem is lessened if we're using comboboxes to pick the VPC, subnet, or instance names (#2065), but because we will not be constraining those fields to values that already exist (the lists are just there to help), we will still have the validation problem.

  5. changed the title [-]Improve copy on form validation errors[/-] [+]Validate host and target fields on firewall rules[/+] on Apr 24, 2024
  6. charliepark commented on Jun 16, 2025

    @charliepark
    ContributorAuthor

    Closing this, as we added a number of client-side validation improvements when moving over to comboboxes for firewall rules. All of the examples in the above screenshots are covered by current client-side validations.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions