Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frosh-tools:health-check-json command #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shyim
Copy link
Member

@shyim shyim commented Feb 6, 2025

Add a new command frosh-tools:health-check-json to return a JSON with all health check checkers result merged like with /health/status route.

  • Create HealthCheckJsonCommand class in src/Command/HealthCheckJsonCommand.php
    • Implement the Command class from Symfony\Component\Console\Command\Command
    • Inject health checkers in the constructor
    • Implement the execute method to collect health check results and return as JSON
    • Register the command with the name frosh-tools:health-check-json
  • Modify src/Resources/config/services.xml
    • Register the new HealthCheckJsonCommand class as a service

For more details, open the Copilot Workspace session.

Add a new command `frosh-tools:health-check-json` to return a JSON with all health check checkers result merged like with `/health/status` route.

* Create `HealthCheckJsonCommand` class in `src/Command/HealthCheckJsonCommand.php`
  - Implement the `Command` class from `Symfony\Component\Console\Command\Command`
  - Inject health checkers in the constructor
  - Implement the `execute` method to collect health check results and return as JSON
  - Register the command with the name `frosh-tools:health-check-json`
* Modify `src/Resources/config/services.xml`
  - Register the new `HealthCheckJsonCommand` class as a service

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/FriendsOfShopware/FroshTools?shareId=XXXX-XXXX-XXXX-XXXX).
@shyim
Copy link
Member Author

shyim commented Feb 6, 2025

@frosh-automation create-instance

@frosh-automation
Copy link
Contributor

Hey 👋,

I have created for you an Shopware Instalation with the current changes made here.

You can access the Shop here: https://t7ee118-gtnvu9gs3alg0.zrh1.namespaced.app

The URL is only for FriendsOfShopware members.

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