You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
My guess is that the ocis search index --space $SPACE_ID --user $USER_ID dates back to the times before we had a service account.
Therefore it needs the space id and a user id that has access to that space.
Describe the solution you'd like
Leverage the service account for search, so that it can discover all spaces by itself and we can trigger re-indexing for all spaces with one command.
Ideally this would be eg.:
ocis search index or ocis search index --all-spaces
Describe alternatives you've considered
Get a list of all spaces and a member each. But that requires permissions to list the spaces graph endpoint and therefore a OIDC session. Currently this can not really easily automated, while the proposed solution is very easy to be triggered in a automated way.
Additional context
none
The text was updated successfully, but these errors were encountered:
ocis search index or ocis search index --all-spaces
I did go for ocis search index --all-spaces. Somebody typing ocis search index (without parameters) might expect to see the help message and not start a timeconsuming reindex of all spaces.
Btw: search service already used service accounts. The --user param is unused and can be omitted. I removed it.
Is your feature request related to a problem? Please describe.
My guess is that the
ocis search index --space $SPACE_ID --user $USER_ID
dates back to the times before we had a service account.Therefore it needs the space id and a user id that has access to that space.
Describe the solution you'd like
Leverage the service account for search, so that it can discover all spaces by itself and we can trigger re-indexing for all spaces with one command.
Ideally this would be eg.:
ocis search index
orocis search index --all-spaces
Describe alternatives you've considered
Get a list of all spaces and a member each. But that requires permissions to list the spaces graph endpoint and therefore a OIDC session. Currently this can not really easily automated, while the proposed solution is very easy to be triggered in a automated way.
Additional context
none
The text was updated successfully, but these errors were encountered: