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

Ginkgo backward compatibility fix for Django Filters #266

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented Oct 11, 2020

Django Filters < 1.0.0 requires 'lookup_type' instead of 'lookup_expr'
for CharField expression. This commit adds a char_filter method to
figures.filters to address this compatibility issue. The char_filter
function was copied and adapted from the figures/filteres.py update
from the JJuniper upgrade PR:

#264

IMPORTANT: We did not update tests/test_filters.py at this time in
order to save development time. We may revisit this decision

After this is merged to master, I will

  1. Cherry pick and create a PR to Dicey-Tech/figures Juniper branch
  2. Cut a 'build-ginkgo-testing' branch off of master to test this on our customer's Ginkgo staging server

Django Filters < 1.0.0 requires 'lookup_type' instead of 'lookup_expr'
for CharField expression. This commit adds a `char_filter` method to
`figures.filters` to address this compatibility issue. The `char_filter`
function was copied and adapted from the `figures/filteres.py` update
from the JJuniper upgrade PR:

#264

IMPORTANT: We did not update `tests/test_filters.py` at this time in
order to save development time. We may revisit this decision
@codecov-io
Copy link

codecov-io commented Oct 11, 2020

Codecov Report

Merging #266 into master will decrease coverage by 0.06%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #266      +/-   ##
==========================================
- Coverage   91.95%   91.89%   -0.07%     
==========================================
  Files          41       41              
  Lines        2150     2158       +8     
==========================================
+ Hits         1977     1983       +6     
- Misses        173      175       +2     
Impacted Files Coverage Δ
figures/filters.py 96.42% <88.88%> (-1.65%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 629ec87...064c4de. Read the comment docs.

@johnbaldwin johnbaldwin merged commit 042bf9c into master Oct 12, 2020
@johnbaldwin johnbaldwin deleted the john/fix-ginkgo-django-filters branch October 12, 2020 08:27
@johnbaldwin
Copy link
Contributor Author

Thanks @OmarIthawi !

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.

3 participants