Is your feature request related to a problem? Please describe.
This issue is related to #2706 Search Epic
Results visibility
Searchable resources are into participatory spaces that may be private. Resources even can have it's own visibility restrictions (like meetings that can be private and transparent in its own).
This visibility restrictions apply the same to Searchable results, but it is unclear how. Let's define how this will be solved in this issue.
Describe the solution you'd like
This restrictions should be taken into account when indexing and returning results.
Describe alternatives you've considered
I'm thinking of 2 options.
- My first bet is not to index resources that are private even for users with visibility rights. Right now search is an exploratory tool, adding private elements will add complexity and slow down development and performance significantly. Access to private elements will still be possible through normal paths.
- Searchable can have a
private attribute to note that only some subset of users can have access to it. This private attribute will also indicate that a list of users with right to view this resource exists, in this case the private_searchable_users table should be queried for visibility rights.
I discard filtering at rendering time because it will affect pagination in a hard way to solve.
Is your feature request related to a problem? Please describe.
This issue is related to #2706 Search Epic
Results visibility
Searchable resources are into participatory spaces that may be private. Resources even can have it's own visibility restrictions (like meetings that can be private and transparent in its own).
This visibility restrictions apply the same to
Searchableresults, but it is unclear how. Let's define how this will be solved in this issue.Describe the solution you'd like
This restrictions should be taken into account when indexing and returning results.
Describe alternatives you've considered
I'm thinking of 2 options.
privateattribute to note that only some subset of users can have access to it. Thisprivateattribute will also indicate that a list of users with right to view this resource exists, in this case the private_searchable_users table should be queried for visibility rights.I discard filtering at rendering time because it will affect pagination in a hard way to solve.