Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13284

Tools should use appropriate singular/plural forms of "document" and "object"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.7.1
    • Affects Version/s: 2.4.9, 2.7.0
    • Component/s: Tools
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      1. Create a collection with only one document in it:
      $ mongo --eval 'db.foo.drop(); db.foo.save(

      {"a": "b"}

      )'

      2. Dump the collection to see incorrect English:
      $ mongodump --db test --collection foo -o foo

      3. Restore it again to see more incorrect English:
      $ mongorestore foo

      I have included three pictures of the results of these steps: one for 2.4.9 release, one for latest "origin/master" (2.7.0-pre) without my changes, and one for latest "origin/master" with my changes. It probably applies to all versions in between.

      Show
      1. Create a collection with only one document in it: $ mongo --eval 'db.foo.drop(); db.foo.save( {"a": "b"} )' 2. Dump the collection to see incorrect English: $ mongodump --db test --collection foo -o foo 3. Restore it again to see more incorrect English: $ mongorestore foo I have included three pictures of the results of these steps: one for 2.4.9 release, one for latest "origin/master" (2.7.0-pre) without my changes, and one for latest "origin/master" with my changes. It probably applies to all versions in between.
    • Server 2.7.1

      This issue is trivial, but addressing it does add a little polish to MongoDB. Tools I use every day like `mongodump` and `mongorestore` for retrieving and archiving new data sometimes produce output like "imported 1 documents", "processed 1 documents", and "wrote 1 documents". I have opened this issue to accompany a pull request from GitHub in which I have corrected a few of these grammar mistakes by adding conditionals that choose the appropriate noun form. All tests still pass on my personal machine, a MacBook Air running Mavericks (OS X 10.9.2), but I have only tested with the "origin/master" branch from GitHub. I'm not sure whether new tests are really necessary for this sort of thing, so I haven't written any yet.

        1. 2.4.9-release.png
          2.4.9-release.png
          174 kB
        2. 2.7.0-after.png
          2.7.0-after.png
          178 kB
        3. 2.7.0-before.png
          2.7.0-before.png
          178 kB
        4. 2.7.0-final.png
          2.7.0-final.png
          178 kB

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            wilkinson Sean Wilkinson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: