Bug/WP-380: Remove id prefix filter on workspace search #898
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Workspace search has id field with system id, project id and actual id used in construction of id. There is a id prefix post-filter on search, which is not working on indexed content in frontera.
There is filtering on results to ensure the results are within the list of projects available to the user.
Are we going to get results from other portals ? No. The project index searched is specific to a portal. So, the extra id based prefix filter does not add value, and the prefix filter on the id field is not working on Frontera (see Testing Results)
Related
Changes
Remove the id based prefix filter.
Testing
Used django shell to validate.
In my frontera, below is list of projects:
With prefix filter: There are no results, even though the indexed doc has right prefix.
Without prefix filter: This gets the right results.
UI
Notes