Files
openobserve/src/handler
Yashodhan JoshiandYashodhan Joshi 88268f4895 fix : distinct values bug (#5389)
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>
2024-12-17 23:07:17 +05:30
..
2024-11-29 11:32:04 +08:00
2024-12-17 23:07:17 +05:30