Page tree
Skip to end of metadata
Go to start of metadata

Expected Collection behavior  
In Private Mode
In /collections page:
You should see:
- Collections that are not part of any space that you created. That don't have any parents.
- Collections that are part of a space that you have access to and don't have any parents

You should not see:
- Collections you created that have at least a parent
- Collections that are part of a space you have access to and have at least a parent
- Other users' parents and child collections that are not part of any space
- Parent and Child collections that are part of a space the user has no access to

In /home page or /collections?user =
you should see: all collections you created whether or not they have parents.
You should not see:
- Other users' Parent and child collections that are not part of any space
- Parents and Child Collections that are part of a space the user has access to but weren't created by the user
- Parents and Child Collections that are part of a space the user has no access to.

In /space/:id page or /collections?space= page you should see: collections that have the id as root_spaces. Not childs
(In other words)
The user should see:
- The users' top level (parent collections) that are part of this space
- Other users' top level (parent collections) that are part of this space
The user should not see:
- Child collections that are part of this space
- Parent and child collections that are part of other spaces.

Interactions with spaces:
Scenario A)
1) Create collection A
2) Create collection B.
3) Add B to a space 1.
4) Add collection A to collection B.
Expected result: A should not show in /collections page. Nor in /space/1. It should appear in /collections?user= page and in the home page

Scenario B)
Repeat scenario A. And then:
5) Remove A from B.
Expected result: A should show in /collections page. In /space/1. In /collections?user= and in the home page.

Scenario C)
1) Create collection A in Space 1.
2) Create collection B in Space 1.
3) Add collection B to collection A.
Expected result: A should show in /collections page. In /space/1. In /collections?user= and in the home page
B should only show in /collections?user= and in the home page. Space 1 stops being a root_space for collection B.

Scenario D)
1) Create collection A (in no spaces)
2) Create collection B in Space 1.
3) Add collection A to collection B.
Expected result: Space 1 will be part of collection A spaces, but not its root_spaces.
Space 1 is a root_space and a space for collection B.
Collection A should only show in /collections?user= and the home page. Collection B should show up everywhere.

Scenario E)
1) Create collection A (in no spaces)
2) Create collection B in Space 1.
3) Add collection B to collection A.
Expected result: A will not be added to space 1.
Collection A should show up in /collections page, home page and /collections?user=, it should not show up on /space/1
Collection B should show up in /collections page, /space/1, home page and /collections?user=

In Public Mode
In /collections page:
You should see:
- All collections that don't have any parent collections, whether or not they are in a space. It should be the same behavior if you are logged in or logged out.
- Collections that are root in a space. I.E, they are part of a space, and the parent is not part of that space.
You should not see:
- Child collections that are not the 1st child of a space. I.E. Child Collections where all the spaces it is part of, are inherited from a parent.

In home and space page, should behave the same as the private mode.

  • No labels