Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Cell Edit button to change String to Date data type gives Uncaught RangeError #6534

Open
thadguidry opened this issue Apr 14, 2024 · 0 comments
Labels
4.0 Specific to the new data processing architecture introduced in 4.0 Type: Bug Issues related to software defects or unexpected behavior, which require resolution.

Comments

@thadguidry
Copy link
Member

Console error when changing a cells data type from Text to Date via Cell Edit button.

To Reproduce

Steps to reproduce the behavior:

  1. First, click Edit Cell and type in a String such "2023-12-01" and click Apply button
  2. Then, .click on Edit Cell and choose from it's dropdown to change to Data type: date
  3. Finally, click Apply button

Current Results

  1. 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:
image

  1. 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:

image

  1. 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:

image

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

@thadguidry 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 Specific to the new data processing architecture introduced in 4.0 Type: Bug Issues related to software defects or unexpected behavior, which require resolution.
Projects
None yet
Development

No branches or pull requests

1 participant