-
Notifications
You must be signed in to change notification settings - Fork 29
feat: [v0.8-develop] Remove validation installation from the manifest 3/N #104
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
Conversation
220497a to
2a5de9d
Compare
4efbaef to
610a6fc
Compare
| _setExecutionFunction(selector, isPublic, allowGlobalValidation, module); | ||
| } | ||
|
|
||
| length = manifest.validationFunctions.length; |
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.
Did we get rid of preValidationHooks installation in installModule in a previous PR? Don't see them in code anymore.
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.
We did, I think in the PR that introduced installValidation. Previously, preValidationHooks were associated with selectors, which also associated them to validations because there was a 1:1 mapping between selectors and validation. But when we allowed multiple validation functions, we needed a way to associate the preValidationHooks, so they became installValidation only.
2a5de9d to
1ba0233
Compare
04132e0 to
22f26cf
Compare
Motivation
As noted in #103, since the introduction of
installValidation, there have been two pathways of installing validation functions: by specifying them ininstallValidation, or by having a plugin specifying them in the manifest and callinginstallPlugin.Given the context that most uses of validation-in-manifest installs was for direct call authorization, and the context that adding pre-validation hooks + permission hooks to the manifest based install is not very direct, this PR explores an option of removing validation installation from the manifest completely.
Solution
Remove validation functions from the manifest.
Update any usages of direct call validation specified in the manifest to an initialization of the direct call permission via
installValidation.Future Work
If we decide to go this route, we should define a place in the plugin metadata to indicate a request for direct call permissions.