Meteor-Community-Packages/meteor-roles

forwardMigrate2 tries to drop unset index

Ouverte

#377 ouverte le 23 août 2023

 (1 commentaire) (0 réaction) (0 personne assignée)JavaScript (161 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (919 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur