feat(web-pkg, web-app-files, web-app-search): [OCISDEV-853] add vault:true token to search payload in vault context#13769
Merged
mzner merged 1 commit intoMay 12, 2026
Conversation
b0d1054 to
1485b6f
Compare
LukasHirt
requested changes
May 11, 2026
Collaborator
LukasHirt
left a comment
There was a problem hiding this comment.
Could you add some small unit test confirming the change please?
…:true token to search payload in vault context Appends vault:true to the oc:pattern search query when the current route scope is vault. The isVault flag is introduced in the useSearch composable and passed from the Search List component. SearchBar also checks the route scope independently, ensuring vault:true is included in both All files and Current folder search requests.
1485b6f to
5bc73c8
Compare
LukasHirt
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Implements vault search separation by appending the
vault:truequery token to the<oc:pattern>search payload when the user is in the vault context.The token is injected in both All files and Current folder search scenarios:
Related Issue
Motivation and Context
Without this token, searching in the vault context would return results from all spaces. The
vault:truetoken ensures the backend scopes the search correctly to vault content only.How Has This Been Tested?
vault:trueappears in the request payload and results are scoped to vaultvault:trueis NOT included in the request payload