refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
This commit is contained in:
@@ -33,7 +33,7 @@ Inheritance is **not** rendered as tree nesting in the image, and it is not rend
|
||||
|
||||
## Data model
|
||||
|
||||
**New entity** in `src/ScadaLink.Commons/Entities/Templates/TemplateFolder.cs`:
|
||||
**New entity** in `src/ZB.MOM.WW.ScadaBridge.Commons/Entities/Templates/TemplateFolder.cs`:
|
||||
|
||||
```csharp
|
||||
public class TemplateFolder
|
||||
@@ -78,7 +78,7 @@ public int? FolderId { get; set; } // null = root
|
||||
|
||||
## Server-side service
|
||||
|
||||
**`TemplateFolderService`** (new, in `src/ScadaLink.TemplateEngine/`), mirroring `TemplateService`:
|
||||
**`TemplateFolderService`** (new, in `src/ZB.MOM.WW.ScadaBridge.TemplateEngine/`), mirroring `TemplateService`:
|
||||
|
||||
- `CreateFolderAsync(name, parentFolderId?, user) → Result<TemplateFolder>`
|
||||
- `RenameFolderAsync(id, newName, user) → Result<TemplateFolder>`
|
||||
@@ -90,7 +90,7 @@ Validations on all paths: non-empty name, name unique among siblings, parent exi
|
||||
|
||||
## Management Service contracts
|
||||
|
||||
In `src/ScadaLink.Commons/Messages/Management/`:
|
||||
In `src/ZB.MOM.WW.ScadaBridge.Commons/Messages/Management/`:
|
||||
|
||||
- `CreateTemplateFolderRequest` / `Response`
|
||||
- `RenameTemplateFolderRequest` / `Response`
|
||||
@@ -213,12 +213,12 @@ The context menu is the **only** reorganization mechanism. Per-node-kind `Contex
|
||||
|
||||
## Testing
|
||||
|
||||
**Unit (`tests/ScadaLink.TemplateEngine.Tests/`):**
|
||||
**Unit (`tests/ZB.MOM.WW.ScadaBridge.TemplateEngine.Tests/`):**
|
||||
- `TemplateFolderServiceTests` — create / rename / move (happy + cycle + duplicate) / delete (happy + non-empty).
|
||||
- `TemplateServiceTests` — `MoveTemplateAsync` happy + missing target.
|
||||
- Migration test confirming nullable `FolderId` and existing templates retaining null.
|
||||
|
||||
**bUnit (`tests/ScadaLink.CentralUI.Tests/`):**
|
||||
**bUnit (`tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/`):**
|
||||
- Tree renders folders / templates / compositions in correct nesting.
|
||||
- Empty state when no roots exist (no folders, no root templates).
|
||||
- Selecting a template node invokes `NavigationManager.NavigateTo($"/design/templates/{id}")`.
|
||||
|
||||
Reference in New Issue
Block a user