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

DjangoListField returning stale data by default #1061

Closed
lijok opened this issue Nov 12, 2020 · 3 comments · Fixed by #1063
Closed

DjangoListField returning stale data by default #1061

lijok opened this issue Nov 12, 2020 · 3 comments · Fixed by #1063
Labels

Comments

@lijok
Copy link

lijok commented Nov 12, 2020

https://repl.it/talk/share/DjangoListField-bug/79205
Idk if this is the correct way of sharing the repl, if not, lmk

Repro:

  1. Create superuser
  2. In one tab, run query
{
  allRecipes {
    id
    title
    instructions
  }
}
  1. In another tab, go to admin panel, add new record to recipes
  2. Rerun the above query

You'll see that the data returned does not include the new recipe that was added

@lijok lijok added the 🐛bug label Nov 12, 2020
@zbyte64
Copy link
Collaborator

zbyte64 commented Nov 12, 2020

I am able to reproduce on the repl.it environment but I feel like the environment might be sus. Are you seeing this outside the repl.it environment?

Anyhow, it shouldn't be too difficult to add a unit test for this. I have similar tests in my own project but they are based on DjangoFilterConnectionField

@lijok
Copy link
Author

lijok commented Nov 12, 2020

Yes, I'm seeing the same behaviour in my local django project

@zbyte64
Copy link
Collaborator

zbyte64 commented Nov 13, 2020

Alrighty, I'll work to add a test for that tomorrow. Thanks for bringing this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants