<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a new `UnflattenedPage` class for structured UI
interactions in tests.
- Added functionality to toggle quick mode in the testing framework.
- **Bug Fixes**
- Improved error handling and visibility assertions in various test
cases.
- **Documentation**
- Enhanced comments and code formatting for better readability and
maintainability.
- **Refactor**
- Restructured test cases to utilize the `UnflattenedPage` object,
promoting a page object model for improved code organization.
- Updated test configurations for better clarity and consistency.
- **Chores**
- Removed several outdated test files related to dashboard and logging
functionalities, streamlining the test suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced text snippet suggestions in the Query Editor with updated
labels and insert text.
- Introduced new functions for advanced search and matching operations
in the Query Editor.
- **Improvements**
- Improved search instructions for 'error' values in the Syntax Guide,
including clarifications on case sensitivity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
**Problem**:
Histogram was disabled in SQL mode.
**Solution**:
Enabled histogram in sql mode for only non aggregated queries
---------
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
- Verify if quick mode is displayed
- Verify if user is able to click on interesting fields
- Verify on clicking interesting fields user is able to view the field
in sql mode
- Verify if on clicking interesting field when histogram is enabled,
expected results are displayed
- Verify if error displayed on entering random text in histogram mode
when quick mode is on
- Verify should display order by as default when switched to sql mode
- Verify if on page refresh the orderby is still present by default in
sql mode
- Verify if on page adding removing the interesting field removes in
from sql mode and the results too
In sql mode, if query does not contains " order by " it throws error.
Solution:
On switching to sql mode, by default added "order by _timestamp desc" in
logs query
- should not allow adding drilldown without name
- should add variable under drilldown and verify if drilldown is added
- delete the created dashboard once verification is done
- The notification has been eliminated during the configuration of
absolute dates.
- The SQL mode should not trigger the query automatically upon
deactivation if run query flag is true.
- The Histogram feature should remain inactive while SQL mode is
enabled.
- Modifications related to the quick mode.
- Within SQL mode, the "_timestamp" field is required, and an "order by"
clause is necessary.
---------
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
Created a fixture which will be available during scope=session. This
will ingest data present in tests/test-data/logs_data.json to
org_pytest_data and stream_pytest_data
API Tests positive and negative scenarios -
- Search without payload
- Search with valid sql query
- search with invalid sql query
- search with limit and sql query
- valid histogram query
- histogram query with limit
---------
Co-authored-by: Neha P <neha@openobserve.ai>
Co-authored-by: Neha P <144308844+neha00290@users.noreply.github.com>
Added testcases for the following scenarios
- should match total - histogram mode ignore case for normal and index
search test
- should match total - histogram mode match all for normal and index
search
- display results for fast mode off for match all case
- display results for fast mode off and match all_indexed
- display results for fast mode on and match all_indexed
- display results for fast mode on and match all ignore case
- display results for fast mode on and match all indexed ignore case
- display results for fast mode on and run query
- display results for fast mode on with sql mode on and run query
- display results for fast mode on, SQL mode on and match all indexed
ignore case
- display correct results when fast mode on
- Display added function on switching between tabs and again navigate to
logs
- Change stream settings and click on search stream
- Not display error if match all case added in log query search
- Add streams to logs navigation
- Reset filter testcase
- navigate to another page and again logs page should display logs data
- Should enable SQL toggle and click on any field from LHS
- Add a new template
- Display error when template added without name
- Display error when template added with invalid body
- Add a new destination
- Display error when destination added without name
- Add alert
- Display error when alert added without name under alerts
- Display error when alert added without stream under alerts
- Display error when user directly clicks save without any values under
alerts
- Delete destination
- Delete template
- Verify if add template displayed on alerts page if no template added
- Verify if add template displayed on destination page if no template
added
- Verify a success message displayed on destination creation
- Verify if Add destination button is displayed
- Verify if on cancel on delete confirmation the alert does not get
deleted
- Verify logs selected from dropdown and create alert
Logs -
Fixed logs breaking testcases
- Create a folder and then delete
- Display error when folder created with only spaces under name
- Should add a dashboard under folder and then delete dashboard and that
folder
- Create 2 folders and move dashboard from one folder to another. Then
delete dashboard and folders
- Click on cancel on folder creation UI
- Display error when creating function without mandatory fields
- Display error on entering invalid name under function and save
- Display error on entering invalid function and save
- Display error on entering adding function with same name
- Add a function and associate a stream with the same
- Display error add a function and associate a stream with the same
- Upload a enrichment table under functions and save
- Add a panel
- drag and drop an element
- Verify query generation on the when fields are added and removed from
axis
- Update the chart when field configurations are updated including
filters
- Update the value automatically when trying to save the chart after
switching from the auto to custom mode
- Clear the field after switch from custom to auto mode
- Generate chart with the custom query mode
- Display error when add new chartype with existing chart type value
- Delete all dashboards
- Add a new dashboard
- Add and delete the created dashboard
- Delete all dashboards
- Verify if save button enabled if dashboard name has only spaces added