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

Extend DjangoListField to use model queryset if none defined #732

Merged
merged 4 commits into from
Sep 17, 2019

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Aug 4, 2019

This PR extends the functionality for the DjangoListField to use the default queryset on the Django model if no queryset is provided. This allows it to be used in the top level Query type.

This PR also restricts the types that can be used with DjangoListField to subclasses of DjangoObjectType. I imagine that most people already only pass DjangoObjectTypes to DjangoListField but this just ensures it.

Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

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

I think most would people expect DjangoListField to connect the queryset automatically

@JoaRiski
Copy link

JoaRiski commented Sep 13, 2019

Seeing as this PR already has been open for over a month and already has two approvals from eligible approvers, what's the hold-up with merging?

I for one would find this immediately useful when released.

@McPo
Copy link

McPo commented Sep 16, 2019

Seeing as this PR already has been open for over a month and already has two approvals from eligible approvers, what's the hold-up with merging?

I for one would find this immediately useful when released.

This is an ongoing issue I have noticed with this project. PRs are getting raised to solve real issues, and are getting approved by 1 or 2 people but not the required 3. As such, It will likely discourage others from contributing.

I would suggest lowering the required amount of approvals, to keep the project moving.

@JoaRiski
Copy link

This might be going a bit off-topic of this PR, but @McPo where did you find a mention of 3 approvals being required? I tried looking for PR policies on the CONTRIBUTING.md and other relevant docs without much success. Additionally it doesn't seem like other PRs that have been recently merged have had an issue with just a single review.

@mvanlonden mvanlonden merged commit fea9b5b into master Sep 17, 2019
@mvanlonden mvanlonden deleted the django-list-field-default-query branch September 17, 2019 16:14
@McPo
Copy link

McPo commented Sep 17, 2019

This might be going a bit off-topic of this PR, but @McPo where did you find a mention of 3 approvals being required? I tried looking for PR policies on the CONTRIBUTING.md and other relevant docs without much success. Additionally it doesn't seem like other PRs that have been recently merged have had an issue with just a single review.

At the bottom of the PRs it states X amount. Thought it stated more than 2, maybe they changed it? Or maybe Im just plain wrong. Regarding other PRs that I kept stumbling upon, there were several that had reviewers accepting it, but never they never hit the required amount. It wasn't just on this repo specifically, but across graphql-python/ in general. I assumed it might have something to do with the move to 3.0, and they werent overly fussed on merging anymore PR's till that transition was done.

Screenshot 2019-09-17 at 18 03 10

Also to bring it a bit more on topic again (although its already been merged, cheers). I came to this issue due to a similar problem with get_node. Incase this helps anyone else in the future, the issue is #776

@jkimbo
Copy link
Member Author

jkimbo commented Sep 22, 2019

@McPo yep we changed the number of required reviewers to 2 (I think it was originally 3 some time ago). I agree with you that it should probably be reduced lower and I'll bring it up with the other maintainers when I next get the chance.

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.

7 participants