-
Notifications
You must be signed in to change notification settings - Fork 116
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
Dynamic callback function name cannot include hyphens #1468
Comments
Hey @schlessera @kasparsd, trying to issue a PR against this issue, but seems like external contributions might be disabled? |
@shadi-sharaf-nuk Can you please link to the branch you're creating the pull request from? I'm seeing external pull request being created very recently such as #1462. |
I'm seeing the same as you, but when I submit, I see the error I attached above 🤷 Unsure if this is related to me being a previous contributor maybe? |
My bad, I stupidly was trying to create the PR from another GitHub account who doesn't have access to my fork 🤦 Sorry for the confusion. |
Bug Report
Dynamic callback methods in custom connectors, eg:
callback_ACTION_NAME
cannot have hyphens in their method name, however the callback discovery routine does not convert hyphens to an underscore, hence connectors cannot target actions with hyphens likeload-xxx_xxx
unless they override thecallback
method and target the action manually.Expected Behavior
For an action like
load-something
, I should be able to usecallback_load_something
to log that action.Actual Behavior
I can't use a dynamic callback to target that action, only way is to override the
callback
method.System Information
The text was updated successfully, but these errors were encountered: