You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thadguidry opened this issue
Apr 14, 2024
· 0 comments
Labels
4.0Specific to the new data processing architecture introduced in 4.0Type: BugIssues related to software defects or unexpected behavior, which require resolution.
Console error when changing a cells data type from Text to Date via Cell Edit button.
To Reproduce
Steps to reproduce the behavior:
First, click Edit Cell and type in a String such "2023-12-01" and click Apply button
Then, .click on Edit Cell and choose from it's dropdown to change to Data type: date
Finally, click Apply button
Current Results
The console immediately shows the following error (No Java stacktrace shows in Terminal log however):
project-bundle.js:46913 Uncaught RangeError: toString() radix argument must be between 2 and 36
at Number.toString (<anonymous>)
at HTMLButtonElement.commit (project-bundle.js:46913:21)
at HTMLButtonElement.dispatch (project-bundle.js:5147:27)
at elemData.handle (project-bundle.js:4951:28)
as shown:
If I try to use a partial format in the cell value, then I get a popup alert for "not a valid date." as shown:
If I try to use the full format as is recommended above the Cell Edit dialog, then I get the previous Console error as shown:
Expected Behavior
The cells' String value is converted to Date data type when the correct format is used.
I assume that when following the Steps to Reproduce, that a cell text value of "2023-12-01" would be good enough to convert to the Date data type?
But no format seems to be working.
If I use Edit Cell -> Common Transform -> to Date , then that method does seem to be working however.
So the issue is just likely somewhere in the Edit button on a Cell and perhaps the Javascript function or callbacks?
Screenshots
Versions
Operating System: Windows 11
Browser Version: Edge Latest
JRE or JDK Version: JDK 21
OpenRefine: 4.0 Snapshot
Datasets
Additional context
The text was updated successfully, but these errors were encountered:
thadguidry
added
Type: Bug
Issues related to software defects or unexpected behavior, which require resolution.
4.0
Specific to the new data processing architecture introduced in 4.0
labels
Apr 14, 2024
4.0Specific to the new data processing architecture introduced in 4.0Type: BugIssues related to software defects or unexpected behavior, which require resolution.
Console error when changing a cells data type from Text to Date via Cell Edit button.
To Reproduce
Steps to reproduce the behavior:
Data type: date
Current Results
as shown:
Expected Behavior
The cells' String value is converted to Date data type when the correct format is used.
I assume that when following the Steps to Reproduce, that a cell text value of "2023-12-01" would be good enough to convert to the Date data type?
But no format seems to be working.
If I use Edit Cell -> Common Transform -> to Date , then that method does seem to be working however.
So the issue is just likely somewhere in the Edit button on a Cell and perhaps the Javascript function or callbacks?
Screenshots
Versions
Datasets
Additional context
The text was updated successfully, but these errors were encountered: