Skip to content

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

@mwawrusch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions