Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

django_filters.DjangoFilterBackend#466

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sliverc merged 17 commits intodjango-json-api:masterfromn2ygk:JSONAPIDjangoFilter
Sep 6, 2018

Conversation

n2ygk
Copy link
Contributor

@n2ygkn2ygk commentedAug 24, 2018
edited
Loading

Fixes#432

Description of the Change

Implementsdjango_filters.DjangoFilterBackend a Django ORM-style JSON:APIfilter[] implementation. See docs/usage.md for details.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • changelog entry added toCHANGELOG.md
  • author name inAUTHORS

Not sure it's needed, but the docmentation says to do it.
- allow the example app to still run, just failing any JSONAPIDjangoFilter tests.- split the two filters into separate files for easier maintenance.
@n2ygkn2ygk requested a review fromslivercAugust 24, 2018 22:57
@codecov-io
Copy link

Codecov Report

Merging#466 intomaster willdecrease coverage by0.05%.
The diff coverage is92.43%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #466      +/-   ##==========================================- Coverage   93.44%   93.38%   -0.06%==========================================  Files          56       58       +2       Lines        3217     3400     +183     ==========================================+ Hits         3006     3175     +169- Misses        211      225      +14
Impacted FilesCoverage Δ
rest_framework_json_api/filters/sort.py100% <ø> (ø)
example/urls_test.py100% <100%> (ø)⬆️
example/tests/test_filters.py100% <100%> (ø)⬆️
rest_framework_json_api/filters/__init__.py100% <100%> (ø)
example/settings/dev.py91.3% <60%> (-8.7%)⬇️
rest_framework_json_api/filters/filter.py78.72% <78.72%> (ø)
example/views.py91.91% <92%> (-0.09%)⬇️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatea320536...f5792c1. Read thecomment docs.

@codecov-io
Copy link

codecov-io commentedAug 25, 2018
edited
Loading

Codecov Report

Merging#466 intomaster willincrease coverage by0.33%.
The diff coverage is100%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #466      +/-   ##==========================================+ Coverage   93.44%   93.77%   +0.33%==========================================  Files          56       58       +2       Lines        3217     3388     +171     ==========================================+ Hits         3006     3177     +171  Misses        211      211
Impacted FilesCoverage Δ
example/settings/dev.py100% <ø> (ø)⬆️
rest_framework_json_api/filters/sort.py100% <ø> (ø)
example/views.py93.75% <100%> (+1.75%)⬆️
example/urls_test.py100% <100%> (ø)⬆️
rest_framework_json_api/filters/django_filter.py100% <100%> (ø)
rest_framework_json_api/filters/__init__.py100% <100%> (ø)
example/tests/test_filters.py100% <100%> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatea320536...51b9946. Read thecomment docs.

- Had a mistake (unquoted '.') and missing '-' as an allowed character. Also '_' already in '\w'- Don't be so exhaustive in testing for invalid filters; let JSONAPIQueryValidationFilter (when available)  deal with that.
@n2ygk
Copy link
ContributorAuthor

@sliverc I think this isreally ready for your review now.

Copy link
Member

@slivercsliverc left a comment

Choose a reason for hiding this comment

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

Nice work 👍 This will be a great addition to DJA. See my comments for questions and todos. Thanks for working on this.

@n2ygk
Copy link
ContributorAuthor

@sliverc thanks for the review! I believe I've adequately resolved most items. Please feel free to unresolve if you disagree.

I have left one open item which has to do with naming style. I think we need to clarify that further.

@n2ygkn2ygk mentioned this pull requestAug 30, 2018
Per discussion about naming, the idea is that it should be easy to updgrade from DRF to DJAby simply changing some imports, retaining the same DRF (or in this case, django-filter) classnames that are extended by DJA.seedjango-json-api#467 (comment)
@n2ygk
Copy link
ContributorAuthor

@sliverc If you agree with#467 (comment) then Ithink this is ready for final review and merge.

If you disagree I can revert51b9946 and we can work it out.

@n2ygkn2ygk changed the titleJSONAPIDjangoFilterfilters.DjangoFilterBackendAug 31, 2018
@n2ygkn2ygk mentioned this pull requestAug 31, 2018
5 tasks
Copy link
Member

@slivercsliverc left a comment

Choose a reason for hiding this comment

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

This PR is shaping up nicely. Just see my comments for some hopefully last changes before merging.

@n2ygkn2ygk changed the titlefilters.DjangoFilterBackenddjango_filters.DjangoFilterBackendSep 5, 2018
@slivercsliverc merged commit5de570c intodjango-json-api:masterSep 6, 2018
@n2ygkn2ygk added this to the2.6.0 milestoneSep 18, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@slivercslivercsliverc approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
2.6.0
Development

Successfully merging this pull request may close these issues.

3 participants
@n2ygk@codecov-io@sliverc

[8]ページ先頭

©2009-2025 Movatter.jp