code4romania / code4romania/paul

No error shown when introducing a decimal number into a whole number type column

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
Python
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
While introducing a decimal value into a whole number column (nr intreg) there is no error shown. Although the final result is displayed as a whole number, you can add multiple identical values into a column that should be unique. For example 89.01, 89.4 and 89 will be displayed as the same number 89, as can be seen in the screenshot.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to manage tables
2. Click on Edit
3. Add unique column, of type whole number
4. Click on add a new entry
5. on the new column add a decimal number like for example 23.2
6. no error is received
7. Click on add a new entry
8. on the new column add a decimal number like for example 23.4

**Screenshots**
![image](https://github.com/code4romania/paul/assets/56204138/06448eca-e515-4771-9a89-235662328adf)

**Desktop (please complete the following information):**
- OS: [Windows]
- Browser [chrome]
- Version [119]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.