Commit Graph
69 Commits
Author SHA1 Message Date
dependabot[bot] 8303edcfd4 chore(deps-dev): bump braces from 3.0.2 to 3.0.3 in /tests/ui-testing (#3735) 2024-06-14 11:20:09 +08:00
Neha P fcde5b1693 test: fix logs breaking test (#3722)
Fixed function breaking testcase under logs

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

## Summary by CodeRabbit

- **Tests**
- Updated UI test selectors for the logs page to improve accuracy and
reliability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-12 11:05:44 +05:30
BhargavandNeha P 448f98536e fix: multiple timestamp columns issue on grid (#3696)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
  - Improved spacing in error handling to enhance code readability.

- **New Features**
- Enhanced search functionality with additional parameters for more
precise results.
- Dynamically added columns based on specific conditions to improve data
visualization.

- **Tests**
- Updated UI tests to ensure compatibility with the new search and
column addition features.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-06-10 11:53:35 +05:30
Neha Pandktx-abhay 43e5d4e647 test: table type dashboard (#3677)
- Verify if table  type dashboard is created
- Verify if timezone selected as Asia/Calcuta and timestamp on UI is as
per selected timezone
- Verify if user is able to change timezone to Europe/Zurich
- Verify if the timezone is updated to changed timezone

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

## Summary by CodeRabbit

- **New Features**
- Introduced timestamp comparison tests across different timezones on
dashboards.

- **Tests**
- Added new helper functions for test cases to streamline request
sending and timestamp formatting.
- Cleaned up and optimized existing test cases by removing unused and
commented-out code.

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

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-06-05 11:36:19 +05:30
BhargavandNeha P 3409c8ac73 fix: removed _timestamp and order by restriction from sql mode (#3620)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Improved handling and parsing of SQL queries for better performance
and reliability.
  - Simplified logic for timestamp handling and query parsing.

- **Bug Fixes**
- Fixed issues with error notifications related to SQL orderby and
timestamp requirements.

- **New Features**
- Added dynamic column addition to the result grid based on SQL mode and
selected fields.

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

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-06-04 11:08:04 +05:30
Neha P c15a4acc48 test: e2e-backfill-logdata (#3663)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added new test cases for checking JSON responses with timestamps and
assertions for response statuses.

- **Bug Fixes**
  - Updated query functions for stream exploration to improve accuracy.

- **Chores**
- Added a new environment variable `ZO_INGEST_ALLOWED_UPTO` with a value
of `5`.

- **Tests**
- Enhanced UI tests with new functions and assertions to improve test
coverage and reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-03 13:09:42 +05:30
Bhargav d502edce96 fix: histogram error sql mode (#3608)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced SQL query manipulation and result processing in the logs
functionality.
  - Improved handling of aggregation flags in the logs.

- **Bug Fixes**
- Adjusted logic for calculating total query results to ensure accurate
data representation.

- **Tests**
- Added UI tests for resetting filters, refreshing the page, and
interacting with elements in SQL mode.

- **Chores**
- Commented out `loadLogsData()` function call in the logs module to
optimize performance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-29 16:23:27 +05:30
Neha P 2067e561d5 test: e2e-sanity -testcases (#3616)
- Verify pagination displayed for schema 
- Verify pagination displayed when histogram is off and user clicks on
log result and closes the result
- Verify if pagination is displayed when SQL is on and user clicks on
log result and closes the result
- Verify if results displayed when SQL+histogram is on and then stream
is selected

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

- **New Features**
  - Enhanced login process to improve user authentication flow.
- Added pagination functionality for better navigation through results
in various scenarios.
- Improved display of results when SQL and histogram features are used
together.
- Enhanced user interface for selecting streams and displaying
corresponding results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-29 12:28:53 +05:30
abe6206361 fix: logs page histogram optimisation (#3586)
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
Co-authored-by: omkark06 <omkar@zinclabs.io>
2024-05-25 18:57:48 +05:30
Taiming LiuandNeha P 37ebd33637 fix: _around api for query with limit (#3590)
fix #3587 

<img width="1286" alt="image"
src="https://github.com/openobserve/openobserve/assets/90490946/38ed9e95-6569-4015-a156-6040b0d3fc7c">

---------

Co-authored-by: Neha P <neha@openobserve.ai>
2024-05-24 16:50:35 -07:00
Omkar Kesarkhane 402d450321 chore: Frontend Optimization (#3532)
Lazy loaded packages
Lazy loaded Components
2024-05-24 21:02:06 +05:30
Neha P 4ccb02c081 test: e2e-reports-testcases (#3571)
- Verify if user is able to create and delete Once - type report
- Verify if user is able to create and delete Hourly - type report
- Verify if user is able to create and delete weekly- type report
- Verify if user is able to create and delete monthly - type report
- Verify if user is able to create a new dashboards for all the reports
and delete it
- Verify if user is able to delete all the reports after creating
2024-05-23 19:12:57 +05:30
Neha P 7d6e88ccd3 test: e2e-schema-testcases (#3555)
Testcases for the following scenarios - 

- Verify if user is able to create stream with empty name 
- Verify if user navigates to logs and selects empty name stream and
then selects a stream with fields, all the data should load
- Verify if user is able to add field
- Verify if user is able to delete field
2024-05-21 15:25:20 +05:30
Neha P 9a6ab4d547 test: e2e-match-all-cases-sanity (#3533)
- Added match all and match all index query time taken comparison
- Added match all ignore cases and match_all_indexed_ignore_case time
take comparions
- Add settings page sanity
- Add refresh stats cases on page reload 
- Added more cases under logs for sanity
2024-05-17 12:09:24 +05:30
Neha P e1380c7a5e test: add-dashboard-image-tests (#3510)
**Testcases covered** 
- Create an area type dashboard
- Take a screenshot of this dashboard
- Compare this image with an existing image 
- Delete the panel
- Delete the dashboard
2024-05-14 18:06:04 +05:30
Neha P 4d7cc602dc test: e2e-user-defined-schema (#3494)
Automation for below scenarios-

- Verify if Add to defined schema fields is displayed on UI
- Verify if on clicking the checkbox for items, the button gets enabled
- Verify on adding on user defined schema the selected fields are
displayed.
- Verify after updating these settings user is able to navigate to
stream via stream explorer
- Verify if user is able to click on log search results after updating
schema settings
- Verify if the updated schema displayed under results as ALL post new
data ingestion
- Verify if user is able to remove the fields and update the settings
- Verify after removing, the fields do not display under all in UI
2024-05-12 21:16:57 +05:30
Neha P 4f42c98253 test: e2e-region-testcases (#3490)
Tests for following scenarios
- Verify if user is able to view region tab
- Verify if user is able to click on region tab
- Verify if 2 options displayed under region tab
- Verify if 1 Region saved under saved view is displayed when the view
applied
- Verify if user is able to select stream explorer and click on saved
view only 1 selected option to be displayed
- Verify if saved view is deleted after adding only1 region should click
on region, change
2024-05-12 14:13:17 +05:30
Neha P 31afa721aa test: e2e-search-around (#3481)
Automation for bug - #3480 
-Logs: Blank page displayed after user adds a function on logs page,
clicks on any log result and then selects search around
2024-05-11 16:50:44 +05:30
Bhargav 02c257e5c2 fix: logs count call split (#3456) 2024-05-11 15:58:12 +05:30
Neha P 94db771bc1 test: fix flaky testcase (#3476)
- Fix for add streamroute node flaky testcase
2024-05-11 09:40:45 +05:30
Neha P 2135fc1a3d test: e2e-pipeline-testcases (#3472)
- Function creation and deletion for pipeline changes (bug fix)
- Created a function for pipeline delete
#3464
2024-05-10 19:38:41 +05:30
Neha P ff1c95b564 test: multi-select variables-logs-testcases (#3468)
Dashboard : Multi select variables 
- Should select 1 variable 
- should select multiple variable
- should select All variables 
- Verify selection appears on UI. 
- Delete a panel and dashboard 

Logs:
- Search around to work when only histogram enabled 
- Search around to work when SQL is enabled
2024-05-10 16:53:45 +05:30
Neha P 6eb8c8b489 test: e2e pipeline testcases (#3451)
- Verify if user is able to click on pipeline via menu
- Verify if user is able to click on pipeline from the tabs via pipeline
menu
- Verify if user is able to select a stream on pipeline UI
- Verify if user is able to add name on pipeline UI
- Verify if user is able to close pipeline UI
- Verify if user is able to save a new pipeline
- Verify user is able to edit and delete a new pipeline
- Verify if functions is displayed when editing pipeline
- Verify if route is displayed on editing pipeline
- Verify functions drag drop works on pipeline UI
- Verify route drag drop works on pipeline UI
- Verify if error displayed on adding invalid functions on pipeline UI
- Verify if user is able add a new function successfully via pipeline
functions
- Verify if cancel button works on function additon UI
- Verify if error displayed when route created with only spaces
- Verify if user able to create route and then delete the pipeline post
creation of route
- Verify if error displayed on clicking save button directly without
adding name for function under pipeline
2024-05-09 21:19:59 +05:30
42982877e5 test: logs quickmode playwright tests (#3143)
- testing playwright testcases for logs quickmode

---------

Co-authored-by: Ankur Srivastava <best.ankur@gmail.com>
Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-05-09 11:18:45 +02:00
c9a4e00d69 feat: data ingestion pipeline (#3282)
Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: Neha P <neha@openobserve.ai>
2024-05-06 19:31:46 +05:30
Ashish KolheandNeha P a413179068 fix: only get required versions while watching (#3399)
Co-authored-by: Neha P <neha@openobserve.ai>
2024-05-06 16:24:46 +05:30
BhargavandHengfei Yang c51e8bd84f fix: histogram pagination fix (#3339)
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-04-25 19:40:44 +08:00
Omkar KesarkhaneandBhargav 545e0bf6bc fix: Enabled histogram in sql mode for non aggregated queries (#3133)
**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>
2024-04-10 19:11:08 +05:30
Neha P 898cb1cc47 test: testcases for quick mode (#3124)
- 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
2024-03-30 11:07:21 +05:30
Omkar Kesarkhane 6e47372cfe fix: saved view issues (#3112)
fix #3109
2024-03-27 19:37:07 +05:30
Omkar Kesarkhane aabeb04254 fix: added order by _timestamp desc in logs query (#3103)
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
2024-03-26 20:34:49 +05:30
Bhargav 8dca74b03e fix: added pagination in logs and stream page for schema field list (#3093) 2024-03-25 15:12:21 +05:30
Neha P d0b9d5043f test: added drilldown tests (#3070)
- 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
2024-03-22 17:42:07 +05:30
BhargavandHengfei Yang 0ad6888e5c feat: Interesting fields UI changes (#3058)
- 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>
2024-03-22 16:55:10 +05:30
Hengfei Yang fd49360f49 feat: add quick mode fields (#3068) 2024-03-22 15:54:39 +08:00
Neha Pandktx-vaidehi 48b5247126 test: added aggregation queries and folders testcase fix (#3064)
- added search API tests for aggregation queries
- fixed dashboard-folders tests

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-03-21 18:19:20 +05:30
Bhargav 5300cb1f22 fix: pagination disable on limit query (#3037) 2024-03-18 23:12:32 +05:30
d686481569 test: prepopulate the amount of data for each test #3000 (#3031)
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>
2024-03-18 16:38:56 +01:00
Hengfei Yang e33ae00ea1 feat: merge dev into main (#3016) 2024-03-17 22:38:07 +08:00
Bhargav e0ae01908f fix: allowed "-" & "_" in saved view name (#2968) 2024-03-14 12:25:47 +05:30
Neha P 962acf55cd test: inverted index value for queries testcase (#2931)
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
2024-03-10 19:57:22 +05:30
Neha P 5d2a798d16 test: logs limit testcases (#2918) 2024-03-08 23:14:52 +05:30
Neha P aa996ca58a test: fix logs testcases (#2917) 2024-03-08 20:21:56 +05:30
Neha P a9dbe51e41 test: add functions testcases (#2910) 2024-03-08 15:38:04 +05:30
Neha P be66547db2 test: remove quick mode testcases (#2900) 2024-03-07 17:05:52 +01:00
Neha P 85c3c06c04 test: fastmode testcases (#2890)
- 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
2024-03-07 18:27:56 +05:30
BhargavandHengfei Yang dff2d14934 feat: fast mode added on logs page (#2871)
Added additional toggle button for fast mode.

---------

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-03-06 15:52:48 +05:30
Neha P bc22d8c419 test: alerts testcases run (#2867)
- Run all alerts tests
- Run all logs tests
- Run all folders tests
2024-03-06 13:08:10 +05:30
Neha P ba9732c8cb test: run logs breaking testcase (#2833)
- fixed JSON view broken testcase under logs
2024-03-01 14:19:55 +05:30
Neha P b68ba66ea5 test: removed stream settings testcase (#2809)
- Skipped stream settings testcase as UI changed.
2024-02-28 15:20:37 +05:30