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

Enable keyword redirection for trace #76

Merged
merged 1 commit into from
Feb 15, 2025
Merged

Enable keyword redirection for trace #76

merged 1 commit into from
Feb 15, 2025

Conversation

lunakv
Copy link
Owner

@lunakv lunakv commented Feb 15, 2025

BREAKING CHANGE: Changed /cr/trace response format.
BREAKING CHANGE: Changed default behavior for definition search in /cr/{rule_id}

If the trace endpoint is called with a keyword rule, it now supports redirection to the actual definition of that rule, same as the rule endpoint. This necessitated the change of the response from an array to a dict, so that we can send the actual rule that was queried.

I also changed the default of the rule endpoint to not default to definition redirection in order to be consistent with the rest of the API.

BREAKING CHANGE: Changed `/cr/trace` response format.
BREAKING CHANGE: Changed default behavior for definition search in `/cr/{rule_id}`

If the trace endpoint is called with a keyword rule, it now supports redirection to the actual definition of that rule, same as the rule endpoint. This necessitated the change of the response from an array to a dict, so that we can send the actual rule that was queried.

I also changed the default of the rule endpoint to *not* default to definition redirection in order to be consistent with the rest of the API.
@lunakv lunakv force-pushed the add_trace_redirection branch from 3a8d6cf to c08510b Compare February 15, 2025 20:25
@lunakv lunakv merged commit 7628fc8 into main Feb 15, 2025
1 check passed
@lunakv lunakv deleted the add_trace_redirection branch February 15, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant