Skip to content

Conversation

@feyruzb
Copy link
Collaborator

@feyruzb feyruzb commented Jan 8, 2026

This pull request introduces a new "Filter Preset" feature to the CodeChecker API, allowing users to save, retrieve, list, and delete reusable report filter configurations. It also updates the API version to 6.67.0 and adds a script for rebuilding Thrift files. These changes involve updates to the Thrift API, backend implementation, client helpers, and database models.

New Filter Preset Feature:

  • Added a new FilterPreset struct to the Thrift API (report_server.thrift) for storing named report filter configurations, and introduced related API endpoints: storeFilterPreset, getFilterPreset, deleteFilterPreset, and listFilterPreset. [1] [2]
  • Implemented backend logic in report_server.py to handle storing, retrieving, deleting, and listing filter presets, including serialization/deserialization of filter data and basic error handling.
  • Updated the database model to support storage of filter presets using a JSON column.
  • Added corresponding client helper methods for the new API endpoints.

Utility and Maintenance Improvements:

  • Added a new API endpoint getNameByValueForFilter to map enum values to user-friendly strings for UI display. [1] [2]
  • Introduced a shell script (completly-rebuild-thrift.sh) to automate the Thrift rebuild process for the API.

Versioning Updates:

  • Bumped the API version from 6.66.0 to 6.67.0 in Python and Node.js package files and updated the supported versions in version.py. [1] [2] [3] [4]

Other:

  • Minor import update in the backend to include the new FilterPreset type.

@feyruzb feyruzb requested a review from dkrupp January 8, 2026 10:40
@feyruzb feyruzb self-assigned this Jan 8, 2026
@feyruzb feyruzb added API change 📄 Content of patch changes API! database 🗄️ Issues related to the database schema. GUI 🎨 documentation 📖 Changes to documentation. new feature 👍 New feature request javascript Pull requests that update JavaScript code (used by DependaBot) python Pull requests that update Python code (used by DependaBot) labels Jan 8, 2026
@feyruzb feyruzb changed the title Addition of Saving and Loading of Filter Presets Addition of Saving and Loading of Filter Presets [WIP] Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change 📄 Content of patch changes API! database 🗄️ Issues related to the database schema. documentation 📖 Changes to documentation. GUI 🎨 javascript Pull requests that update JavaScript code (used by DependaBot) new feature 👍 New feature request python Pull requests that update Python code (used by DependaBot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant