Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapper plugins such as "groonga" that includes "select" command that wraps "search" command should be specified before base plugins such as "search".
- Loading branch information
44bb35bThere 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.
Really? The tutorial http://droonga.org/tutorial/plugin-development/adapter/ works correctly for me, with the order
["crud", "search", "groonga", "sample-logger"]. The pluginsample-loggermodifies requests for thesearchcommand.44bb35bThere 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.
Really. Because the current
searchplugin doesn't provide any adapters. Ifsearchprovides any adapters, the tutorial doesn't work well.The tutorial works well for now. But it may not be worked in the feature. So it is a good manner to use
["sample-logger", "search"]order.44bb35bThere 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.
OK, I update tutorials.
By the way, I think we should resolve the order of plugins automatically in future releases, like gem, npm, and so on...
44bb35bThere 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.
!!!
It will be difficult...
Authors of plugin that has adapter for input need to specify "the plugin will convert the input message to XXX from YYY". The "XXX" and "YYY" is not only "type" field but also all message fields because adapter can use all message fields to find a message to be adapted.
We need the information to resolve the order of plugins...
44bb35bThere 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.
Yes, I think plugin authors should write any metadata to describe its dependencies manually, and it seems to be a responsibility of plugin authors.