-
Notifications
You must be signed in to change notification settings - Fork 493
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
Add a validate phase that allows more validation at definition time #443
Add a validate phase that allows more validation at definition time #443
Conversation
7e3ca5e
to
0f02f80
Compare
…cycle. It is better if we can detect and report configuration errors of task pipeline early, during task definition, rather than deferring such checks to runtime (when this is possible). To support such checks, we add a Validate() error method to the pipeline.Node() interface which gives pipeline nodes a chance to validate their configuration. Any pipeline containing nodes that do not pass these test cannot be saved. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
…finition time. Assuming the acceptance of PR influxdata#443, some validations previously performed at runtime can now be performed at definition time. The existing validations are moved into the pipeline.JoinNode type. The validations are extended to resolve the panic reported in issue influxdata#331. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
@jonseymour I like this change. The only part that I don't like is that now that all specific |
…cycle. It is better if we can detect and report configuration errors of task pipeline early, during task definition, rather than deferring such checks to runtime (when this is possible). To support such checks, we add a Validate() error method to the pipeline.Node() interface which gives pipeline nodes a chance to validate their configuration. Any pipeline containing nodes that do not pass these test cannot be saved. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
0f02f80
to
9b88fa3
Compare
…finition time. Assuming the acceptance of PR influxdata#443, some validations previously performed at runtime can now be performed at definition time. The existing validations are moved into the pipeline.JoinNode type. The validations are extended to resolve the panic reported in issue influxdata#331. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
I'll have to rebase again tomorrow - dead tired now. |
…ime. Assuming the acceptance of PR #443, some validations previously performed at runtime can now be performed at definition time. The existing validations are moved into the pipeline.JoinNode type. The validations are extended to resolve the panic reported in issue #331. Signed-off-by: Jon Seymour <jon@wildducktheories.com>
* PR #431: Move some join node validations from runtime to definition time. Assuming the acceptance of PR #443, some validations previously performed at runtime can now be performed at definition time. The existing validations are moved into the pipeline.JoinNode type. The validations are extended to resolve the panic reported in issue #331. Signed-off-by: Jon Seymour <jon@wildducktheories.com> * CHANGELOG.md
With this change, more validation can be pushed from runtime to definition time.
See the current implementation of #431 for an example of how it is used.
Signed-off-by: Jon Seymour jon@wildducktheories.com