This repository was archived by the owner on Mar 5, 2026. It is now read-only.
feat: enhance API queries and Rust bridge functions with internal inclusion support#5
Merged
andersonleal merged 1 commit intomainfrom Feb 10, 2026
Merged
feat: enhance API queries and Rust bridge functions with internal inclusion support#5andersonleal merged 1 commit intomainfrom
andersonleal merged 1 commit intomainfrom
Conversation
…lusion support - Refactor functionsQuery and triggersQuery to accept an optional 'include_internal' parameter for improved data fetching. - Update fetchFunctions and fetchTriggers to handle the new parameter, allowing for conditional inclusion of internal functions and triggers. - Modify related route files to utilize the updated queries with the new parameter, enhancing the flexibility of data retrieval. - Adjust Rust bridge functions to accept and process the 'include_internal' parameter, ensuring consistent behavior across the application. These changes improve the API's capability to filter internal resources based on user preferences.
📝 WalkthroughWalkthroughThis pull request adds conditional inclusion of internal/system functions and triggers across the frontend and backend. The Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Component as ConfigPage/<br/>HandlersPage
participant QueryBuilder as Query Builder<br/>(functionsQuery)
participant API as API Layer<br/>(fetchFunctions)
participant Backend as Rust Backend<br/>(handle_functions_list)
User->>Component: Set showSystem state
Component->>QueryBuilder: Call functionsQuery({<br/>include_internal: showSystem<br/>})
QueryBuilder->>API: fetchFunctions({<br/>include_internal<br/>})
API->>API: Build query string:<br/>?include_internal=true
API->>Backend: GET /functions?include_internal=true
Backend->>Backend: parse_bool_param()<br/>determine include_internal
Backend->>Backend: Call engine.functions.list<br/>with include_internal flag
Backend-->>API: Return filtered functions
API-->>QueryBuilder: { functions: [], count: 0 }
QueryBuilder-->>Component: Query results with cache
Component-->>User: Display functions
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
sergiofilhowz
approved these changes
Feb 10, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional include_internal support for functions and triggers across the console frontend and Rust bridge so users can toggle visibility of internal/system functions and triggers (e.g. via "Show system" on Config and Handlers pages). Also fixes bridge shutdown to use async shutdown and corrects a path parameter key in the state item set handler.
Type of Change
Changes
Frontend
fetchFunctionsandfetchTriggersaccept optional{ include_internal?: boolean }and pass it as query params to DevTools/Management APIs.functionsQueryandtriggersQueryare now factory functions that accept the same options and include them in the query key for correct cache separation.include_internal: showSystemwhen fetching functions/triggers; dashboard (index) uses default (no internal). All prefetches updated to callfunctionsQuery()/triggersQuery().Rust bridge
parse_bool_paramhelper;handle_functions_listandhandle_triggers_listreadinclude_internalfrom request input and forward it toengine.functions.listandengine.triggers.list. Status and trigger-types handlers useinclude_internal: truewhere appropriate.bridge.shutdown()withbridge.shutdown_async().awaitfor proper async cleanup on SIGTERM/SIGINT.handle_state_item_setnow readspath_paramsinstead ofpath_parametersto match the API contract.Checklist
Additional Context
main(default). Single commit: feat: enhance API queries and Rust bridge functions with internal inclusion support.Summary by CodeRabbit
Release Notes