Skip to content

Conversation

@ehooo
Copy link

@ehooo ehooo commented Oct 27, 2022

Fixes #281 .

Changes proposed in this pull request:

  • Add support for enum types

Attention: @prkumar

@ehooo ehooo changed the title Fixes # 281 Add support for enum Oct 27, 2022
@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (65125ec) to head (8f67f98).
Report is 76 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #282   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           44        42    -2     
  Lines         2471      2448   -23     
  Branches       358       355    -3     
=========================================
- Hits          2471      2448   -23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Owner

@prkumar prkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehooo - Thanks for taking the time to make this change!

Adding this to Sequence will add support to only a few annotations, like @Query and @QueryMap. Sequence is responsible for applying a converter to each item in a list of values.

To add broad support for enums, we should add this to either the TypingConverter or the StandardConverter.

@ehooo
Copy link
Author

ehooo commented Nov 19, 2022

Hello @prkumar

Thanks for your response, i just check it and i don't know where do you want to add this conversion.

I see that the property converter_key on Query and QueryMap returns a Sequence class so i think this is the better location to make the convertion.

Please let me know where do you think i could move it.

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.

Error parsing enum value on query

2 participants