Skip to content

Add polyglot exports for dbgate#1178

Merged
aaronpowell merged 5 commits into
mainfrom
dapine/polyglot-export-dbgate
Mar 31, 2026
Merged

Add polyglot exports for dbgate#1178
aaronpowell merged 5 commits into
mainfrom
dapine/polyglot-export-dbgate

Conversation

@IEvangelist

Copy link
Copy Markdown
Contributor

Adds AspireExport coverage and a matching TypeScript validation apphost for dbgate.

@IEvangelist IEvangelist requested a review from Alirexaa as a code owner March 18, 2026 15:28
Copilot AI review requested due to automatic review settings March 18, 2026 15:28
@github-actions

github-actions Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1178

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1178"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds AspireExport coverage for the DbGate hosting integration and introduces a TypeScript validation AppHost to exercise the generated polyglot surface area.

Changes:

  • Annotate DbGate resource APIs with [AspireExport] and enable exported property access on DbGateContainerResource.
  • Add a TypeScript ValidationAppHost project (tsconfig/package files, apphost entrypoint, run profile, and Aspire settings).
  • Include a compiled dist/apphost.js output alongside the TypeScript source.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/CommunityToolkit.Aspire.Hosting.DbGate/DbGateContainerResource.cs Enables AspireExport property exposure for DbGate resource.
src/CommunityToolkit.Aspire.Hosting.DbGate/DbGateBuilderExtensions.cs Exports DbGate builder extension methods for polyglot generation.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/tsconfig.json TypeScript compiler configuration for the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/package.json NPM scripts/deps for running/typechecking the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/package-lock.json Lockfile for deterministic installs.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/apphost.ts TypeScript validation apphost that calls exported APIs and accesses exposed properties.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/dist/apphost.js Emitted JS build output of the apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/apphost.run.json Run profile/environment for the validation apphost.
playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/.aspire/settings.json Aspire settings pointing to the TS apphost and package under test.
Files not reviewed (1)
  • playground/polyglot/TypeScript/CommunityToolkit.Aspire.Hosting.DbGate/ValidationAppHost/package-lock.json: Language not supported

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to 5
#pragma warning disable ASPIREATS001 // AspireExport is experimental

namespace Aspire.Hosting.ApplicationModel;

/// <summary>
Comment on lines +4 to 6
#pragma warning disable ASPIREATS001 // AspireExport is experimental

namespace Aspire.Hosting;
IEvangelist and others added 4 commits March 30, 2026 09:48
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@IEvangelist IEvangelist force-pushed the dapine/polyglot-export-dbgate branch from 72893ff to cb3ed29 Compare March 30, 2026 14:54
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell merged commit eef0cc0 into main Mar 31, 2026
344 of 362 checks passed
@aaronpowell aaronpowell deleted the dapine/polyglot-export-dbgate branch March 31, 2026 23:59
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.

3 participants