Commit Graph
1211 Commits
Author SHA1 Message Date
ktx-vaidehi eeecb3f130 feat: if print mode hide unnecessary empty space (#4869)
- #4870

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced table rendering for print mode, ensuring proper styling and
positioning.
- Introduced conditional rendering for dashboard panels specifically in
print scenarios, improving layout adaptability.

- **Bug Fixes**
- Improved responsiveness of the dashboard display based on the
application's print state.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-28 18:10:44 +05:30
ktx-vaidehi cb6ac0ab90 feat: added new options for histogram intervals (#4830)
- #4832
2024-10-28 12:27:10 +05:30
Omkar Kesarkhane 13023035ac fix: Old stream schema and editor value was shown on selecting metrics stream (#4917) 2024-10-26 13:19:11 +08:00
Ashish Kolhe 59e9f73e16 feat: use stream stats for partitioning api (#4901) 2024-10-26 10:43:32 +08:00
Bhargavandktx-vaidehi bf236e34a1 fix: trim before and after space in query editor and vrl function (#4886)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced SQL query handling across multiple components by trimming
whitespace from user inputs, ensuring cleaner and more reliable query
execution.
- Added a `refreshTimezone` method to update grid columns and regenerate
histogram data in the search functionality.

- **Bug Fixes**
- Improved error handling and user feedback for session data retrieval
and search requests.

These updates enhance the overall robustness and user experience within
the application, particularly in handling search queries and alerts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-10-25 14:18:05 +05:30
Omkar Kesarkhane 3843439948 fix: Reduced streams page table vertical padding (#4826)
1. Reduced streams page table vertical padding
2. Reduced debounce timeout to 2500 of the column actions to appear
quicker

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Enhanced responsiveness of cell actions in the log table.
	- Added a new CSS class for improved styling of the log stream table.
	- Conditional display of the "doc_num" column based on user settings.

- **Improvements**
- Reduced debounce time for cell action updates, improving interaction
speed.
- Refined filtering functionality for the log stream, ensuring better
user experience.
	- Improved handling of log stream data for more effective display.

- **Style**
	- Introduced scoped styles for the new log stream table class.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-23 16:46:23 +05:30
Bhargavandktx-abhay 20dd46c1fe feat: O2 node sql parser implemetation (#4751)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Introduced new utility functions for SQL query parsing and un-parsing.
- Added functionality for managing fields in SQL queries based on user
interactions in the log search interface.

- **Improvements**
- Enhanced log search interface with new event handlers and improved
user feedback.
  - Streamlined error handling and data management for log queries.
- Refined conditional rendering and query construction logic in the
search interface.
- Updated SQL query manipulation logic for better accuracy and error
handling.
- Improved the clarity and efficiency of SQL query handling and saved
views.
- Enhanced control flow and data structure management within SQL query
handling.
- Added optional chaining to improve robustness in dashboard panel data
handling.
- Adjusted handling of SQL queries for improved performance and
responsiveness.

- **Bug Fixes**
  - Removed redundant code to improve performance and clarity.

- **Chores**
  - Updated dependencies to enhance SQL parsing capabilities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-10-22 13:59:39 +05:30
Bhargavandhengfei yang 84d5191440 fix: rename menu label (#4846)
issue #4872

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Updated menu label from "Ingestion" to "Data sources" for improved
clarity in the user interface.
- Expanded localization support with numerous new terms and phrases for
English, German, Spanish, French, Italian, Japanese, Korean, Dutch,
Portuguese, Turkish, and Chinese, enhancing user experience across
multiple sections including menus, dashboards, and search
functionalities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2024-10-22 13:01:35 +05:30
Yashodhan JoshiandSai Nikhil 99dfffd71b fix: add prefix partition in add stream section (#4874)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new "Prefix partition" option for stream index types,
enhancing user selection.
- Improved validation logic to prevent incompatible index type
selections.

- **Bug Fixes**
- Refined handling of stream input fields and validation to ensure
consistent functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-10-22 11:53:28 +05:30
Bhargav f13f557759 fix: include exxclude search based on data type (#4841)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced filtering capabilities for logs with new methods for
constructing filter expressions based on field types and values.
  
- **Improvements**
- Updated search term handling across various components to accept more
detailed parameters, allowing for more structured filtering.
- Improved pagination logic to ensure better user experience when
navigating search results.

- **Bug Fixes**
- Enhanced error handling in search term addition to notify users of any
issues with filter expression generation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-21 17:14:04 +05:30
Bhargav ec858dcd35 fix: vertical layout on about us page. (#4866)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Streamlined presentation of version, commit hash, and build date on
the About page for improved clarity.

- **Bug Fixes**
- Removed outdated layout that may have caused confusion in data
display.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-21 16:51:04 +05:30
Sai Nikhil 6d78ff6e98 fix: Prefix partition fix (#4861)
1.This PR fixes #4850 
2.additionally in the custom logo issues I have removed .tif format in
supported formats along with it throws an error if the custom logo text
is more than 100 chars

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a "Prefix partition" option for enhanced schema
configuration.
- Added character limit enforcement for custom logo text input (max 100
characters).
- Expanded file upload support to include additional image formats (.gif
and .bmp).

- **Bug Fixes**
- Improved error handling for logo updates and deletions with user
notifications.

- **Documentation**
- Streamlined file type descriptions for uploads in the settings
component.

These updates enhance user experience by improving schema management,
input validation, and file upload functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-21 15:45:37 +05:30
Sai Nikhil 5d34e7aa22 fix: search history seconds precision issue fixed #4863 (#4864)
This PR fixes #4863  

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced log querying with support for time periods specified in
seconds (e.g., "30s").
- Improved restoration of URL query parameters to accommodate new time
format.

- **Bug Fixes**
- Refined logic for managing query parameters to ensure accurate updates
and initialization.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-21 15:12:17 +05:30
Omkar Kesarkhane e71b1046f0 fix: Fixed logic to restore logs expanded rows on run query (#4856)
#4844 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new method for calculating the virtual index of expanded
rows, improving row expansion handling.

- **Bug Fixes**
- Adjusted inline styles for the table and headers for better width
calculations.

- **Style**
- Enhanced code readability by adding trailing commas in various
functions and properties.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-21 10:25:11 +05:30
Prabhat Sharma 6866a2b753 fix: update cert-manager (#4849)
update cert-manager
2024-10-19 14:52:16 -07:00
Omkar KesarkhaneandBhargav f58d21ae3c fix: On cancel query undefined error shown on UI (#4842)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced error handling for data fetching and processing, providing
clearer feedback to users.
- Improved dynamic rendering of error messages and search results in the
user interface.

- **Bug Fixes**
- Resolved issues with undefined properties, ensuring robust error
message display and a smoother user experience.

- **Refactor**
- Streamlined logic for managing field visibility and refined data
processing methods for better performance and clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-10-19 19:09:43 +05:30
Sai Nikhil 3c9cea7302 fix: custom logo issues (#4843)
1. the limit of text is fixed to 100 char

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced input sanitization to enhance text handling and security.
- Expanded file format validation for uploads to include additional
formats (.gif, .bmp, .tif).

- **Improvements**
- Enhanced input handling with a character limit of 100 for custom text.
	- Updated validation messages for file uploads.

- **Type Safety**
- Added TypeScript type annotations for improved code safety and
clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-19 14:46:56 +05:30
Sai Nikhil f024ce981b fix: #4752 issue selecting same timestamp for every query (#4782)
this PR fixes #4752 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Improved date-time handling in the Search History component for more
accurate log searches.
- Added utility function to extract timestamps based on specified
periods.
	- Enhanced functionality for managing query parameters and stream data.

- **Bug Fixes**
	- Enhanced error handling for clearer notifications and traceability.

- **Refactor**
- Code refactoring for better clarity and maintainability in query
management.

- **Chores**
	- Minor template adjustments for improved testing support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-19 13:04:40 +05:30
Bhargav 6714d26d30 fix: moved restore URL params before api calls (#4804)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a method to restore URL query parameters on component
mount.
	- Enhanced data loading responsiveness based on route changes.
- Improved handling of search history visibility based on query
parameters.

- **Bug Fixes**
- Added validation checks for executing queries to ensure only valid
queries are processed.

- **Style**
- Updated layout and scrollbar styles for a better user interface
experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-18 22:00:45 +05:30
Bhargav 41ee9893fc fix: added additional function error in case of no record found. It w… (#4811)
…ill help to provide more insight in case of no record found with
function error.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced a button to toggle error details based on error messages.
- Added a new key for error button label in the localization file to
enhance user interface.

- **Bug Fixes**
- Improved error handling logic to provide comprehensive feedback on
errors encountered during log searches.

- **User Experience Enhancements**
- Refined user interaction for better understanding and management of
error information on the logs page.
- Enhanced clarity of error reporting with improved rendering of error
messages.
- Users can now access detailed error information more easily during log
searches.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-18 16:29:16 +05:30
Omkar Kesarkhane 9b4668db66 fix: UI freezes on enabling histogram (#4813)
#4806 

Issue replication steps:
Go to logs, turn off histogram, select stream and click run-query after
getting results, turn on histogram.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced functionality for refreshing data based on user settings.
	- Added dynamic SQL query management capabilities.
	- Added a method for generating histogram data skeletons.
	- Updated the region data fetching process for improved structure.

- **Improvements**
- Enhanced error handling with detailed messages and better trace ID
management.
	- Improved pagination management and histogram data handling.
- Updated component structure for better search query handling and
visualizations.
- Enhanced clarity and maintainability of data filtering logic in the
permission table.

- **Minor Adjustments**
	- Various code adjustments for clarity and efficiency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-18 14:32:05 +05:30
Prabhat SharmaandTaiming Liu 9ace66ac75 chore: rename zinc to OpenObserve (#4807)
rename zinc to OpenObserve

---------

Co-authored-by: Taiming Liu <90490946+taimingl@users.noreply.github.com>
2024-10-16 10:12:34 -07:00
b53766d76a fix: Dashboard chart UI issues (#4745)
#4256 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced new functions for enhanced chart rendering:
`getLargestLabel` for improved label sizing, `largestStackLabel` for
stacked charts, and `getPieChartRadius` for pie charts.

- **Improvements**
- Enhanced axis label handling for better visual representation in
horizontal bar and stacked charts.
- Updated text width calculation to be more flexible with an optional
font size parameter.
	- Improved clarity in variable naming for better understanding.
- Enhanced readability of the ViewPanel component template and improved
management of the loading state.
- Refined UI test interactions with more descriptive data-test
selectors, enhancing maintainability.
	- Improved handling of large datasets and complex SQL queries in tests.

- **Bug Fixes**
- Enhanced error handling in tests for invalid queries, improving
overall robustness of the application.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-akshay <akshay.patil@kiara.tech>
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-10-16 16:59:00 +05:30
Hengfei Yang 7a71ecd8b8 feat: add new ENV for control logo (#4791) 2024-10-15 19:59:25 +08:00
Omkar Kesarkhane d7876dde46 fix: traces UI fixes (#4642)
1. Removed basic and advanced filter modes. Added advanced as default
mode
2. In trace details, removed inline span expand option option

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Added a "Links" tab in the Trace Details Sidebar for better navigation
between span links.
- Introduced a new utility function for converting time from nanoseconds
to milliseconds.

- **Improvements**
- Simplified the trace filtering process by removing unnecessary filter
type selections and logic.
- Enhanced error message rendering for improved clarity, particularly
when no stream or trace data is found.
- Improved the layout and styling of the Trace Details Sidebar for
better user experience.
- Enhanced the display of span details, including dynamic visibility of
span operation names and additional computed properties.
- Streamlined the rendering logic in various components for better
readability and user interaction.
- Updated the handling of URL query parameters for improved state
management.

- **Bug Fixes**
  - Enhanced error handling when no trace details are returned.

These updates streamline the user interface and improve functionality,
making the application more intuitive and user-friendly.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-15 10:57:58 +05:30
Subhra264 aac7025008 fix: Short url fixes (#4773) 2024-10-14 15:24:34 +08:00
Bhargav ad6845c5b7 fix: issue #4757 short url implementation approach change (#4760)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Improved user redirection handling based on the presence of a
`redirect_url` or `short_url` query parameter.
	- Enhanced support for short URLs redirecting to backend API endpoints.
- **Bug Fixes**
- Updated default redirect URI to ensure consistent behavior with
trailing slashes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-14 12:02:44 +05:30
garlic-hub e8d58d407f feat: Accept CloudWatch streams OTLP output format to allow CloudWatch metrics ingestion (#4320) 2024-10-13 20:54:34 +08:00
Abhay Padamaniandktx-vaidehi 7208eba1b0 feat: value mapping for dashboard table chart (#4596)
- #4742 
- allow user to set `display text`, `color` based on value or range of
value.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new optional field for value mappings in dashboard
panels.
- Added a `ValueMapping` component for managing value mappings in table
panels.
- Enhanced `TableRenderer` to support dynamic value mapping and improved
error handling.
- Launched `ValueMappingPopUp` for editing and managing mappings with a
draggable interface.
- Added support for dynamic styling of table cells based on value
mappings.
- Introduced a new prop `value-mapping` in `TableRenderer` for dynamic
value mapping.

- **Bug Fixes**
- Improved logic for displaying error messages and "No Data" states in
dashboard panels.

- **Documentation**
	- Updated documentation to reflect new components and features.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-10-11 18:19:48 +05:30
Bhargavandktx-abhay 37840ac6b8 fix: issue #4723 shorten url on logs page (#4728)
- #4723 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced the Search Bar with the ability to generate and share
shortened URLs.
- Improved management of saved views with notifications for
adding/removing favorites.
- Reset functionality for filters now accurately reflects selected
streams and fields.
- Updated share link functionality to include a loading state for better
user feedback.

- **Bug Fixes**
- Added error handling for URL shortening and clipboard copying
processes, providing user feedback.

- **Chores**
- Updated router logic to store the current URL for redirect handling
during authentication.
- Improved redirection logic in the Login component for better handling
of external URLs.
- Enhanced redirection handling in utility functions to differentiate
between external and internal URLs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-10-08 22:42:48 +05:30
Bhargav 589c009707 fix: issue #4721 (#4729)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced user redirection after login to utilize the intended
`redirectURI` for improved navigation.
- Improved dynamic handling of organization options during the login
process.

- **Bug Fixes**
- Corrected redirection logic to ensure users are sent to the correct
URI instead of a default path.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-08 15:13:41 +05:30
Abhay Padamani f03d59caa3 fix: dashboard hash undefined issue (#4727)
- #4725 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced dashboard management with new methods for adding, editing,
and deleting tabs.
- Introduced functionality to move panels between tabs for improved
layout flexibility.
	- Improved error handling for dashboard retrieval processes.

- **Bug Fixes**
	- Ensured consistent state management when deleting dashboards.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-08 11:51:15 +05:30
Bhargav 72141efaf7 fix: histogram partition error (#4665)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Improvements**
- Enhanced error handling for loading stream fields and displaying error
messages, providing clearer feedback to users.
- Streamlined query data handling for more efficient SQL query
construction, improving performance.
- Improved processing and display of histogram data results, ensuring
accurate and timely visualizations.

These changes aim to provide a smoother user experience and ensure more
reliable functionality within the logging features.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-08 10:53:53 +05:30
Subhra264andSai Nikhil a1dda96cda feat: multi historical timerange evaluation for sql based alerts (#4708)
Addresses #4619 

- [x] Multi timerange alerts
- [x] Add `is_partial` field to the `triggers` usage stream.

### Note: Only available in SQL alerts

<img width="1248" alt="Screenshot 2024-10-07 at 12 39 36 PM"
src="https://github.com/user-attachments/assets/57c99b29-6d59-496d-bb91-f958b6f2e0bd">


- Historical timeranges can be selected through the `Multi Window
Selection` field.
- When multi-window timeranges are selected, the vrl of the alert is
applied only after fetching all the timerange data and is applied to the
combined multi-timerange records.
- If `ResultArray` is specified in the vrl function, the input to the
vrl function will be multi-dimensional i.e. if two timeranges are
selected, then the input to the vrl function will be a two-dimensional
array containing a total of three arrays. Each array represents the data
of each timerange.
- If `ResultArray` is not specified, the input of vrl function is an
one-dimensional array containing records of all the timeranges in a
sorted order (from most recent to oldest).
- After applying the vrl function, the output array (irrespective of
multi/single dimension array) is first converted into a one-dimensional
array and then only the `threshold` rule is applied to the output of vrl
function. If the `threshold` satisfies then the alert triggers otherwise
not.


![Untitled-2024-07-30-1420](https://github.com/user-attachments/assets/0448627e-49f8-483d-b342-f2eaf948885d)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
	- Introduced support for multiple time ranges in alert configurations.
- Added a new `search_multi` function for handling multiple search
queries in a single request.
- Enhanced alert creation with new properties and methods for managing
multiple time ranges.
- New `is_partial` field added to `TriggerData` for tracking partial
evaluations.

- **Bug Fixes**
	- Improved error handling for partial alert evaluations.

- **Documentation**
- Updated comments and documentation for better clarity on new features
and changes.

- **Refactor**
- Streamlined the logic for SQL query handling and alert evaluation
processes.

- **Style**
- Minor formatting adjustments across various components for improved
readability.

- **Tests**
- Enhanced validation checks and filtering logic in alert management
components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-10-07 16:55:40 +05:30
65fae0b89f feat: hash check when updating dashboards (#4687)
impl #4703 

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-10-06 22:59:28 -07:00
8480eb698f feat: support for seconds in query time range date-time selector (#4699)
#4698 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new "Seconds" option in the date-time picker for more
precise time selection.
- Updated time formats to include seconds in the start and end time
fields.
- Enhanced the component's ability to manage relative time selections
with the addition of seconds.
	- Improved handling of duration strings to recognize seconds.
- Adjusted dashboard interactions to handle date-time values more
effectively during zoom events.

- **Bug Fixes**
- Improved validation and logic for handling new time formats and
relative periods.
- Enhanced clarity and efficiency in query duration handling for search
functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-10-04 15:40:41 +05:30
Subhra264andSai Nikhil ea4b759fd9 fix: Add more fields to SearchHistoryHitResponse for search history and reuse it (#4702)
- Add `function`, `event`, `_timestamp` and `unit` to
`SearchHistoryHitResponse`.
- Only include `Search` events for search history
- Revert the change made in #4694 i.e. reuse `SearchHIstoryHitResponse`
for search history.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced search history functionality with additional metadata fields
for more detailed responses.
	- Improved error handling and logging for search history operations.
- Updated data processing logic in the Search History component for
accurate representation of timestamps and durations.

- **Bug Fixes**
- Streamlined data processing and presentation in the Search History
component, ensuring accurate display of search history data.

- **Documentation**
- Updated component and method signatures to reflect changes in data
handling and structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-10-03 19:08:24 +05:30
Sai NikhilandSubhradeep Chakraborty 229dcba554 fix: Updated Search History (#4694)
1.New Fields --> executed at introduced --> this helps in user to know
when this search got executed.
2. when expands Function defination got introduced if user searched with
function then it will be displayed.
3. Pagination got introduced to show all the results by default per page
user can able to see 100 rows.
4. 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced search history component with pagination and improved data
handling.
	- Added new fields in usage tracking to capture function-specific data.
- New method for dynamic pagination control in the search history
component.

- **Improvements**
- Streamlined search result processing by removing unnecessary
filtering.
	- Improved timestamp handling in usage reporting.
	- Flexible handling of the size parameter in search history retrieval.
- Refined partitioning logic and filtering capabilities in search
functionality.
- Enhanced user interface responsiveness in the search history
component.

- **Bug Fixes**
- Adjusted sorting functionality and pagination logic in the search
history component.

These updates enhance the user experience and improve data accuracy
throughout the application.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
2024-10-03 15:17:59 +05:30
Sai Nikhil 4f6057528e fix: fixed sorting functionality in search history (#4686)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced sorting functionality for the search history table,
allowing users to sort by various columns.
- Enhanced data handling in the search history component for improved
clarity and usability.

- **Bug Fixes**
	- Updated methods to better process and display search history data.

- **Chores**
- Added a default result size parameter to the search history query for
improved performance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-02 10:56:37 +05:30
Omkar Kesarkhane b613ca5022 fix: fixed ingestion links style (#4678)
#4677 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced user guidance in the Kubernetes configuration with clearer
URL format instructions.
- Improved readability and styling of SQL syntax guides across various
components.
- Updated the Scheduled Dashboards interface for better report filtering
and display.

- **Bug Fixes**
- Adjusted the handling of scheduled dashboards to ensure accurate
report filtering.

- **Style**
- Added hover effects and improved visual presentation of links and text
across multiple components.
	- Reformatted content in the About section for better readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-01 17:04:00 +05:30
Abhay Padamani 01c8127748 fix: validate response for dashboard query with vrl (#4683)
- #4682 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced error handling for search result responses to ensure valid
data formats.
- Improved logic for managing loading states and caching behavior based
on query presence.

- **Bug Fixes**
- Adjustments made to prevent runtime errors from unexpected data
structures.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-01 16:05:07 +05:30
Subhra264andSai Nikhil 69f16dae32 fix: search history should not contain the search related to usage org (#4673)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced search history functionality with organization-specific
filtering.
- Added a warning message for potential delays in search history
retrieval.
- Introduced new configuration fields for usage tracking in the health
status response.

- **Bug Fixes**
	- Improved error handling for search functions, enhancing traceability.

- **Chores**
- Updated the configuration management and health monitoring
capabilities for better system oversight.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-10-01 15:38:00 +05:30
Abhay Padamani 2f63665b26 fix: partition data order issue with desc in the query (#4674)
- #4675 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced data ordering functionality for API results, allowing users
to view data in either ascending or descending order based on their
preference.
  
- **Bug Fixes**
- Improved handling of API responses, including enhanced error
processing and state management for a more reliable user experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-01 13:00:05 +05:30
Omkar KesarkhaneandSubhradeep Chakraborty 5fa39d1803 feat: SMTP support in alert destinations (#3976)
feat #1401 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a tabbed interface for selecting "Web Hook" and "Email"
destination types in the Add Destination section.
- Added a new tabbed interface for template types in the Add Template
section, with conditional input fields based on selection.
- Implemented a method to navigate to the email template creation page.

- **Improvements**
- Enhanced user experience with dynamic input fields for email addresses
and validation in the Add Destination section.
- Updated the save functionality to handle new properties for templates
and destinations.
- Improved email notification logic to use template titles for email
subjects, ensuring better customization.
- Added validation to ensure destination emails are associated with the
correct organization.
- Expanded data structure to include a new title property for templates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
2024-10-01 12:38:09 +05:30
Sai Nikhil 1dbfda16bd fix: fixed unlimited calls when going back and forth (#4670)
This PR fixes the unlimited calling when going back and forth from the
search_history now only one call will be made until it get succeeded
search_history wont make new calls

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced search history functionality with improved data fetching and
display logic.
- Added error handling and loading state management for better user
experience.
- Improved navigation to the logs page with clearer parameter
construction.

- **Bug Fixes**
	- Resolved issues with multiple fetch calls during loading states.
- Optimized row expansion to allow only one row to be expanded at a
time.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-01 10:15:37 +05:30
Abhay Padamani 7825b8e9ab fix: drilldown query variable issue with variable (#4668)
- #4552 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced drilldown functionality to utilize metadata queries for
improved flexibility.
- **Bug Fixes**
- Refined error handling logic to ensure appropriate default data is
displayed during errors based on configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-30 17:27:29 +05:30
Sai Nikhil 2affad58b0 fix: search history bugs fixed (#4667)
This PR fixes the issues in #4663 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced search history functionality with improved state management
and visibility controls.
- Introduced a new prop `isClicked` in the search history component to
trigger fetching of search history.
  
- **Bug Fixes**
- Adjusted query parameter handling to prevent retention of unnecessary
properties during search history operations.

- **Refactor**
- Streamlined the logic for fetching and managing search history data,
improving clarity and efficiency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-30 16:19:09 +05:30
3c0716f23f feat: dashboard compare with past data support (#4650)
- #4651 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Introduced a custom date-time picker for selecting relative time
periods in dashboard queries.
- Added functionality for managing time shifts, allowing users to
compare data points over selected time ranges.

- **Enhancements**
- Improved handling of query metadata warnings to display only the first
warning.
- Enhanced dashboard panel data management with support for time shifts
in data visualization.
- Updated SQL data conversion methods for improved processing of
multiple queries.

- **Utilities**
- Added functions for converting time offsets to seconds and vice versa.

- **Bug Fixes**
- Refined error handling in query execution and data loading processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
2024-09-30 14:09:03 +05:30
Sai Nikhil 9c0d49e0e8 feat: Search history introduced in the logs page (#4656)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new component for displaying search history, allowing
users to view their past searches.
	- Added a button in the search bar to easily access search history.
- Implemented a dedicated search history component with a table to
display and manage search entries, including options to copy SQL queries
and navigate to logs.

- **Bug Fixes**
- Improved navigation and visibility controls for the search history
section based on user interactions.

- **Documentation**
- Enhanced user experience with loading indicators and no-data states in
the search history component.
- Updated testing configurations for improved interaction with date-time
buttons.
- Introduced a dynamic testing configuration for the date-time button to
enhance flexibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-27 17:52:01 +05:30
ktx-vaidehi 7952243a81 fix: dashboard custom value error fix for single quote (#4654)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
	- Streamlined import statements for improved clarity.
- Reformatted code for better readability, especially in variable
processing.
	- Enhanced logging statements for consistency and style.
- Simplified handling of variable values in the data loader, improving
code clarity without altering functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-26 23:44:00 +05:30