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

add filters alias support #378

Conversation

erikwrede
Copy link
Member

@erikwrede erikwrede commented Jan 25, 2023

No description provided.

@erikwrede erikwrede changed the base branch from master to add-filters January 25, 2023 20:36
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Patch coverage: 93.04% and project coverage change: -2.33 ⚠️

Comparison is base (a03a8b1) 96.37% compared to head (322f12a) 94.04%.

Additional details and impacted files
@@               Coverage Diff               @@
##           add-filters     #378      +/-   ##
===============================================
- Coverage        96.37%   94.04%   -2.33%     
===============================================
  Files                9       10       +1     
  Lines              773     1294     +521     
===============================================
+ Hits               745     1217     +472     
- Misses              28       77      +49     
Impacted Files Coverage Δ
graphene_sqlalchemy/registry.py 87.71% <75.86%> (-12.29%) ⬇️
graphene_sqlalchemy/enums.py 94.50% <83.33%> (-3.30%) ⬇️
graphene_sqlalchemy/types.py 89.76% <87.26%> (-4.60%) ⬇️
graphene_sqlalchemy/batching.py 95.34% <94.28%> (+1.59%) ⬆️
graphene_sqlalchemy/filters.py 94.75% <94.75%> (ø)
graphene_sqlalchemy/converter.py 95.86% <97.15%> (-0.34%) ⬇️
graphene_sqlalchemy/fields.py 98.64% <98.82%> (-0.39%) ⬇️
graphene_sqlalchemy/__init__.py 100.00% <100.00%> (ø)
graphene_sqlalchemy/resolvers.py 100.00% <100.00%> (ø)
graphene_sqlalchemy/utils.py 96.32% <100.00%> (+2.99%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +227 to +230
print("got", model_field)
print(repr(model_field))
print(model_field == 1)
print("with input", field_filters)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can remove in add-filters branch when we clean things up there

Comment on lines +190 to +192
model_field = getattr(
model, input_field.model_attr
) # getattr(model, field)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible for model_field to be None here? Looking at L#486 of types.py, couldn't a graphene.InputField be passed in to a BaseTypeFilter? Not sure if I understand the scope of this change though.

graphene_sqlalchemy/filters.py Show resolved Hide resolved
@erikwrede
Copy link
Member Author

Manually merged into add_filters

@erikwrede erikwrede closed this Oct 6, 2023
@erikwrede erikwrede deleted the add-filters-alias-support branch October 6, 2023 19:57
erikwrede added a commit that referenced this pull request Oct 6, 2023
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.

2 participants