parseablehq / console

Frontend Client for Parseable. Parseable is a cloud native log storage and management for Kubernetes, containerised workloads
https://parseable.com
GNU Affero General Public License v3.0
25 stars 35 forks source link

Added filter_query to filter builder #355

Closed praveen5959 closed 2 weeks ago

praveen5959 commented 3 weeks ago

Added filter_query to all types of filters.

Testing Scenarios:

  1. When the query is present in the query parameter, and the page is refreshed: Current Behavior: The query is applied but it shows filter type as SQL Expected Behavior: The query should be applied with appropriate filter type view in the filter section.
  2. When a filter is saved: Current Behavior: filter_builder is being sent in the payload. Expected Behavior: filter_builder will not be sent, instead filter_query will have the query.
  3. When a filter is saved: Current Behavior: filter_builder is being sent in the payload. Expected Behavior: filter_builder will not be sent, instead filter_query will have the query.
  4. When a saved filter is applied: Current Behavior: The filter query is applied but it always shows the filter view as SQL mode. Expected Behavior: The filter should be applied as per the filter type and the respective view should be showed in the filter bar.
  5. Editing a saved filter: Current Behavior: filter_builder field is sent as per the filter_type in the PUT call Expected Behavior: filter_builder field will not be sent in the PUT call
  6. New URL query parameter on filter application: Expected Behavior: A new URL query parameter should be added to represent filter_type when a filter is applied, to track and maintain the filter type within the URL.