Repository navigation
feat(triggers): ai trigger methods, shared routes and exact-path tests for every host - #77
Merged
Merged
Conversation
…e-code test `hub.ai.save_ai_project_trigger`, `get_ai_project_triggers`, `get_ai_project_trigger`, `enable_ai_project_trigger`, `disable_ai_project_trigger`, `delete_ai_project_trigger` (sync and async) in the generated style of the other hosts, and `hub.triggers.get_trigger_definition` / `test_trigger_pre_execute_code` for the two shared routes the hand-written module lacked. The SDK has no typed trigger DTOs (every method takes `**request`), so nothing was hand-written beside the methods. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ute of every host; Code and Workflow action bodies
The 18 files / membership / payments trigger tests asserted the verb and
url.startswith('https://') only; each now asserts the exact /v3 path with the
id filled in, an empty body for the reads, deletes and toggles, and the
trigger in the body of a save. Six AI trigger tests (sync) plus the async
sweep; definition (id in the path, type and schema on the query) and
pre-execute-code test (code and records as text in the body). A Code action
(functionRef, invocationType, config) and a Workflow action (workflowRef,
payload) go through every host's save — Schema, Files, Membership, Payments,
AI — and arrive under trigger.action as they are, with no runAsUserId.
make check: ruff, mypy, 1372 tests.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
AI trigger methods (6, sync + async) and the shared definition / pre-execute-code routes; every files / membership / payments trigger test asserts the exact /v3 path; Code and Workflow action bodies for all five hosts.
Tests: make check green, 1372 tests.
Task file: gateway docs/tasks/triggers-coverage-2026-11-04.md. Expected: minor release.