-
Notifications
You must be signed in to change notification settings - Fork 47
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
[IMP] errors: display error origin position #5413
base: master
Are you sure you want to change the base?
Conversation
9f6c114
to
30f3c79
Compare
Purpose ------- Let's say a cell is evaluated to an error because one of its inputs is an error itself. The tooltip shows the error message, but you don't know where it comes from. If the formula has many reference, you have to check every one of those references to find the original error. As an example, if the formula =IF(OR(AND($D21<G$17,$D21>I$1),AND(I$1<$E21,I$1>$D21)),1,"") results with an error. Where does it come from ? D21 ? J1 ? I1 ? E21 ? Spec ---- Add below the error message the cell from which the error is coming from. The cell reference should be clickable to jump to cell. Task: 4452745
30f3c79
to
078bee3
Compare
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 builder seems useless?
title: _t("Error"), | ||
message: cell.message, | ||
}); | ||
evaluationError = cell; | ||
} | ||
|
||
const validationErrorMessage = getters.getInvalidDataValidationMessage(position); |
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.
just inject that value directly to the errorTooltip component as you did with the EvaluationError. The builder is no longer relevant if it only manages a single case. Or you could keep the builder and have it yield a component... but the former seems easier
// TO DO: add tests for exp format (ex: 4E10) | ||
// RO DO: add tests for DATE string format (ex match: "28 02 2020") |
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.
5 years old TODOs... 😛
ef182a0
to
a7bf79f
Compare
Since the previous commit, the ErrorToolTip component is no longer completely independant from the source of errors (it needs to know the evaluation error). So the remaining use of the "generic part" is now only for data validation. A generic system for a single use case is not a generic system. Let's make it more direct and move everything to the component. Task: 4452745
a7bf79f
to
dba11ab
Compare
robodoo rebase-ff |
Merge method set to rebase and fast-forward. |
Description:
Purpose
Let's say a cell is evaluated to an error because one of its inputs is an error itself. The tooltip shows the error message, but you don't know where it comes from.
If the formula has many reference, you have to check every one of those references to find the original error.
As an example, if the formula =IF(OR(AND($D21<G$17,$D21>I$1),AND(I$1<$E21,I$1>$D21)),1,"") results with an error. Where does it come from ? D21 ? J1 ? I1 ? E21 ?
Spec
Add below the error message the cell from which the error is coming from. The cell reference should be clickable to jump to cell.
Task: 4452745
review checklist