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 GetMigrationStatus command to report migration status without waiting #1

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

Conversation

svg153
Copy link
Member

@svg153 svg153 commented Sep 23, 2024

Add GetMigrationStatusCommand to report migration status without waiting.

  • New Command and Handler

    • Add GetMigrationStatusCommand in src/gei/Commands/GetMigrationStatus/GetMigrationStatusCommand.cs.
    • Add GetMigrationStatusCommandHandler in src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandHandler.cs.
    • Add GetMigrationStatusCommandArgs in src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandArgs.cs.
  • Command Options

    • Add options for MigrationId, GithubPat, Verbose, and TargetApiUrl in GetMigrationStatusCommand.
  • Handler Implementation

    • Implement Handle method in GetMigrationStatusCommandHandler to report migration status without waiting.
    • Remove sleep interval logic from Handle method.
  • Tests

    • Add GetMigrationStatusCommandTests in src/OctoshiftCLI.Tests/gei/Commands/GetMigrationStatus/GetMigrationStatusCommandTests.cs.
    • Add tests to verify options and BuildHandler method.
  • Program Update

    • Add GetMigrationStatusCommand to the root command in src/gei/Program.cs.

For more details, open the Copilot Workspace session.

…ting

Add `GetMigrationStatusCommand` to report migration status without waiting.

* **New Command and Handler**
  - Add `GetMigrationStatusCommand` in `src/gei/Commands/GetMigrationStatus/GetMigrationStatusCommand.cs`.
  - Add `GetMigrationStatusCommandHandler` in `src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandHandler.cs`.
  - Add `GetMigrationStatusCommandArgs` in `src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandArgs.cs`.

* **Command Options**
  - Add options for `MigrationId`, `GithubPat`, `Verbose`, and `TargetApiUrl` in `GetMigrationStatusCommand`.

* **Handler Implementation**
  - Implement `Handle` method in `GetMigrationStatusCommandHandler` to report migration status without waiting.
  - Remove sleep interval logic from `Handle` method.

* **Tests**
  - Add `GetMigrationStatusCommandTests` in `src/OctoshiftCLI.Tests/gei/Commands/GetMigrationStatus/GetMigrationStatusCommandTests.cs`.
  - Add tests to verify options and `BuildHandler` method.

* **Program Update**
  - Add `GetMigrationStatusCommand` to the root command in `src/gei/Program.cs`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/svg153-org/gh-gei?shareId=XXXX-XXXX-XXXX-XXXX).
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