Skip to content

Nasty regression detected when moving from 2.x to 3.x mongoose #1

Description

@mwawrusch

The grant access method fails. It seems that it does not take the change in an array. See output here:

◦ should add a write role: -----------------------------------
LOOKING FOR AT
CREATED NEW AT
SOURCE - TYPE: {"name":"test","accessibleBy":[{"actor":{"objectType":"public","actorId":"*"},"roles":["read"]},{"actor":{"displayName":"","objectType":"person","actorId":"frankid"},"_id":"507ad8ec86c0728271000012","roles":[]}],"_id":"507ad8ec86c0728271000011"}
ACCESSIBLE TYPE: {"actor":{"actorId":"frankid","objectType":"person","displayName":""},"roles":[]}
ROLES TO ADD: ["write"]
EXISTING ROLES: []
NEW ROLES: ["write"]
SOURCE - SELF: {"name":"test","accessibleBy":[{"actor":{"objectType":"public","actorId":"*"},"roles":["read"]},{"actor":
{"displayName":"","objectType":"person","actorId":"frankid"},"_id":"507ad8ec86c0728271000012","roles":[]}],"_id":"507ad8ec86c0728271000011"}

The last one should have a role of write in it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions