-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for marking custom functions as deprecated with visual warnings #8156
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
base: master
Are you sure you want to change the base?
Add support for marking custom functions as deprecated with visual warnings #8156
Conversation
|
Hello! Thanks for opening this PR. The extension editor UI is still a bit rough today (the extension editor has changed a lot lately and we still try to improve it). The "Private" checkbox should have been named "Hidden": when you check it, you will see that existing usages of the function appear in yellow. So I wonder if this would have fitted your need? More context: We try to make depreciation as transparent as possible for users. This means:
In your case, I guess you want to have the deprecation explanation shown to your users? |
Hi, I know about the "Hidden" checkbox, but it's intended for use within the extension itself, isn't it? |











Summary
Changes
Core/GDCore:
SetDeprecationMessageandIsDeprecatedmethods toInstructionMetadata,ExpressionMetadata, andMultipleInstructionMetadataDeprecatedExpressionerror type toExpressionParserErrorInstructionValidatorwithValidateParameterthat returns both validity and deprecation status via newParameterValidationResultstructEventsFunctionmodel (isDeprecated,deprecationMessage)Events Sheet (UI):
[DEPRECATED]prefix for deprecated actions and conditionsshowDeprecatedInstructionWarningpreference flagExtension Editor: