Skip to content
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

Fix the custom module example #307

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

ErwinSteffens
Copy link

I was trying to extend the default apicast module by using this example, but we ran into some issues. I think this merge request should fix the example, but I'am not much of an lua expert.

The module.lua file loads the apicast or the overriden module, but calls the new() method when it is available. When the new method is not overridden it just returns the apicast module and not the module override.

The new code works for us.

@mikz mikz self-assigned this Mar 16, 2017
@octobot octobot added the T-obux label Mar 16, 2017
@mikz
Copy link
Contributor

mikz commented Mar 16, 2017

Thank you for reporting this. Will try to get it merged today.

@mikz mikz mentioned this pull request Mar 16, 2017
@mikz
Copy link
Contributor

mikz commented Mar 16, 2017

Looks like this reveals some issues in how to properly solve module inheritance and sharing methods. Opened #308 to keep digging.

@mikz mikz merged commit 4e62464 into 3scale:master Mar 16, 2017
@mikz mikz removed the B-current label Mar 16, 2017
@ErwinSteffens ErwinSteffens deleted the fix-custom-module-example branch March 16, 2017 15:01
@mikz
Copy link
Contributor

mikz commented May 9, 2017

@ErwinSteffens I made a PR that tries to describe module inheritance and adds an example - #362

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants