developmentseed / developmentseed/osm-teams

Silent failure on form post error / no form validation

Open
#161 1 comment 0 reactions 0 assignees View on GitHub
Category: Design Identity and UI Type: Bug
Dominant language
JavaScript
Stars
29
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Go to http://localhost:8989/teams/create

- Enter for the description:

> Proin eget dolor in dui congue volutpat et at erat. Curabitur nec ex vitae ante consectetur luctus eget eget dolor. Fusce luctus quam blandit arcu congue, eu dictum tortor tempor. Donec rhoncus purus lacus, sit amet aliquam neque congue eu. Morbi consequat in augue a suscipit. Donec tempor ullamcorper lorem vitae blandit. Pellentesque massa lacus, molestie vel tristique nec, auctor consectetur mi. Cras id lacinia est.

- Hit submit

- It silently fails. the UI should do two things 1) do client-side form validation for all the form fields 2) detect the server error (http 400 in this case) display an error dialog showing went wrong.

The docker log has:

```
{ error: value too long for type character varying(255)
teams_1 | at Connection.parseE (/usr/src/app/node_modules/pg/lib/connection.js:602:11)
teams_1 | at Connection.parseMessage (/usr/src/app/node_modules/pg/lib/connection.js:399:19)
teams_1 | at Socket. (/usr/src/app/node_modules/pg/lib/connection.js:121:22)
teams_1 | at emitOne (events.js:116:13)
teams_1 | at Socket.emit (events.js:211:7)
teams_1 | at addChunk (_stream_readable.js:263:12)
teams_1 | at readableAddChunk (_stream_readable.js:250:11)
teams_1 | at Socket.Readable.push (_stream_readable.js:208:10)
teams_1 | at TCP.onread (net.js:601:20)
...
```

Relates to #105

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.