-
Notifications
You must be signed in to change notification settings - Fork 236
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
N°7216 import improves error handling missing or null data #612
base: develop
Are you sure you want to change the base?
N°7216 import improves error handling missing or null data #612
Conversation
Also, iTop/.github/pull_request_template.md Lines 3 to 5 in 4e53dee
|
Tests are missing. We've prototyped some tests in BulkChangeTest and it proved that the currrent implementation does handle only specific cases. The following concerns have to be discussed and decided by Product Owers:
|
Functional review: We rather have a clear error telling that the data are missing columns at line X. |
Yesterday, I stumbled across this very same problem. I didn't know a PR existed for it already because of the lack of a proper description. (Looking at you Anne-Catherine 😉) What will be the new situation with this PR if a row doesn't have the same number of columns? |
PR still have to be reworked, but the goal is that in case of a missing column in a line of your CSV, a clear error messgae will be displayed saying that a column is missing on line X. That way you wan fix the CSV data. What do you think? |
I agree, but what is the current behaviour with this PR? |
I don't know, I think it displays an error, but I'll let @accognet answer. |
So why dit the functional team wrote this?
So, there must be some knowledge of what the current error would tell? |
The current behaviour of this PR is: In functional review, we discussed the correct behavior in case of a missing column. Romain was convinced that we had changed the initial behavior of this PR during the technical review. And it wasn't. This explains Molkobain's confusing comment. |
Thanks, can you also put a screenshot of that error message please? |
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! I was already suspecting it would be clear on which line the error occurs, this screenshot proves it.
Does it also work if a row has too many fields? |
Yes, it's the same behavior |
… csv file or missing a comma
… csv file or missing a comma
… csv file or missing a comma
… csv file or missing a comma
Co-authored-by: Thomas Casteleyn <[email protected]>
Co-authored-by: Thomas Casteleyn <[email protected]>
7cd16d3
to
9580e13
Compare
Tests are being reworked:
Then we'll have to check the coverage. |
Review of the tests still ongoing:
A new review of the tests (and implementation) will be performed then. |
Review still ongoing:
|
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.
The fix in ajax.csvimport.php seems ok though it cannot be associated to a usage.
internal