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

GetNextIdValue should return next id based on the largest id in the collection, not based on the last item's id #3

Open
ttu opened this issue Oct 18, 2017 · 5 comments

Comments

@ttu
Copy link
Owner

ttu commented Oct 18, 2017

GetNextIdValue checks only the last item from the collection and gives a new id based on that item's id. Method should find the item with the largest id value from the collection and give a new id based on that item's id.

Function is in JsonFlatFileDataStore/DocumentCollection.cs
Tests are in JsonFlatFileDataStore.Test/CollectionTests.cs

@loneshark99
Copy link

I would like to take this item. Can I ?

@ttu
Copy link
Owner Author

ttu commented Feb 9, 2018

@loneshark99 sure! If you have some questions, just ask. I will add in progress label, but there is no hurry to complete this task.

@ttu ttu added the in progress label Feb 9, 2018
@ttu
Copy link
Owner Author

ttu commented May 8, 2018

@loneshark99 Hi. Do you have any questions regarding this task or if you are not anymore interested in implementing this, just tell me and I will remove "In Progress" label.

@ttu ttu removed the in progress label Jun 3, 2018
@qpooqp
Copy link

qpooqp commented Jun 14, 2018

Hi.
I stumbled upon this issue and tried to solved it.
Can you look on last commit on my fork if it looks okay? Or should I make PR?

I must admit that it is probably not the most eficient solution, but i couldn't come up with better one

@ttu
Copy link
Owner Author

ttu commented Jun 18, 2018

Thanks! Just make the PR and we can then think together if there is some more efficient way.

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

No branches or pull requests

3 participants