Meteor-Community-Packages/meteor-roles

forwardMigrate2 tries to drop unset index

Aberta

#377 aberto em 23 de ago. de 2023

 (1 comentário) (0 reação) (0 responsável)JavaScript (161 forks)batch import
buggood first issue

Métricas do repositório

Stars
 (919 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador