Meteor-Community-Packages/meteor-roles

forwardMigrate2 tries to drop unset index

Open

#377 aperta il 23 ago 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (161 fork)batch import
buggood first issue

Metriche repository

Star
 (919 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

While migrating to version 2 then 3, by using _forwardMigrate() then _forwardMigrate2(), an exception is raised https://github.com/Meteor-Community-Packages/meteor-roles/blob/ff9cad1db7d451a992763bfb6cd24354925f100d/roles/roles_server.js#L325

No such index is present in the user's collection

To Reproduce Start with a version 1 app. Add several roles. Use _forwardMigrate() then _forwardMigrate2() on it. The migration process stops on this exception

MongoServerError: index not found with name [roles._id_1_roles.scope_1]

Expected behavior A clean update of the servverside collections.

Environnement

  • Meteor 2.12
  • OS: OSX
  • Browser chrome, firefox

Guida contributor