Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1892

Create separate method(s) to list all collections

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      https://jira.mongodb.org/browse/RUBY-1825 attempted to change our existing collection listing helpers to list all collections, but this broke Mongoid test suite which has the following code:

          Mongoid.default_client.collections.each do |coll|
            coll.delete_many
          end
      

      Subsequently, the above fails thusly:

      Mongo::Error::OperationFailure: cannot delete from system namespace (12050)
      

      The existing methods must continue filtering system collections out, and we may consider adding new methods to return system collections.

      Note that the driver has 3 listing methods (collection objects, info hashes and names only).

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: