Repository navigation
License errors - #380
License errors#380
Conversation
|
@wojciechczerniak how to create an engine with invalid/missing license (for testing)? |
|
|
|
@wojciechczerniak we need someone to do the missing translations for '#LIC!' |
|
Will be cool if it could have |
Having no #LIC! in translations results in compilation error. |
There was a problem hiding this comment.
I can't add the comment to the file that is not a part of this PR, but it will be better to exclude LIC from translations type in index.ts and remove all the ts-ignore comments
(use Exclude utility type that is built-in TS)
export type ErrorTranslationSet = Record<Exclude<ErrorType, ErrorType.LIC>, string>Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
| ERROR = 'ERROR' | ||
| } | ||
|
|
||
| export type TranslatableErrorType = Exclude<ErrorType, ErrorType.LIC> |
There was a problem hiding this comment.
Changing type for translation package was not enough? If I understood correctly ts-ignore was needed there. Do we need another type?
There was a problem hiding this comment.
yes, this propagates into Config (e.g. buildErrorMapping)
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
|
there were some new tests merged into develop, so now there is a problem with a following: since without proper licence |
It should return the expected value so we can check why the #LIC! error occurs |
There might not be an easy way of achieving this. First, any formula evaluates to error, second, any value extracted from |
Maybe we should simplify this PR then? Return the #LIC! only then a function is used and it's not a VERSION. We don't need an error in every single cell. WDYT? Can we keep it simple with a single condition? |
What about |
That would mean that you can use the spreadsheet in some limited form (no functions, just arithmetics) without the license. |
|
@wojciechczerniak any decision made on how do we proceed with this task? |
Sorry, not yet. I didn't forget. The North remembers! ⚔️ 🐺 We're quite busy, but I will get back to this issue ASAP |
wojciechczerniak
left a comment
There was a problem hiding this comment.
Thanks 👍
Note for future: we've agreed that it's a good idea to simplify the code and display the #LIC! error just for function calls (other than protectedFunctions). Simple arithmetic ops should work as a basic/demo feature. This will fulfill the requirements to verify the license for advanced calculations and avoid checking the license in multiple places, reducing code complexity and limiting impacto on the performance
Context
How has this been tested?
Types of changes
Related issue(s):
Checklist: