phenix-destination-management
Destination-management monorepo: management, queries, sync and errata APIs plus a Vue UI and database scripts for maintaining and serving the destination hierarchy (synced from Giata) across Phenix.
Health score
0 to 100 across seven weighted factors; nothing is hidden. Green is 75 and above, amber 50 to 74, red below 50. How scoring works.
Facts
| Languages | csharp, typescript, sql |
| Frameworks | ASP.NET Core 10, ASP.NET Core 8, ASP.NET MVC 5, Vue 2, HotChocolate GraphQL, Hangfire, EF Core |
| Runtimes | .NET 10, .NET 8, .NET Framework 4.8.1 |
| Tests / CI | good / CI in place |
| Last commit | 2026-07-24 |
| Owner | Owner unknown (mapping to be curated) |
| Domain | Content and destinations (system generated; curate in repo-owners.json to override) |
| Product area | Phenix |
| Hosted | AWS + on-prem Ships artefacts to both AWS and on-prem machines (see evidence below)
|
| Releases | 6 release pipeline(s): \commercial\destinations\destination-management-api; \commercial\destinations\destination-management-errata-api; \commercial\destinations\destination-management-sync-api; \commercial\destinations\phenix-destination-management-database; \commercial\destinations\phenix-destination-management-staging-database; \commercial\destinations\phenix-destination-management-ui |
| Integration | rest, graphql, wcf, smtp, redis |
| Source | Open in Azure DevOps |
Dependencies in context
Entanglement
loosely attached Bound into the core by 1 mechanism(s).
- Speaks WCF (host)
Detaches when its WCF surface gains a modern interface or its WCF calls move to one.
Depends on / used by
Migration playbooks
Generated from this repo's assessment data: what is feasible, what blocks it, and the steps in order. Ratings: green means actionable now, amber means sequence other work first, red means blocked, grey means not applicable.
ZDD adoption
A long roadTechnically eligible one day, but the blockers are structural: hosted WCF or SOAP contracts that cannot run two versions at once, or heavy legacy coupling. Sequence the modernisation work first. Hosts WCF or SOAP endpoints: strict serialization contracts cannot safely run two versions at once (the shared-enum trap). End-of-life runtime compounds the work.
- 17 system(s) depend on this repo; during a rolling deploy they will talk to old and new versions at once, so responses must stay compatible
- Serialized state or messages in flight (Redis or queues): new code must deserialize objects written by the previous version
- Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
- Make every change dual-version safe: backwards-compatible APIs (new major version for breaking wire changes), expand and contract for any schema change, and consumers tolerant of unknown fields.
- Audit serialized data: anything in Redis, queues or shared caches must deserialize cleanly across adjacent versions.
- Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
- Route deployments through the Workflow Engine's automated drain, deploy, health-check, return cycle (the path proven by the first automated production run in mid-2026).
- Verify with area-scoped regression rather than the whole-platform cycle, and watch error rates after rollout with automated rollback on alert.
SQL Server exit
Blocked by a shared databasesqlserver:DestinationManagement is shared, so this system cannot change engine on its own: every sharer moves in convoy. Either agree the move with all sharers as one programme, or first split this system's data out behind an owned API, then follow the steps below.
- Inventory the schema and query surface of sqlserver:DestinationManagement: tables, stored procedures, triggers, cross-database joins and anything else engine-specific.
- Confirm the target: PostgreSQL (relational model; keep transactions and joins, swap the engine).
- Replatform to modern .NET first (see the recommended actions): current PostgreSQL and MongoDB drivers and EF Core providers target modern .NET, and doing one risky change at a time is cheaper than doing two.
- Data access is not through an ORM, so port the SQL by hand: translate T-SQL constructs, replace stored procedures with application code or target-native equivalents, and add integration tests around the queries that matter first.
- Stand up the target alongside SQL Server, backfill with an ETL pass (pgloader or an export/import job), then dual-write or replicate until parity is proven.
- Move reads to the target, watch correctness and latency, then cut writes over and keep SQL Server read-only until confidence is earned.
- Decommission the SQL Server database and remove the connection strings and firewall paths that pointed at it.
Containerisation
Feasible after replatformingAppropriate eventually, but not from here: the legacy runtime and the hosted WCF surface both have to go first, and that work is already in this repo's recommended actions.
- .NET Framework only runs on Windows; practical (Linux) containers need modern .NET
- Hosts WCF or SOAP endpoints, which have no home on modern .NET; consumers need a modern interface first
- Replatform to modern .NET first (see the recommended actions), replacing the hosted WCF/SOAP surface with REST, gRPC or messaging so consumers can follow. Containerising then becomes routine.
- Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
- Log to stdout and expose a health check endpoint so ECS can supervise it.
- Adopt the shared ci.yml pipeline template with the container parameters (awsRegion, containerAfterBuild, ecsTerraformRepo), which is exactly how the estate's existing AWS services deploy.
- Define the service in the Terraform repo, deploy to a non-production environment, then shift traffic and disarm the deployment-group release pipeline.
Recommended actions
Replatform phenix-destination-management to modern .NET
Runs on .NET 10, .NET 8, .NET Framework 4.8.1, out of mainstream support. No pinning dependency blocks it; sequence by fan-in (providers before consumers).
Impact: Unblocks 17 dependent system(s)
proposedAssessment notes
phenix-destination-management
Purpose
Monorepo for the destination domain: DestinationManagement.API (maintain the destination hierarchy), Destination.Queries.API (read-side GraphQL/REST queries), Destination.Sync.API (background sync of Giata supplier destination data via Hangfire queues into Phenix), DestinationManagement.Errata.API, published API/GraphQL client packages, a Vue 2 management UI, and SQL change/create script projects for the DestinationManagement database and its staging counterpart.
Tech stack
Backend APIs on .NET 10 (errata on .NET 8) with central package management, Carter/minimal APIs, MediatR/Mapster/AutoMapper, HotChocolate GraphQL (with spatial types), EF Core SqlServer + NetTopologySuite, MongoDB.Driver, Hangfire with Mongo storage, Coravel, FluentValidation and TC.ApiTools. Client NuGet packages multi-target net462/net481/net8/net10 for legacy consumers. The UI is a .NET Framework 4.8.1 ASP.NET MVC host serving a Vue 2 + Vite + TypeScript SPA using @tc/web-styles and Google Maps.
Deployment
6 release pipelines under \commercial\destinations\ (management API, errata API, sync API, database, staging database, UI) from 7 build pipelines; release_count 6. YAML pipelines for every component live at the repo root (buid-api.yml, build-sync-api.yml, build-ui.yml, etc.) using the shared azure-pipelines-templates repo.
Dependencies
Internal packages: TC.ConnectionBroker.* (tc-connectionbroker), TC.Exceptions.Contract (tc-exceptions), TC.ApiTools.* (tc-api-tools), TC.UserAccount.ServiceClient (backoffice-useraccount-service), TC.Phenix.User.Authentication (phenix-user-api), plus TC.Cache, TC.Cognito.Auth.Client, TC.FluentResults, TC.AWS.S3/ElastiCache. External: Giata (destination/property source data), Google Maps in the UI, AWS Cognito auth, AWS S3, New Relic APM.
Data stores
MongoDB Destinations (primary store for management and queries) and DestinationsHangfire (job storage); SQL Server DestinationManagement via ConnectionBroker for sync stored procedures (Giata merge/purge, Phenix destination hierarchy updates); AWS ElastiCache Redis for output caching and distributed locks in the queries API.
Integration points
REST and GraphQL (HotChocolate) endpoints with published client packages; ConnectionBroker WCF client available for legacy callers; SMTP for sync notifications; Redis for caching/locking. Sync work is queued through Hangfire (destinations, images, descriptions, facts queues).
Code health
Strong: xunit v3 test projects (unit + integration with Testcontainers for MsSql/MongoDb) across every component, YAML CI throughout, active development (last commit 2026-07-24), an architecture diagram and a README describing sync workflows. Legacy/new sync paths coexist behind a UseLegacyDestinationsMerge flag.
Modernisation risks
Low overall — the APIs are already on .NET 8/10 with good tests. Residual risks: the UI host is still .NET Framework 4.8.1 ASP.NET MVC wrapping the Vue SPA, Vue 2 is end-of-life, the monorepo bundles six deployables whose builds/releases must stay in sync, and the legacy destinations-merge path plus multi-targeted net462 client packages keep old consumers alive.