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

Create a Data Logger dialog can present incorrect errors #4592

Open
axelstudios opened this issue Mar 27, 2024 · 0 comments
Open

Create a Data Logger dialog can present incorrect errors #4592

axelstudios opened this issue Mar 27, 2024 · 0 comments
Labels

Comments

@axelstudios
Copy link
Member

axelstudios commented Mar 27, 2024

Describe the bug
Create a Data Logger dialog has multiple required inputs, but returns incorrect errors if those fields don't have values.

For instance, if you attempt to submit only a name, the returned error is that the name isn't unique even if it actually is (the real error in this case is null value in column "location_description" violates not-null constraint).

If you then submit a value for the Location Description, the next suppressed error is null value in column "identifier" violates not-null constraint.

Expected Behavior
When submitting form inputs, errors should be reported accurately, and the form should not allow submission without values in the three required fields:

  • Display Name
  • Datalogger ID
  • Location Description

Actual Behavior
image

Steps to Reproduce

  1. Go to the Sensors page for a property
  2. Attempt to create a data logger given only a unique name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Review
Development

No branches or pull requests

1 participant