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

Bug: First and last collection results has the same _id #167

Open
armand1m opened this issue Oct 1, 2017 · 3 comments
Open

Bug: First and last collection results has the same _id #167

armand1m opened this issue Oct 1, 2017 · 3 comments

Comments

@armand1m
Copy link

armand1m commented Oct 1, 2017

Hi, first of all, thanks for developing Mongotron. Has made my learning curve way easier to work with MongoDB.

However, I've noticed this problem in the version 1.0.0-alpha.5 when running on macOS and xUbuntu:

This is the result from a db.users.find({}) simple query that returns 2 documents:

captura de tela 2017-10-01 as 14 40 39

If you see, the Id being displayed for the 2 documents are the same. If you look at the _id property of each document, you can know from what document this repeated id belong:

captura de tela 2017-10-01 as 14 40 44

captura de tela 2017-10-01 as 14 40 51

Apparently the last document is its owner. I've tried querying other collections with more documents, and saw that the first item Id is always being the same as the last document from the result:

captura de tela 2017-10-01 as 14 40 23

The problem with this is that, when you use the edit button to edit the first document, the changes applied go to the last document, because of this id mismatch. So in order to update the first document, you need to copy the id and write an updateById (also remind to fix the last change that was a mistake).

@armand1m
Copy link
Author

armand1m commented Oct 1, 2017

It seems to be the same as #151, and also related to #133 (probably the main cause to this one)

@lattam
Copy link

lattam commented Feb 28, 2019

Has been any work done on this? or what is the status?
Thank you.

@armand1m
Copy link
Author

@lattam mongotron seems to be stopped since 2016 =)

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

No branches or pull requests

2 participants