code4romania / code4romania/paul
No warning/error appears when importing a CSV with multiple columns with the same name
- Dominant language
- Python
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
When trying to upload a CSV with multiple columns using the same name, the table is created with all the columns up to the second same-named column. An error is displayed, but it doesn't help the user figure out what happened.
**Expected:**
1. A user tries to upload a table that has two columns named "phone"
2. When pressing continue, the two identical columns are highlighted
**Actual:**
1. A user tries to upload a table that has two columns named "phone"
2. When pressing continue, an error is displayed: `Something went wrong`
- in the background, the table has been created
- the new table has all the columns up to the second same-named column
4. When pressing continue a second time, a different error is displayed: `This table name is already being used`
Sample CSV: [sample.csv](https://github.com/code4romania/paul/files/12258879/sample.csv)
Screenshot of the first press of `Continue`:

Screenshot of the second press of `Continue`:

Screenshot of the table structure:

Contributor guide
Assessment
This issue has not been assessed yet.