-
Notifications
You must be signed in to change notification settings - Fork 0
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
MARP-637: Cells with "wrong" numbers should not be reconized as numbers #59
MARP-637: Cells with "wrong" numbers should not be reconized as numbers #59
Conversation
77d2093
to
fa0d78a
Compare
fa0d78a
to
731aa5a
Compare
excel-importer/src/com/axonivy/util/excel/importer/ExcelReader.java
Outdated
Show resolved
Hide resolved
excel-importer/src/com/axonivy/util/excel/importer/ExcelReader.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @ivy-rew , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please cover the new functionality with tests;
No, I disagree ... that doesn't look good to me. @ntqdinh-axonivy there are several reasons why such changes should come with a test:
|
Thank you for your feedback. I'll update the test soon |
cde1341
to
c735e7d
Compare
Hi @ivy-rew , |
new Column("Wrong number format with dot should be String", String.class, 255), | ||
new Column("Wrong number format with comma should be String", String.class, 255), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check with @ivy-sgi if we really got the customers requirements right; I think numbers that excel treat as numbers, should be numeric in ivy as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I see, the customers sample file doesn't match the expectations written in prose. And I agree with you on the left/right alignment. Please check the customers file and you will see exactly such numbers as in your example ... but not left aligned ... as these are numbers.
I think we should cover the customers example sheet in a anonymized way: in his example, he has such numbers which are recognized as being 'numeric' by excel. And IMHO these numeric values should remain numeric in ivy too. Otherwise that feature request may makes sense to one customer, but not to the rest of the world.
🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the tests for 2 cases.
- Column contains texts that look like numbers but in incorrect format should be determined as String
- Column contains both text and numeric values should be determined as String
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update; the intention is now very clear.
It seems like libre-office calc, made me think that these "incorrect numbers" are totally normal normal numeric values. However; if I try to use them in a function they do not work as numbers ... so I finally understood the problem and agree on the direction to go 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedbacks
No description provided.