mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-13 20:53:30 +01:00
[PR #287] [CLOSED] Filter chaining by active environment #210
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/287
Author: @gschier
Created: 10/29/2025
Status: ❌ Closed
Base:
main← Head:filter-by-environment📝 Commits (3)
0c3449fAdd environment_id to http/grpc/ws responses, and update response template functions to be able to filter by active environment07fe829Update src-tauri/yaak-plugins/src/events.rs89e42b8Update src-tauri/yaak-models/src/queries/http_responses.rs📊 Changes
15 files changed (+128 additions, -49 deletions)
View changed files
📝
packages/plugin-runtime-types/src/bindings/gen_events.ts(+5 -1)📝
packages/plugin-runtime-types/src/bindings/gen_models.ts(+1 -1)📝
plugins/template-function-response/src/index.ts(+29 -3)📝
src-tauri/src/lib.rs(+2 -0)📝
src-tauri/src/notifications.rs(+2 -1)📝
src-tauri/src/plugin_events.rs(+10 -1)📝
src-tauri/yaak-models/bindings/gen_models.ts(+3 -3)➕
src-tauri/yaak-models/migrations/20251029074536_response-environment.sql(+8 -0)📝
src-tauri/yaak-models/src/db_context.rs(+18 -25)📝
src-tauri/yaak-models/src/models.rs(+10 -0)📝
src-tauri/yaak-models/src/queries/http_responses.rs(+30 -12)📝
src-tauri/yaak-plugins/bindings/gen_events.ts(+5 -1)📝
src-tauri/yaak-plugins/bindings/gen_models.ts(+1 -1)📝
src-tauri/yaak-plugins/src/events.rs(+3 -0)📝
src-tauri/yaak-ws/src/commands.rs(+1 -0)📄 Description
https://feedback.yaak.app/p/request-chaining-and-swapping-environments
This PR adds the ability to filter HTTP responses in the
response.*template functions to ones sent in the active environment.environment_idfield toHttpResponse,GrpcConnection, andWebsocketConnectionresponse.*template function configI thought about filtering all responses in the UI by active environment as well, but don't want to break anyone's existing workflows. I still think I want to do this, but Yaak will need proper onboarding for existing users, as well as a way to disable it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.