mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
This fixes two bugs - 1. The _values api used `Count(*)` function in query to get count. However in case of distinct streams we already aggregate the count in `count` field. Thus we need to use `sum(count)` instead. 2. In https://github.com/openobserve/openobserve/pull/5220 , the logic which adds/removes the distinct values when dashboard is added/deleted was removed accidentally. This Also re-adds that logic back. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced bulk deletion of dashboards with associated distinct values. - Added new methods for managing distinct fields in dashboards. - Enhanced search functionality with improved handling of distinct streams. - **Bug Fixes** - Improved error handling for dashboard operations and search requests, including new error messages. - **Documentation** - Updated documentation for methods to clarify functionality and usage. - **Refactor** - Streamlined query variable extraction logic for dashboards. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>