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

Remove invalid validation of default included_resources#956

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

Conversation

sliverc
Copy link
Member

Fixes#949

Description of the Change

#900 inadvertently introduced validation of default included_resources which does not work properly with nested included resources (such as when a default included resources also defines its own included resources).

This PR reverts this validation but leaving the default prefetching of default included resources as intended in PR#900.

This is a quick fix to get this regression solved. In the long run we need to think whether it makes sense at all to do validation of include in init of the serializer anyway. But can be discussed later.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name inAUTHORS

@slivercsliverc requested a review fromn2ygkJuly 6, 2021 18:45
@codecov
Copy link

codecovbot commentedJul 6, 2021
edited
Loading

Codecov Report

Merging#956 (49be826) intomaster (74d2ff8) willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           Coverage Diff           @@##           master     #956   +/-   ##=======================================  Coverage   96.81%   96.81%           =======================================  Files          64       64             Lines        3888     3888           =======================================  Hits         3764     3764             Misses        124      124
Impacted FilesCoverage Δ
example/serializers.py88.07% <ø> (ø)
example/tests/test_serializers.py100.00% <ø> (ø)

Continue to review full report at Codecov.

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

Copy link
Contributor

@n2ygkn2ygk left a comment

Choose a reason for hiding this comment

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

👍

@slivercsliverc merged commitb49aa6e intodjango-json-api:masterJul 6, 2021
@slivercsliverc deleted the validation_included_resources branchJuly 6, 2021 18:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@n2ygkn2ygkn2ygk approved these changes

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

Successfully merging this pull request may close these issues.

Validation of included_resources fails when nested
2 participants
@sliverc@n2ygk

[8]ページ先頭

©2009-2025 Movatter.jp