Skip to content

server-variable-selectors - #887

Merged
general-kroll-4-life merged 1 commit into
mainfrom
feature/server-variable-selectors
Nov 2, 2026
Merged

general-kroll-4-life merged 1 commit into
mainfrom
feature/server-variable-selectors

Conversation

@general-kroll-4-life

@general-kroll-4-life general-kroll-4-life commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Support opt-in endpoint selection through Omni server-variable metadata for SELECT, mutations and EXEC.
  • Apply endpoint binding precedence consistently: explicit SQL input, session alias parameter defaults, direct environment override, environment selector choice, then the selector's declared default key.
  • Keep ordinary OpenAPI endpoint defaults unapplied; preserve required-input errors when no declared binding resolves.
  • Reject unknown selector choices, invalid selector defaults and conflicting method endpoint bindings instead of choosing an arbitrary fallback.
  • Reflect resolved endpoint bindings and session alias defaults in SHOW METHODS RequiredParams.
  • Preserve server-variable metadata through completed-method wrappers used by awaited mutations.
  • Resolve document OAuth token endpoint variables through the same Omni annotations; keep per-alias token authorities explicit through auth.token_url.
  • Consume Omni v0.1.10-alpha01 for the shared server-variable resolver and metadata interfaces.
  • Document endpoint selector precedence, normalization, error behaviour and OAuth endpoint boundaries in the developer guide.
  • Add isolated mock-backed Robot coverage using the existing native/Docker and SQLite/PostgreSQL harness, checking token and API requests without changing existing provider fixtures.

Type of change

  • Bug fix (non-breaking change to fix a bug).
  • Feature (non-breaking change to add functionality).
  • Breaking change.
  • Other (eg: documentation change). Please explain.

Issues referenced.

Related to omnisdk issue 32.

Evidence

  • Added robot test Default Selector Matches Query Show And Exec.
  • Added robot test Selector And Direct Override Apply To Exec.
  • Added robot test SQL And Alias Defaults Override Environment.
  • Added robot test Mutation Uses The Same Selector.
  • Added robot test Unknown Selector Fails Before Requests.

Checklist:

  • A full round of testing has been completed, and there are no test failures as a result of these changes.
  • The changes are covered with functional and/or integration robot testing.
  • The changes work on all supported platforms.
  • Unit tests pass locally, as per the developer guide.
  • Robot tests pass locally, as per the developer guide.
  • Linter passes locally, as per the developer guide.

Variations

N/A.

Tech Debt

No technical debt is added in this change.

@general-kroll-4-life
general-kroll-4-life force-pushed the feature/server-variable-selectors branch 3 times, most recently from 4f30505 to 581f11b Compare November 2, 2026 12:29
Summary:

- Support opt-in endpoint selection through Omni server-variable metadata for SELECT, mutations and EXEC.
- Apply endpoint binding precedence consistently: explicit SQL input, session alias parameter defaults, direct environment override, environment selector choice, then the selector's declared default key.
- Keep ordinary OpenAPI endpoint defaults unapplied; preserve required-input errors when no declared binding resolves.
- Reject unknown selector choices, invalid selector defaults and conflicting method endpoint bindings instead of choosing an arbitrary fallback.
- Reflect resolved endpoint bindings and session alias defaults in SHOW METHODS RequiredParams.
- Preserve server-variable metadata through completed-method wrappers used by awaited mutations.
- Resolve document OAuth token endpoint variables through the same Omni annotations; keep per-alias token authorities explicit through auth.token_url.
- Consume Omni v0.1.10-alpha01 for the shared server-variable resolver and metadata interfaces.
- Document endpoint selector precedence, normalization, error behaviour and OAuth endpoint boundaries in the developer guide.
- Add isolated mock-backed Robot coverage using the existing native/Docker and SQLite/PostgreSQL harness, checking token and API requests without changing existing provider fixtures.
- Added `robot` test `Default Selector Matches Query Show And Exec`.
- Added `robot` test `Selector And Direct Override Apply To Exec`.
- Added `robot` test `SQL And Alias Defaults Override Environment`.
- Added `robot` test `Mutation Uses The Same Selector`.
- Added `robot` test `Unknown Selector Fails Before Requests`.
@general-kroll-4-life
general-kroll-4-life force-pushed the feature/server-variable-selectors branch from 581f11b to 52835df Compare November 2, 2026 12:35
@general-kroll-4-life
general-kroll-4-life merged commit 04547fe into main Nov 2, 2026
53 of 61 checks passed
@general-kroll-4-life
general-kroll-4-life deleted the feature/server-variable-selectors branch November 2, 2026 14:43
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