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

2 Instances of Mongolia distribution exist in the database - one is the parent of the other #123

Open
ThomasDenoirjean opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ThomasDenoirjean
Copy link

Describe the bug
There is two instance of Mongolia, one with the id '496' and the slug '37', and one with the id '321' and the slug 'mon'. The latter is a child of the first one

To Reproduce
Steps to reproduce the behavior:

  1. Fetch both Mongolia distribution instance
    Mongolia1 = requests.get('https://trefle.io/api/v1/distributions/496/?token=YOUR_TOKEN').json()
    Mongolia2 = requests.get('https://trefle.io/api/v1/distributions/321/?token=YOUR_TOKEN').json()
  2. Check the parent and children data in the JSON

Expected behavior
Only one instance of the Mongolia distribution should exist. I suggest to delete the one with the id '321' and the slug 'mon', as it is a child of the other Mongolia instance.

Screenshots
image

@ThomasDenoirjean ThomasDenoirjean added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants