Commit Graph
1070 Commits
Author SHA1 Message Date
Omkar Kesarkhane 8d72af70a6 fix: improved query and VRL function validation in alerts (#4308)
fix #4305 #4304 #4315 

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

- **New Features**
- Enhanced error handling for SQL queries with specific error messages
for better user feedback.
- Introduced a section for VRL function errors with a toggle feature for
expanded details, improving clarity.
- Added a `debounceTime` property to optimize input processing in the
query editor.

- **Improvements**
- Streamlined error message display for SQL queries, moving from generic
to context-sensitive messages.
- Adjusted control flow to ensure proper validation before form
submission, preventing invalid entries.
- Improved notification messages for clarity, specifically regarding
search operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-23 17:12:51 +05:30
ktx-vaidehi f60927f459 feat: Dashboard top N results (#4258)
- #4302
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced new configuration options for dashboard panels, including
settings for "Top Results" and an "Others" series to enhance data
visualization.
- Added an input field in the dashboard configuration panel for users to
specify the number of top values displayed.

- **Improvements**
- Enhanced data processing capabilities for SQL data, allowing better
aggregation and sorting of results.
- Streamlined the dashboard configuration flow for an improved user
experience.
- Improved error handling and logging in data processing to enhance
debugging and visibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-23 14:45:39 +05:30
Omkar Kesarkhane 7a8656dfc4 fix: Updated QueryEditor component to support languages (#3988)
fix #4292 
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new custom `QueryEditor` component for a more
customizable and consistent editing experience across various forms and
editors.
- Added support for a new programming language, VRL, including syntax
highlighting and theming.

- **Enhancements**
- Updated multiple components (`AddTemplate.vue`, `AddFunction.vue`,
`EditRole.vue`) to utilize the `QueryEditor` component, improving
editing functionality and user interface.
- Enhanced the `SearchBar.vue` component for better formatting and
language handling.

- **Bug Fixes**
- Adjusted the language attribute in the `SearchBar.vue` component from
"ruby" to "vrl" to ensure correct syntax highlighting.

- **Tests**
- Improved stability of the alerts test suite by adding a timeout after
user input actions.
- Added a timeout in the sanity test cases to enhance the reliability of
template submission.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-22 21:12:55 +05:30
Sai Nikhil 6112a2110d fix: #4226 fixed Select all columns condition failing (#4229)
in the data we get is_real_time as a string so I have compared with the
string so that it passes the check

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


- **Bug Fixes**
- Improved the condition checking for the `is_real_time` property during
alert submission, ensuring more accurate behavior when handling
real-time alerts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-22 10:19:07 +05:30
Omkar Kesarkhane 609c2f7d55 fix: incorrect time range on refreshing page for time range restricted streams (#4278)
fix #4262 

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

- **New Features**
  - Improved handling of time zones and relative date calculations.
  - Added safeguards against exceeding user-defined date limits.

- **Bug Fixes**
- Enhanced logic for computing relative periods based on user-defined
restrictions.
  - Refined handling of various time periods to prevent invalid options.

- **Style**
- Minor formatting adjustments for improved readability and
maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 17:26:54 +05:30
Bhargav 48cca9ce7a fix: issue #4266 histogram bar issue (#4276)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Improved performance and data consistency in histogram data processing
by optimizing the execution of timeout functions based on the number of
partitions.
- **Bug Fixes**
- Ensured that histogram data is generated before pagination is
refreshed for enhanced data accuracy.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 16:59:44 +05:30
Sai Nikhil 89baf86709 fix: #4264 pagination and total events disappears when histogram error (#4275)
This PR Fixes the issue #4264 

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


- **Bug Fixes**
- Improved the visual presentation of error messages in the search
results by enhancing spacing.
  
This change enhances user experience by making error messages more
visually distinct and easier to read.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-21 16:35:21 +05:30
Sai Nikhilandktx-vaidehi 3626b98e00 fix: Added currency list in config of dashboard (#4237)
1.added 5 currency list in config 
2.added format for the currency to display  unit and then value


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


- **New Features**
- Added six new currency options (US Dollar, Euro, British Pound,
Japanese Yen, Indian Rupees) to the dashboard configuration panel.
	- Enhanced localization support with new currency labels in English.
- Improved currency formatting capabilities for better usability in
displaying financial data.

- **Bug Fixes**
- Resolved issues with displaying currency symbols correctly, ensuring
accurate representation in the app.

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

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-08-20 17:41:11 +05:30
Omkar Kesarkhaneandktx-abhay 6d07e0cec1 fix: Dashboard panel tooltip improvements (#4223)
- #4257 

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


- **New Features**
- Introduced a `useWorker` function for improved management of web
workers, enhancing performance for heavy computations.

- **Improvements**
- Refactored variable declarations in the `convertSQLData` function to
enhance clarity and immutability.
- Enhanced tooltip handling and sorting logic for a more intuitive user
experience in both `convertSQLData` and `convertPromQLData` functions.
- Improved display of series data in tooltips to highlight the hovered
series effectively.

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

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-08-20 10:36:05 +05:30
Omkar Kesarkhane 904dda4604 fix: Restricted selection of _timestamp and _all fields as defined schema in stream settings (#4252)
fix #4242 

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

## Summary by CodeRabbit

- **Style**
- Improved code readability by adding trailing commas in various array
and function argument lists throughout the `schema.vue` component.
- Enhanced consistency in properties and method calls, reducing diff
noise for future modifications.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-19 15:39:28 +05:30
Abhay PadamaniandKirtan Thakkar 541dfcafb0 fix: dashboard edit panel two times api call issue (#4224)
- #4227 
- #4228 

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

## Summary by CodeRabbit

- **New Features**
- Introduced debounce functionality for panel data loading, improving
performance during rapid updates.
- Enhanced state management in the Add Panel component to ensure
accurate initialization of updated variables.

- **Bug Fixes**
- Fixed the logic in the Add Panel component to correctly handle
variable updates, ensuring proper behavior during user interactions.

- **Documentation**
- Added logging statements for better visibility into execution flow
related to data loading processes.

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

---------

Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-08-16 15:28:14 +05:30
Bhargav 2b458940dd fix: histogram partial loading (#4212)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Bug Fixes**
- Improved error handling for histogram data fetching, providing clearer
feedback when search operations are canceled.
- Streamlined the conditions under which error messages are assigned,
enhancing clarity and preventing unnecessary error notifications.

- **Refactor**
- Optimized the structure of error handling logic for better readability
and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-16 14:55:16 +05:30
Adam Gardner dec66d405a chore: wording change "logs" to "data" (#4187) 2024-08-16 11:50:14 +08:00
Neha Pandomkark06 701e0b640a test: assert timestamp and all displayed in fields when uds enabled (#4208)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Tests**
- Enhanced test coverage for schema functionalities, adding interactions
for log search and schema selection.
- Improved verification of `_timestamp` and `_all` fields to ensure
thorough validation of the schema selection process.
- Streamlined logging process by removing unnecessary console logging
during test execution.

- **Style**
- Improved formatting and readability in the `IndexList` component,
including adjustments to multiline expressions and conditional
renderings.
- Enhanced semantic clarity by restructuring template elements for
better organization and styling.

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

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-08-14 18:19:32 +05:30
Sai Nikhil e8dd2e8961 fix: timestamp not adding to result grid for user defined schema (#4207)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced flexibility in search data handling by dynamically checking
for the presence of a timestamp field in user-defined schemas. This
improvement allows the system to accurately reflect available data
fields, improving overall functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-14 16:49:20 +05:30
Bhargav 969c283eba fix: auto order by clause removed for sql mode (#4194)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Adjusted search functionality to prevent issues with results sorting
when clicking on alert-generated URLs.

- **Improvements**
- Modified control flow to enhance the stability of the search results
display.
- Updated test cases to reflect changes in query visibility conditions,
allowing for broader match criteria.
- Simplified test queries by removing unnecessary ordering, improving
test flexibility.
- Shifted focus of sanity test from `_timestamp` to `job`, aligning with
changes in expected UI output.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-14 15:54:48 +05:30
Bhargavandktx-abhay 3ecf435c50 fix: for user define schema explicitly add _timestamp and all columns (#4204)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced the logs processing by including additional elements in the
fields array, providing a richer and more informative output.
- Improved the construction of the user-defined schema to ensure a
consistent structure and clarity, incorporating a timestamp and all
defined fields.

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

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-08-14 13:45:05 +05:30
54f1448b7c fix: Improved period (time range) functionality in pipelines derived stream (#4191)
Improved Period of derived stream to be same as frequency

Complete the `Frequency` task in the tracking issue #4170 

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

## Summary by CodeRabbit

- **New Features**
- Introduced a new component for managing scheduled alerts with a tabbed
interface for custom alerts, SQL queries, and PromQL queries.
- Enhanced user experience with dynamic input fields, real-time
validation, and aggregation settings for alert conditions.
	- Added cron job configuration options for scheduling alerts.

- **Changes**
- Renamed the scheduled alert component to reflect the new
functionality, impacting how the application handles alert triggering
and scheduling.
- Adjusted timing and frequency parameters for triggering conditions in
the alert management system.

- **Improvements**
- Enhanced logging functionality for monitoring enrichment data saving,
providing insights into operations and parameters involved.
- Improved error handling and response validation processes for
ingestion tasks, ensuring more informative logging and error reporting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
Co-authored-by: oasisk <ashish.j.kolhe@gmail.com>
2024-08-13 17:15:10 +05:30
Bhargav f68c78e912 fix: logs page datepicker issue fix for restricted time range (#4195)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced date and time selection with dynamic maximum values for
various relative periods (minutes, hours, days, etc.).
- Introduced context-sensitive options for relative periods based on
user input.

- **Improvements**
- Improved responsiveness to user selections, ensuring they remain
within logical constraints.
- Added a method for calculating maximum values, keeping the UI
synchronized with data constraints.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-13 15:35:42 +05:30
Omkar Kesarkhane 0af15dde98 fix: updated english language flag (#4185) 2024-08-12 13:56:21 +05:30
Omkar Kesarkhane 3c7c26cc16 fix: Resource name validation (#4184)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced enhanced validation logic for form fields in alert
creation, destination, template, and report components, improving user
feedback on input errors.
- Added a new utility function `isValidResourceName` for validating
resource names across various components.
  
- **Bug Fixes**
- Improved error messages for input validation failures to provide
clearer user guidance.

- **Style**
- Minor formatting changes for improved code readability and consistency
in function signatures.

- **Chores**
- Updated import statements to include new utility functions across
relevant components.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-12 13:20:23 +05:30
Omkar Kesarkhane d9501b900a fix: disabled View Trace btn in logs if traces menu is disabled (#4181)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced dynamic menu visibility management based on user actions.
	- Enhanced trace viewing functionality with new event support.

- **Bug Fixes**
- Improved responsiveness of trace detail resets under various
conditions.

- **Style**
- Standardized formatting for better readability across multiple
components.

- **Chores**
- Updated state management to improve menu visibility control in the
application.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-12 11:50:19 +05:30
5f77ae2d10 fix: convert [:?#\s'"&%] characters into _ while saving alert/report/destination/template names (#4103)
- Convert `[:?#\s'"&%]` characters into `_`
- Migration for updating existing alerts/destinations/templates/reports
with name containing the above characters.

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

## Summary by CodeRabbit

- **New Features**
- Enhanced initialization process with better tuple management for data
migration.
- Added conditional execution for migration processes based on node type
and version.
- Introduced new functions to validate and format names according to
OFGA requirements.
- Improved handling of destination, alert, and report names in API
interactions for better compliance.

- **Bug Fixes**
- URL parameters are now properly encoded to prevent malformed API
requests.

- **Documentation**
- Improved error handling and logging for migration processes for better
visibility.

- **Style**
- Minor formatting improvements for better code readability and
consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-08-12 11:18:32 +05:30
8031e001b9 feat: derived stream (#4160)
`DerivedStream`, as part of `Pipeline`, enables the use case of querying
an existing stream, `source`, with optional conditions and aggregations.
The resulted data will then be ingested into a new stream,
`destination`.

This PR provides the feature's initial offering. Please follow below
issue to track & suggest future improvements
#4170 

Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2024-08-09 13:29:00 -07:00
Bhargav 9acb1b0625 fix: stream name wrapped in quotation as stream name contains hyphen … (#4165) 2024-08-10 01:35:51 +08:00
Abhay Padamani c697b5a103 feat: threshold line for dashboard chart (#4087)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced the ability to configure mark lines within dashboard
panels, allowing for more detailed visual representations.
- Added a new structure, `MarkLine`, to support configuration options
for mark lines, enhancing dashboard customization.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-09 12:40:12 +05:30
Abhay PadamaniandKirtan Thakkar ff24e794f4 perf: breakdown timechart performance improvement (#4116)
- `convertSQLData`: Cache `xAxis` data that has been converted to the
appropriate timezone.

---------

Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-08-09 11:27:23 +05:30
Sai Nikhil ed0b7d9933 fix: #4124 fixed when histogram toggled the results will be displayed (#4161)
with this PR
Logs: When histogram is disabled and results are displayed and then when
histogram is enabled, error displayed on graph
 This will be solved 

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


- **New Features**
- Introduced a loading state for histogram data, providing visual
feedback during data fetching.
	- Enhanced error handling during the histogram data retrieval process.

- **Bug Fixes**
- Improved data integrity by initializing the `aggs` property to an
empty array if null, preventing potential runtime errors.

- **Style**
	- Minor formatting adjustments for improved readability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-09 10:02:24 +05:30
Abhay Padamani 6c99dc9d24 fix: use user defined schema for dashboard fieldList (#4153)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced dashboard functionality with user-defined schemas for better
data flexibility.
- Improved drag-and-drop capabilities for stream fields across various
dashboard components.
- Updated notifications and management of variable data in the add
panel.

- **Bug Fixes**
- Adjusted UI test case to reflect changes in visible text regarding
chart configuration updates.
  
- **Chores**
- Modified pagination settings in the Field List component for improved
performance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-08 18:40:10 +05:30
Bhargav 421e5a01bd fix: added back interesting field icon and eye icon on _timestamp column (#4150)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced icon visibility in the logs plugin when `quickMode` is
enabled, making it easier for users to identify relevant fields across
different views.
- **Bug Fixes**
- Streamlined conditions for icon rendering, improving the
responsiveness and user interface behavior of the logs display.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-08 09:24:36 +05:30
cfdc09fcba feat: Logs Traces correlation (#3705)
fix: #2369 
      #3379 
      #4090 
      
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced new UI components for managing organization settings with
validation.
  - Added "View Logs" button functionality in the trace sidebar.
- Enhanced span logs management with new selection and viewing features.
  - Added search capabilities for log stream selection in trace details.
- Added new routes for Trace Details and Organization Settings with
access control.

- **Improvements**
- Updated layout and styling for better user experience, including
full-width trace details.
  - Integrated services for fetching trace metadata and log streams.
- Enhanced user feedback mechanisms for actions like copying trace URLs.
- Improved interactivity and responsiveness in span-related components.
- Refined navigation and routing for trace details and organization
settings.
- Improved error handling and state management in log fetching
functionalities.

- **Bug Fixes**
- Adjusted CSS to correct layout issues in trace details and sidebar
views.
- Improved test reliability in UI interaction testing by extending wait
times.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Subhradeep Chakraborty <chakrabortysubhradeep556@gmail.com>
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-08-07 20:07:40 +05:30
Bhargav 337e973a70 fix: issue#4144 corrected type (#4146)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced stream retrieval functionality by adapting the filtering
mechanism to use stream types instead of selected streams, improving the
accessibility of streams in the application.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-07 19:44:05 +05:30
Sai Nikhil 6ec7dbba42 fix: #4142 Histogram chart display in saved view (#4145)
#4142  got solved by this PR

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


- **New Features**
- Enhanced the search functionality to refresh histogram data
automatically upon initiating a search, ensuring users see the most
current results.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-07 19:21:46 +05:30
Bhargav ebbd241142 fix: duplicate call on page refresh (#4139)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Improved user experience with enhanced loading state management during
log data retrieval.
- **Bug Fixes**
- Streamlined error handling to ensure loading states accurately reflect
data retrieval processes.
- **Refactor**
- Enhanced code readability and maintainability by simplifying logic and
improving variable formatting.
- **Chores**
	- Removed unnecessary commented-out code to clean up the codebase.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-07 18:53:18 +05:30
Sai Nikhil 6a289a75ad fix: #4098 loading icon stops when error in values api (#4128)
This PR fixes #4098 so when there is an error in values api then the
spinner / loading icon will be stopped and as well as it shows no value
found

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


- **Bug Fixes**
- Enhanced error handling in the IndexList component to ensure accurate
loading states during asynchronous operations, preventing indefinite
loading indicators and improving overall user experience.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-07 18:11:47 +05:30
Subhra264andomkark06 89a912e7dd fix: do not allow * in first column of alert and report cron expression and introduce vrl in alerts (#4126)
- Replace first column `*` with the current second in cron expression
while saving report and alerts
- Introduce vrl functions in alerts. The new field `vrl_function` in
alert payload stores the vrl function in the alert in base64 encoded
format.

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

## Summary by CodeRabbit

- **New Features**
- Introduced an optional field for alerts to allow the association of
VRL functions.
- Enhanced scheduling for alerts and reports by dynamically modifying
cron expressions to include the current second.
- Added a VRL function editor in the Scheduled Alert component for
improved query editing, with toggles for enhanced user interactivity.
- Improved query construction with optional parameters and enhanced
error handling for timestamp handling.

- **Bug Fixes**
- Improved robustness of the alert and report scheduling systems with
better handling of cron expressions.
- Enhanced error handling for decoding failures related to VRL functions
in alerts.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-08-07 17:40:45 +05:30
Bhargav 66226f01a3 fix: reduced default settings of total number of events per page (#4041)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Adjusted the logs display settings to show fewer rows per page (from
250 to 100), enhancing navigation and making log entries more manageable
for users.

- **Bug Fixes**
- Updated test cases to reflect the change in pagination display,
ensuring consistency between the UI and the expected outcomes in tests.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-06 14:31:53 +05:30
Sai NikhilandBhargav 94708e5a75 fix: restricting users to use select all (*) while creating alerts in SQL mode (#4083)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced the alert submission process with strict validation for SQL
queries to prevent selection of all columns.

- **Bug Fixes**
- Improved control flow in the alert form, ensuring form submission only
occurs with valid SQL queries.

- **Style**
	- Minor formatting adjustments made for improved readability.

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

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-08-06 11:43:43 +05:30
Sai Nikhil 5724ba1bb9 fix: pagination part fix (#4096)
1. Logs count fix when moving back and forth (this was the issue that
came up when I have fixed the different logs count showing at first )
2. Fixed another issue that onMount in histogram mode when we move to
any other page and comeback to first page it shows 0 total count.

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


- **New Features**
- Enhanced handling of query results for improved accuracy in data
representation.
- Introduced dynamic time parameters for queries based on pagination,
optimizing data retrieval.

- **Bug Fixes**
- Addressed potential discrepancies in the total count of query results.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-05 17:55:18 +05:30
Sai Nikhil 4bc119342a fix: #4003 batch deletion feature introduced (#4071)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Introduced batch deletion functionality for log streams, allowing
users to delete multiple streams at once.
	- Added a confirmation dialog to confirm batch deletion actions.
	- New button for initiating batch deletion based on selection state.

- **UI Enhancements**
- Updated user interface to better support batch operations and improve
user feedback.
	- Minor styling adjustments for seamless integration of new features.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-05 17:31:42 +05:30
Bhargav a43abb7515 fix: default timestamp column on logs page (#3860)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
  - Introduced a new boolean field to enhance log search functionality.

- **Improvements**
- Updated log search logic to include a timestamp column when
applicable.
- Enhanced UI elements for conditional rendering based on log search
criteria, improving clarity and relevance.

- **Tests**
- Updated UI testing scripts to reflect changes in focus from the
timestamp field to the job field, ensuring alignment with the updated
application interface.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-05 11:57:04 +05:30
Bhargav 4db3afd6d6 fix: histogram will be updated when run query button will be pressed … (#4112)
…or page refresh will be done

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

## Summary by CodeRabbit

- **New Features**
- Introduced a new `refreshHistogram` property to improve histogram
management within the logs component.
- Enhanced the logs visualization to refresh the histogram in real-time
when toggling log views.

- **Bug Fixes**
- Corrected conditions for refreshing the histogram to ensure data
accuracy based on user interactions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-02 17:23:53 +05:30
Bhargav 20ac789c98 Logs page histogram partition (#4102)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Enhanced error handling for clearer and more consistent messaging in
the application.
- Improved logic for histogram data processing, including new checks for
multi-stream searches.
- Introduced a method to directly access and redraw chart data in the
SearchResult component, boosting chart interactivity.

- **Improvements**
- Standardized handling of time intervals for generating consistent
histogram results.
- Reactivity enhancements allow charts to update accurately with changes
in underlying data.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-02 16:04:06 +05:30
Abhay Padamani db1ca05b2a fix: logs page histogram resize issue while toggle from visualize to logs (#4095)
- #4094 

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

## Summary by CodeRabbit

- **New Features**
- Improved chart responsiveness by dispatching resize events when the
visualization toggle state changes.
- **Bug Fixes**
- Enhanced event listener management to prevent multiple registrations,
improving performance and preventing memory leaks.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-31 17:43:30 +05:30
Sai Nikhil 81399517ff fix: no preview message for SQL mode (#4070)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added a conditional message in the Preview Alert to inform users when
a preview is not available in SQL mode, enhancing user feedback.

- **Style**
- Introduced new styling for the SQL preview message to improve visual
presentation and readability.

- **Chores**
- Minor formatting adjustment in the Add Alert component for improved
code readability without affecting functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-31 14:31:34 +05:30
Sai Nikhil 56bf447c19 fix: #3630 solved cmd + enter issue (#4023)
Removed Monoco-single-line dependency
When user clicks on Ctrl + enter (windows) or Cmd + enter (max) in query
mode or vrl function editor
run query runs


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

- **New Features**
- Introduced a keyboard shortcut (Ctrl + Enter) in the Search Bar for
executing queries, enhancing user experience and interactivity.

- **Dependency Updates**
- Updated the dependency from `vue-monaco-singleline` to
`monaco-editor-vue`, which may introduce new features and optimizations
for the Monaco Editor integration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-31 11:28:05 +05:30
Sai Nikhil 69f352f569 fix: #3975 fixed incorrect logs count showing on query search at first (#4040)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Improvements**
- Enhanced handling of query results and total count for improved data
accuracy.
- Adjusted logic for calculating total count during pagination to
increase reliability.
- Refined histogram data generation, potentially impacting presentation
clarity.

- **Style**
	- Minor formatting updates for improved code readability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-31 10:41:55 +05:30
Sai Nikhil 3943c8ca19 fix: Reduced vertical spacing between and in the folders of the dashboard (#4039)
In the dashboards page folders vertical space in the folders and between
the folders made reduced

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


- **New Features**
- Enhanced the layout and styling of the dashboard interface for
improved visual clarity.
    - Introduced a separator between tabs for better distinction.

- **Style**
- Added a new CSS class to improve tab styling, including adjustments to
spacing and visual hierarchy.
- Minor style corrections to ensure consistency across the dashboard
component.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-31 10:03:12 +05:30
ktx-abhay 42359ddc5b feat: predefined function support for dashboard (#4082)
- Toggle button to use VRL function editor.
- Use predefined/saved function.

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


- **New Features**
- Introduced a toggle feature for a VRL function editor in the
dashboard, allowing users to show or hide the editor.
- Added a dropdown menu for selecting saved VRL functions, enhancing
query management.
- Implemented a new method to update and manage virtual function fields
dynamically based on user interactions.

- **Bug Fixes**
- Simplified visibility logic in components to enhance the user
interface responsiveness.

- **Chores**
- Adjusted layouts and improved code formatting for better clarity and
consistency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-29 17:02:54 +05:30
Bhargav 9d7ce8e259 fix: added workgroup column in query management table (#4075)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new column for "Work Group" in the Running Queries list,
enhancing data visibility and sorting capabilities.
- Updated filtering logic to include "Work Group," allowing users to
refine their query results more effectively.
- Added localization support for the new query type label in the English
language strings.

These improvements collectively enhance user interaction and data
representation within the application.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-26 20:20:57 +05:30