Skip to content

feat(code): no default Code integration; runs carry the Fake input - #47

Merged
Domantas merged 1 commit into
mainfrom
feat/code-no-default
Oct 12, 2026
Merged

Domantas merged 1 commit into
mainfrom
feat/code-no-default

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

What changed

Gateway contract refactoringV2 b2303b4d8: there is no default Code integration any more — the route PUT /{version}/code/integrations/{Id}/default (SetCodeIntegrationAsDefault), GetCodeIntegrationsResponse.defaultIntegrationId and CodeDto.defaultIntegrationViewId are gone; CodeFunctionRunDto.input (string, the scrubbed envelope a Fake-provider run received) is new; GetCodeFunctionEventSample.source binds in any case.

  • references/hub_dtos.py regenerated with the ServiceStack x tool against the gateway at b2303b4d8 (hub only; the api reference is left alone — known gap C22). The refresh also picks up GetLicenseKey / GetLicenseKeyResponse (GET /{version}/account/licenses/{Id}/key, gateway 3fa02078e); no method added for it.
  • hub.code.set_code_integration_as_default (sync and async) removed from src/norbix_python/hub/code.py; its surface assert and request-shape test removed; docs/hub/code.md row removed.
  • Docs: the runs row says each run carries input; the event-sample row says source is accepted in any case.

Breaking: the set-default method is removed — pass the integration id everywhere (functionRef.integrationId on trigger actions, scheduler tasks and manual invokes). Released as a minor.

Tests

  • uv run pytest: 1093 passed (was 1094; −1: the removed request-shape test).
  • make typecheck (uv run mypy src): clean, 39 source files.

Context

  • Gateway task: gateway docs/tasks/code-functions.md (branch refactoringV2), steps 10–12; item docs/testing/testing-plan/11-code/items/sdk-secondary-no-default.md.
  • Expected release: minor.

🤖 Generated with Claude Code

Gateway contract refactoringV2 b2303b4d8: the route
PUT /{version}/code/integrations/{Id}/default (SetCodeIntegrationAsDefault),
GetCodeIntegrationsResponse.defaultIntegrationId and
CodeDto.defaultIntegrationViewId are gone; CodeFunctionRunDto.input (the
scrubbed envelope a Fake-provider run received) is new;
GetCodeFunctionEventSample.source binds in any case.

Hub reference DTOs regenerated with the ServiceStack `x` tool (the refresh
also picks up GetLicenseKey / GetLicenseKeyResponse from gateway 3fa02078e;
no method added). The set-default method, its tests and docs rows removed;
the runs docs mention `input`. Pass the integration id everywhere instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Domantas
Domantas merged commit 5c492a5 into main Oct 12, 2026
9 checks passed
@Domantas
Domantas deleted the feat/code-no-default branch October 12, 2026 13:36
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