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
PiranhaJava - remove flag methods that have no arguments (that don't use enum) #38
Comments
In the properties file, if you include your toggle method in the |
Hi! but it doesn't work. But I know piranha is configured correctly because dummy branches Update: |
I got it working by adding a I'm wondering if it makes sense to extend this so that it checks the invocation to make sure its the correct toggle class and not just match by method name. Something like this: Application.java
|
Instead of an interim fix, I suggest creating a json properties file with the following attributes:
Processing these attributes as part of |
Ah, I see what you mean. I'll try that. |
This is the
|
The config file is moved to `properties.json`, removing the necessity for `piranha.properties` and allowing for more extensible configuration. This PR uses that flexibility to add support for specifying the return type, receiver type, and flag argument index from each experimentation API method configured. This is an enhancement and a fix for #38 and #6 . See included documentation for the full format of the json configuration file.
My codebase defines toggles like this:
And they are used like this:
What's the easiest way to make Piranha work? Should I modify Piranha to consider empty method calls that match the method specified in the properties file? (is it just a matter of changing an
if
condition somewhere?)I'd like to contribute a PR if I get this working!
The text was updated successfully, but these errors were encountered: