-
Notifications
You must be signed in to change notification settings - Fork 7
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
Translate enum string name to underlying enum type #137
Translate enum string name to underlying enum type #137
Conversation
Thanks for this PR! I’m traveling right now but will return on Sept 9 and can review and merge. |
I should mention that searchlight used to be really good with enums - I was a heavy user of enums back in 2015; but I gradually started phasing them out in most of my APIs which is why the test coverage probably isn’t as good anymore. Thanks for working on this! |
Updates
|
I'm back from travels and am looking at this PR. |
Darnit, it looks like this has some conflicts with my work on autocomplete. Let me try to merge |
@charliettaylor this PR now passes all tests locally - I'm not sure exactly why the github action is failing. It seems to be not allowing you to view the SonarCloud token on the repository since the PR comes from your repo. Regardless, I'm happy to merge this - are my changes OK to you? |
There 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.
Only concern is that enumType
seems duplicative. I remember I had that in my code originally specifically for cases where the underlying value was an enum but it was presented in the API as a string or integer.
Yeah I tried to avoid having another enum type field, but the way that the |
Drafting this for now since it needs more work, but I think I have the gist of it!