Fix/change api calls for autocomplete#129
Merged
jeroenrinzema merged 3 commits intomainfrom Feb 2, 2026
Merged
Conversation
…just related tests
…pi-calls-for-autocomplete
jeroenrinzema
approved these changes
Feb 2, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request updates how event schema paths are fetched and handled throughout the codebase, standardizing the API endpoint and improving the structure and usage of event schema suggestions in the frontend. The main changes include switching the event schema endpoint, updating the data types and structures used for event path suggestions, and refactoring related frontend components to accommodate these changes.
API endpoint and backend updates:
/eventsto/events/schemain all relevant backend code, including OpenAPI specs, generated code, and tests. [1] [2] [3] [4] [5] [6] [7] [8] [9]Type and structure improvements:
VariableSuggestionstype:eventPathsis now an array ofEventSchemaobjects (each withid,name, andschema), replacing the previous object mapping event names to arrays ofRulePath. Added new typesEventSchemaandEventSchemaPath. [1] [2]api.tsto fetch and transform event schema data from the new endpoint, prefixing paths with.datafor consistency.Frontend component refactoring:
Comboboxcomponent generic to support bothRulePathandEventSchemaPathtypes, allowing flexible use for different path suggestions. [1] [2] [3]FilterRuleEditto use the new event schema structure, including filtering and displaying schema paths and determining the correct data type for each path option. [1] [2] [3]RuleEventNameto build event options from the neweventPathsarray structure instead of an object map, and updated rendering logic for event names. [1] [2]Minor cleanup:
router.tsxfor clarity.Closes, #111