Skip to content

Conversation

@Alirexaa
Copy link
Member

@Alirexaa Alirexaa commented Apr 12, 2025

Closes #436

Only Postgres is supported at this PR.

adminer-video.mp4

This pull request introduces a new feature for integrating Adminer with the CommunityToolkit.Aspire project. The changes include adding new projects, updating existing projects, and modifying configuration files to support the Adminer integration.

New Projects and Integration:

  • Added CommunityToolkit.Aspire.Hosting.Adminer project to the solution, including its configuration and dependencies. [1] [2]
  • Created a new example project CommunityToolkit.Aspire.Hosting.Adminer.AppHost demonstrating the usage of Adminer with PostgreSQL. [1] [2] [3] [4]
  • Updated CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions to include references and integration with the new Adminer project. [1] [2] [3] [4]

Configuration and Settings:

  • Updated the .github/workflows/tests.yaml to include tests for the new Adminer integration.
  • Added configuration settings and launch profiles for the new Adminer example project. [1] [2]

Code Enhancements:

  • Introduced AdminerBuilderExtensions and AdminerContainerResource classes to facilitate the integration of Adminer with the Aspire hosting framework. [1] [2]
  • Added a PHP script login-servers.php to manage Adminer server logins, embedded within the Adminer project.

Documentation:

  • Added a README file for the CommunityToolkit.Aspire.Hosting.Adminer project to clarify its purpose and usage.

These changes collectively enhance the CommunityToolkit.Aspire project by providing a robust integration with Adminer, enabling easier database management and administration.

PR Checklist

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • PR doesn't include merge commits (always rebase on top of our main, if needed)
  • New integration
    • Docs are written
    • Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Every new API (including internal ones) has full XML docs
  • Code follows all style conventions

Other information

@Alirexaa Alirexaa temporarily deployed to azure-artifacts April 12, 2025 17:47 — with GitHub Actions Inactive
@Alirexaa Alirexaa requested review from aaronpowell and Copilot April 13, 2025 17:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 16 out of 23 changed files in this pull request and generated 1 comment.

Files not reviewed (7)
  • CommunityToolkit.Aspire.sln: Language not supported
  • examples/adminer/CommunityToolkit.Aspire.Hosting.Adminer.AppHost/CommunityToolkit.Aspire.Hosting.Adminer.AppHost.csproj: Language not supported
  • examples/adminer/CommunityToolkit.Aspire.Hosting.Adminer.AppHost/Properties/launchSettings.json: Language not supported
  • examples/adminer/CommunityToolkit.Aspire.Hosting.Adminer.AppHost/appsettings.json: Language not supported
  • src/CommunityToolkit.Aspire.Hosting.Adminer/CommunityToolkit.Aspire.Hosting.Adminer.csproj: Language not supported
  • src/CommunityToolkit.Aspire.Hosting.Adminer/login-servers.php: Language not supported
  • src/CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions/CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions.csproj: Language not supported

@Alirexaa Alirexaa temporarily deployed to azure-artifacts April 13, 2025 17:41 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
CommunityToolkit.Aspire.EventStore 100% 100% 46
CommunityToolkit.Aspire.GoFeatureFlag 100% 97% 74
CommunityToolkit.Aspire.Hosting.ActiveMQ 80% 40% 100
CommunityToolkit.Aspire.Hosting.ActiveMQ.MassTransit 1% 0% 14
CommunityToolkit.Aspire.Hosting.Adminer 83% 50% 24
CommunityToolkit.Aspire.Hosting.Azure.Dapr 67% 50% 828
CommunityToolkit.Aspire.Hosting.Azure.Dapr.Redis 97% 88% 36
CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder 100% 100% 22
CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps 100% 100% 28
CommunityToolkit.Aspire.Hosting.Bun 82% 71% 54
CommunityToolkit.Aspire.Hosting.Dapr 63% 51% 724
CommunityToolkit.Aspire.Hosting.DbGate 96% 50% 18
CommunityToolkit.Aspire.Hosting.Deno 84% 75% 72
CommunityToolkit.Aspire.Hosting.EventStore 94% 100% 18
CommunityToolkit.Aspire.Hosting.GoFeatureFlag 93% 50% 18
CommunityToolkit.Aspire.Hosting.Golang 94% 50% 16
CommunityToolkit.Aspire.Hosting.Java 69% 72% 120
CommunityToolkit.Aspire.Hosting.k6 58% 12% 20
CommunityToolkit.Aspire.Hosting.LavinMQ 78% 50% 18
CommunityToolkit.Aspire.Hosting.LavinMQ.MassTransit 1% 0% 14
CommunityToolkit.Aspire.Hosting.MailPit 91% 50% 14
CommunityToolkit.Aspire.Hosting.Meilisearch 73% 57% 50
CommunityToolkit.Aspire.Hosting.MongoDB.Extensions 96% 83% 36
CommunityToolkit.Aspire.Hosting.Ngrok 52% 35% 82
CommunityToolkit.Aspire.Hosting.NodeJS.Extensions 90% 69% 96
CommunityToolkit.Aspire.Hosting.Ollama 67% 69% 162
CommunityToolkit.Aspire.Hosting.PapercutSmtp 92% 50% 10
CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions 99% 88% 92
CommunityToolkit.Aspire.Hosting.Python.Extensions 68% 55% 90
CommunityToolkit.Aspire.Hosting.RavenDB 63% 49% 136
CommunityToolkit.Aspire.Hosting.Redis.Extensions 100% 83% 36
CommunityToolkit.Aspire.Hosting.Rust 94% 83% 16
CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects 74% 64% 114
CommunityToolkit.Aspire.Hosting.Sqlite 97% 91% 54
CommunityToolkit.Aspire.Hosting.SqlServer.Extensions 100% 83% 36
CommunityToolkit.Aspire.MassTransit.RabbitMQ 100% 100% 30
CommunityToolkit.Aspire.Meilisearch 97% 92% 68
CommunityToolkit.Aspire.Microsoft.Data.Sqlite 37% 27% 194
CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite 51% 50% 92
CommunityToolkit.Aspire.OllamaSharp 71% 64% 98
CommunityToolkit.Aspire.RavenDB.Client 60% 53% 237
Summary 71% (6293 / 8883) 57% (1931 / 3378) 4007

Minimum allowed line rate is 60%

@Alirexaa Alirexaa temporarily deployed to azure-artifacts April 13, 2025 17:53 — with GitHub Actions Inactive
@aaronpowell aaronpowell merged commit 2a52773 into main Apr 15, 2025
88 checks passed
@aaronpowell aaronpowell deleted the alirexaa/adminer branch April 15, 2025 03:47
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.

Add adminer integration as a database explorer

3 participants