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

properly display django validation errors #140

Open
c0rydoras opened this issue Oct 31, 2023 · 2 comments
Open

properly display django validation errors #140

c0rydoras opened this issue Oct 31, 2023 · 2 comments
Assignees
Labels
feature This issue or pull request discusses a feature frontend This issue or pull request is frontend related
Milestone

Comments

@c0rydoras
Copy link
Collaborator

currently a validation error from the backend is not handled at all:
image

instead of that show the error somewhat like this:
image

@c0rydoras c0rydoras added frontend This issue or pull request is frontend related feature This issue or pull request discusses a feature labels Oct 31, 2023
@c0rydoras c0rydoras added this to the Outdated v1 milestone Oct 31, 2023
@c0rydoras c0rydoras self-assigned this Oct 31, 2023
@c0rydoras c0rydoras moved this to Todo in Outdated v1 Oct 31, 2023
@c0rydoras c0rydoras moved this from Todo to Getting planned in Outdated v1 Nov 3, 2023
@c0rydoras c0rydoras moved this from Getting planned to Todo in Outdated v1 Feb 20, 2024
@derrabauke
Copy link
Contributor

Had a similar issue today. Just wanted to add some new repo and could not finish without looking up the validation rules in the source code.

image

Would be nice to have a proper hint what form is expected.

@c0rydoras
Copy link
Collaborator Author

c0rydoras commented Jul 26, 2024

AFAICT this is frontend validation, regex

the .git is the issue iirc

  repo: [
    validatePresence({ presence: true, ignoreBlank: true }),
    validateLength({ max: 200 }),
    validateFormat({
      regex: /^([-_\w]+\.[-._\w]+)\/([-_\w]+)\/([-_\w]+)$/,
    }),
  ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue or pull request discusses a feature frontend This issue or pull request is frontend related
Projects
Status: Todo
Development

No branches or pull requests

2 participants