-
Notifications
You must be signed in to change notification settings - Fork 906
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
Temporary fix for fetchAllSavedQueriesForSelectedTab() to run saved queries #8805
Temporary fix for fetchAllSavedQueriesForSelectedTab() to run saved queries #8805
Conversation
…ueries Signed-off-by: Riya Saxena <[email protected]>
ℹ️ Manual Changeset Creation ReminderPlease ensure manual commit for changeset file 8805.yml under folder changelogs/fragments to complete this PR. If you want to use the available OpenSearch Changeset Bot App to avoid manual creation of changeset file you can install it in your forked repository following this link. For more information about formatting of changeset files, please visit OpenSearch Auto Changeset and Release Notes Tool. |
Signed-off-by: Riya Saxena <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8805 +/- ##
==========================================
+ Coverage 60.78% 60.85% +0.06%
==========================================
Files 3798 3798
Lines 90701 90701
Branches 14284 14284
==========================================
+ Hits 55135 55195 +60
+ Misses 32067 32000 -67
- Partials 3499 3506 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@riysaxen-amzn can you add detials about why this change is needed and what the issue is? |
|
Can you please explain what it is that is broken? Looking at the source code, |
const allQueries = await savedQueryService.getAllSavedQueries(); | ||
// const allQueries = await savedQueryService.getAllSavedQueries(); | ||
// TODO: Mitigation until getAllSavedQueries gets fixed | ||
const { queries: allQueries } = await savedQueryService.findSavedQueries('', 10000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this behind a feature flag or would it be used in either case? Is there a risk with the 10000 limit (I'm assuming)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is behind flag and we will get it fixed as a fast follow and we don't see a risk with count as 10k
That's the default upper limit
The |
@@ -61,7 +61,9 @@ export function OpenSavedQueryFlyout({ | |||
const [searchQuery, setSearchQuery] = useState(EuiSearchBar.Query.MATCH_ALL); | |||
|
|||
const fetchAllSavedQueriesForSelectedTab = useCallback(async () => { | |||
const allQueries = await savedQueryService.getAllSavedQueries(); | |||
// const allQueries = await savedQueryService.getAllSavedQueries(); | |||
// TODO: Mitigation until getAllSavedQueries gets fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the issue with getAllSavedQueries
?
Then let's not pass OpenSearch-Dashboards/src/plugins/data/public/query/saved_query/saved_query_service.ts Line 210 in 48bfe2c
|
closing in favor of https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8808/commits |
Copied from draft PR -> #8796
Description
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration