Skip to content

RI-7303: Store create index command in Search results #4835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

pawelangelow
Copy link
Collaborator

When you create a new index, currently, we:

  • insert data
  • create the index

So far, the command that created the index was stored in Workbench results as it reused Workbench action, but it's better for the UX if the user sees the command in the Search commands history.

A.k.a. this:

Screenshot 2025-08-11 at 17 56 19

@pawelangelow pawelangelow force-pushed the fe/RI-7303/store-command-results-in-proper-place branch from 8c8a822 to 2d24dc7 Compare August 12, 2025 15:41
Copy link
Contributor

github-actions bot commented Aug 12, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 81.72% 19623/24013
🟡 Branches 67.1% 8510/12683
🟡 Functions 75.68% 5190/6858
🟢 Lines 82.15% 19209/23383

Test suite run success

5007 tests passing in 662 suites.

Report generated by 🧪jest coverage report action from 2111f5f

Comment on lines 10 to 36
export const useExecuteQuery = () => {
return useCallback(
async (
instanceId: string,
data: string | null | undefined,
_options?: UseExecuteQueryOptions,
) => {
const options = _options || {}
if (!data) return []

try {
const result = await executeApiCall(
instanceId,
[data],
RunQueryMode.ASCII,
ResultsMode.Default,
)
options.afterAll?.()
return result
} catch (e) {
options.onFail?.(e)
throw e
}
},
[],
)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't make sense for this to be a hook. The callback it returns has no dependencies. Just have a method (executeQuery) instead.

@pawelangelow pawelangelow merged commit 341fb9d into feature/RI-6855/vector-search Aug 13, 2025
13 checks passed
@pawelangelow pawelangelow deleted the fe/RI-7303/store-command-results-in-proper-place branch August 13, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants