Repository navigation
fix: Use resolved server directory in migration commands - #4434
Conversation
- Modified create_migration.dart to use config.serverPackageDirectoryPathParts - Modified create_repair_migration.dart to use config.serverPackageDirectoryPathParts - Replaced getProjectName() calls with config.name - Removed unused project_name.dart imports - Added test to verify migration works from different directories Co-authored-by: exaby73 <[email protected]>
|
@copilot Analyzer and formatting CI fails |
- Removed unused serverDir variables from test groups - Applied dart format to fix CI formatting check - All analyzer checks pass Co-authored-by: exaby73 <[email protected]>
Fixed in commit 080632d. Removed unused variables and applied dart format. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot I do not see tests for repair migration |
- Added test for create-repair-migration from project root with name: _ - Added test for create-repair-migration from client directory - Tests verify commands don't fail with "not a server package" error - All 4 tests pass (2 for create-migration, 2 for create-repair-migration) Co-authored-by: exaby73 <[email protected]>
Added repair migration tests in commit d804d90. The tests verify that Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
exaby73
left a comment
There was a problem hiding this comment.
Overall looks good, few changes on tests and resolving the server project name
- Changed commands to use getProjectName(serverDirectory) to preserve validation - Moved Process.start calls to setUp blocks following Given-When-Then pattern - Tests now properly separate "when" (setUp) from "then" (test assertions) - All 4 tests pass with improved structure Co-authored-by: exaby73 <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
exaby73
left a comment
There was a problem hiding this comment.
Looks good, just some cleanup required
- Removed "When:" comments from setUp blocks - Removed assertion comments that duplicate the reason parameter - Tests remain clear through descriptive test names and reason messages Co-authored-by: exaby73 <[email protected]>
SandPod
left a comment
There was a problem hiding this comment.
Two minor comments, otherwise the fix looks good! 👍
- Replaced manual tempDir creation/cleanup with test_descriptor's d.sandbox - Added test_descriptor import (package already in pubspec.yaml) - All tempDir.path references replaced with d.sandbox - Simplifies test setup and ensures proper cleanup Co-authored-by: exaby73 <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…on_from_anywhere_test
Original prompt
create-migrationdoes not work from non server directory #4430💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.