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

Extract method formanual_fields processing#5633

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

@carltongibson
Copy link
Collaborator

@carltongibsoncarltongibson commentedNov 28, 2017
edited
Loading

Allows reuse of logic to replace Field instances in a field list byField.name.

Adds a utility function for the logic plus a wrapper method onAutoSchema.

Closes#5632

TODO:

  • Add tests
  • Documentation

Allows reuse of logic to replace Field instances in a field list by `Field.name`.Adds a utility function for the logic plus a wrapper method on `AutoSchema`.Closesencode#5632
@carltongibsoncarltongibson added this to thev3.7.4 milestoneNov 28, 2017
@carltongibson
Copy link
CollaboratorAuthor

carltongibson commentedNov 28, 2017
edited
Loading

@rpkilby Can you just cast your eye over this please? General approach etc.

I'll add an explicit test onupdate_fields but beyond that I was happy to let the existing test cover the method level wrapper. Your thought there?

Ta.

rpkilby
rpkilby previously requested changesNov 29, 2017
Copy link
Contributor

@rpkilbyrpkilby left a comment

Choose a reason for hiding this comment

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

I've openedcarltongibson#2 with suggestions.

* Use OrderedDict in inspectors* Move empty check to 'update_fields()'* Make 'update_fields()' an AutoSchema staticmethod* Add 'AutoSchema.get_manual_fields()'* Conform '.get_manual_fields()' to other methods
@carltongibsoncarltongibson dismissedrpkilby’sstale reviewDecember 1, 2017 09:11

Proposed changes merged. Thanks@rpkilby!

@carltongibsoncarltongibsonforce-pushed the374/extract-manual-fields-logic branch from865fc7d to7dc903fCompareDecember 1, 2017 11:03
@carltongibson
Copy link
CollaboratorAuthor

OK. I think this is ready to go.

Copy link
Collaborator

@auvipyauvipy left a comment

Choose a reason for hiding this comment

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

changes looks good to get in

@carltongibsoncarltongibson merged commita0cdba6 intoencode:masterDec 4, 2017
@carltongibsoncarltongibson deleted the 374/extract-manual-fields-logic branchDecember 4, 2017 08:07
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
* Extract method for `manual_fields` processingAllows reuse of logic to replace Field instances in a field list by `Field.name`.Adds a utility function for the logic plus a wrapper method on `AutoSchema`.Closesencode#5632* Manual fields suggestions (encode#2)* Use OrderedDict in inspectors* Move empty check to 'update_fields()'* Make 'update_fields()' an AutoSchema staticmethod* Add 'AutoSchema.get_manual_fields()'* Conform '.get_manual_fields()' to other methods* Add test for update_fields* Make sure `manual_fields` is a list.(As documented to be)* Add docs for new AutoSchema methods.* `get_manual_fields`* `update_fields`* Add release notes for PR.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@auvipyauvipyauvipy left review comments

+1 more reviewer

@rpkilbyrpkilbyrpkilby left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.7.4 Release

Development

Successfully merging this pull request may close these issues.

4 participants

@carltongibson@rpkilby@auvipy@vdejager

[8]ページ先頭

©2009-2025 Movatter.jp