[SERVER-19281] Add index name as a separate field on duplicate key error object Created: 04/Jul/15 Updated: 24/Jul/19 Resolved: 25/Jun/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | 2.6.7, 3.0.4 |
| Fix Version/s: | 4.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andres Kalle | Assignee: | Maria van Keulen |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Execution Team 2019-07-01 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
This issue is very similar to In other words, I'm not really so much interested in
as I am in
or better yet, fields like these:
So, without getting bogged down by issues related to keys and _ids, would it be possible to just add the index name to the error object first and then figure out the rest later? I find nearly all of MongoDB's design and interfaces very elegant and pleasant to work with, but this is a major exception among the most common use cases. The duplicate key error message parsing is the messiest part of the Mongo interface in many applications. So this (hopefully simple) change would be a lot of help to many developers struggling with this problem. |
| Comments |
| Comment by Githook User [ 25/Jun/19 ] |
|
Author: {'name': 'Maria van Keulen', 'username': 'mvankeulen94', 'email': 'maria@mongodb.com'}Message: |
| Comment by Maria van Keulen [ 24/Jun/19 ] |
|
Re-opening, since |
| Comment by Maria van Keulen [ 24/Jun/19 ] |
|
It looks like this has been resolved for all storage engines as of |