Bug description
- Open CSV/Excel upload form
- File settings section
- Columns To Be Parsed as Dates
After changing CSV/Excel upload form there is no need to input column names separeted with comma. There is a drop down list for choosing columns. I suggest to remove the phrase "comma separated" and change the promp to "A list of columns that should be parsed as dates" or just "Select ..."
Screenshots/recordings
No response
Superset version
4.1.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
To update the prompt in the CSV/Excel upload form for "Columns To Be Parsed as Dates" to reflect the use of a dropdown list instead of requiring comma-separated column names, you need to modify the metadata
description of the column_dates
field in the superset/databases/schemas.py
file. The updated description should indicate the use of a dropdown list. Here is the relevant code snippet with the updated description:
column_dates = DelimitedListField(
fields.String(),
metadata={
"description": "[CSV and Excel only] Select column names from a dropdown list that should be "
"parsed as dates."
},
)
This change will update the prompt to better reflect the current functionality of the form [1].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
Comment From: rusackas
Sounds like an easy PR if anyone wants to open their first!