Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add facets filtering for Incidents #3060

Open
wants to merge 72 commits into
base: main
Choose a base branch
from

Conversation

skynetigor
Copy link
Contributor

@skynetigor skynetigor commented Jan 19, 2025

Closes #2910

📑 Description

  • Server-side facets filtering infra (facets panel, adding new facets, clearing filter, filtering the list)
  • CEL to SQL translator
  • Facets for Incidents page
  • Tests
  • Docs

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

…efactor related components for improved data handling
…e IncidentList component to accept initial facets data
…ce PropertiesMetadata for better property handling
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

Attention: Patch coverage is 33.37004% with 605 lines in your changes missing coverage. Please review.

Project coverage is 42.32%. Comparing base (e8cbcb3) to head (b9ccfa1).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
keep/api/core/cel_to_sql/cel_ast_converter.py 25.61% 151 Missing ⚠️
keep/api/core/cel_to_sql/sql_providers/base.py 23.62% 139 Missing ⚠️
keep/api/core/incidents.py 28.73% 62 Missing ⚠️
keep/api/core/facets.py 18.30% 58 Missing ⚠️
keep/api/core/cel_to_sql/properties_mapper.py 22.58% 48 Missing ⚠️
keep/api/core/cel_to_sql/ast_nodes.py 50.00% 46 Missing ⚠️
keep/api/core/cel_to_sql/properties_metadata.py 45.83% 26 Missing ⚠️
keep/api/routes/incidents.py 31.57% 26 Missing ⚠️
...ep/api/core/cel_to_sql/sql_providers/postgresql.py 40.00% 15 Missing ⚠️
keep/api/core/cel_to_sql/sql_providers/sqlite.py 42.30% 15 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3060      +/-   ##
==========================================
- Coverage   43.06%   42.32%   -0.74%     
==========================================
  Files         166      182      +16     
  Lines       16685    17905    +1220     
==========================================
+ Hits         7186     7579     +393     
- Misses       9499    10326     +827     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Updated facet-panel-server-side.tsx to enhance filtering logic
- Refactored facet.tsx for better performance
- Improved facets-panel.tsx to support new filtering features
- Enhanced incident-list.tsx to display filtered incidents correctly
- Updated useIncidents.ts to integrate new filtering logic
… improve error handling in CelToAstConverter
…ldsNode, PropertiesMappingException, and PropertiesMapper classes
@skynetigor skynetigor marked this pull request as ready for review January 20, 2025 07:29
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jan 20, 2025
@dosubot dosubot bot added Documentation Improvements or additions to documentation Feature A new feature labels Jan 20, 2025
@@ -0,0 +1,21 @@
"""empty message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the message or migration itself?
This is conflict-solving migration version mine and from main
I can add better message instead of "ëmpty message"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed message

@@ -0,0 +1,130 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add docs about this moduel and what it does

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Feature A new feature size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[➕ Feature]: CEL filtering for incidents
2 participants