-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
area:dataData import/export/migrationData import/export/migrationpriority:lowLow priorityLow priorityrefactor
Description
Summary
Replace hardcoded entity name strings with constants for better maintainability.
Problem
Throughout PPDS.Migration, magic strings are used for entity names:
"isdefault""account""systemuser""team"
This creates risk of typos and makes refactoring difficult.
Solution
- Create
EntityNamesstatic class with constants - Replace magic strings with constant references
- Consider using existing generated entity constants where available
Example
// Before
if (entityName == "systemuser")
// After
if (entityName == EntityNames.SystemUser)Files to Modify
- Create:
src/PPDS.Migration/Constants/EntityNames.cs - Modify: Multiple files in
src/PPDS.Migration/
Work Stream
Stream B - Code Patterns
Acceptance Criteria
- Constants class created
- Magic strings replaced
- All existing tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:dataData import/export/migrationData import/export/migrationpriority:lowLow priorityLow priorityrefactor
Projects
Status
Todo