phenix-business-ui
ASP.NET MVC UI for business travel functions within Phenix, covering cost savings, credit, documents and statement screens.
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, javascript |
| Frameworks | ASP.NET MVC 5, Ninject |
| Runtimes | .NET Framework 4.7.2 |
| Tests / CI | some / CI in place |
| Last commit | 2025-10-31 |
| Owner | Owner unknown (mapping to be curated) |
| Domain | Selling and quoting (system generated; curate in repo-owners.json to override) |
| Product area | Phenix |
| Hosted | On-prem Deployed to our own machines
|
| Releases | 2 release pipeline(s): \finance\phenix\phenix-business-ui CI; \finance\phenix\phenix-business-ui Stealth |
| Integration | rest, wcf |
| Source | Open in Azure DevOps |
Dependencies in context
Entanglement
kernel Bound into the core by 2 mechanism(s).
- Pinning dependency: mailtemplate-service
- Speaks WCF (client)
Detaches when its pinning dependencies are cut or multi-targeted (mailtemplate-service); and when its WCF surface gains a modern interface or its WCF calls move to one.
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. Legacy web front end: session state and framework age make mixed-version fleets risky until state is externalised.
- Consumes WCF contract packages: never take a breaking client bump mid-feature, and treat obsolete warnings as migration debt
- Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
- Raise automated test coverage first: ZDD trades the end-of-sprint manual gate for continuous automated confidence, so the tests are the entry ticket.
- 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.
- Externalise any remaining session state so users can move between nodes mid-session without disruption.
- 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
Not applicableNo SQL Server dependency is recorded for this repo. Nothing to migrate.
Containerisation
Feasible after replatformingAppropriate, but the .NET Framework runtime has to go first; container work rides along with the replatform rather than preceding it.
- .NET Framework only runs on Windows; practical (Linux) containers need modern .NET
- Replatform to modern .NET first (see the recommended actions). 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-business-ui to modern .NET
Runs on .NET Framework 4.7.2, out of mainstream support. Blocked until stage 2 cuts: mailtemplate-service.
Impact: Reduces the end-of-life runtime count
proposedAssessment notes
phenix-business-ui
Purpose
Business travel UI within the Phenix platform. Controllers cover Cost Savings, Credit, Documents (search and email), and Statements/transaction search for business travel customers.
Tech stack
C# on .NET Framework 4.7.2, ASP.NET MVC 5 (Razor views), Ninject DI, packages.config NuGet. Uses the TC platform stack: TC.Phenix.ApplicationFramework, TC.Phenix.UI.WebExtensions, TC.Cache (multi-level with Redis via StackExchange.Redis), TC.ConnectionBroker (Api, Redis, Wcf), and WS-Trust/SAML identity packages.
Deployment
Two release pipelines under \finance\phenix\ (CI and Stealth) from build pipeline phenix-business-ui CI; release_count 2. YAML build on a self-hosted pool with msbuild/Visual Studio demands using shared azure-pipelines-templates (nuget-restore, visual-studio-build/test, zip and publish _PublishedWebsites output) — an IIS web deploy model.
Dependencies
Internal: business travel credit-check API (TC.BusinessTravel.CreditCheck.WebApiClient → backoffice-bt-credit-check), Phenix retail configuration service (service contract → phenix-retail-configuration-service), mail template service (TC.Mail.Template.ServiceClient → mailtemplate-service). Also consumes contact-centre and booking-documentation service clients plus TC.Phenix.Services.Client. External: none identified beyond the internal platform.
Data stores
No owned database. Redis cache storage (CacheStorage=redis in Web.config) through the shared TC.Cache stack.
Integration points
Server-rendered MVC UI; outbound REST to TC web APIs via ConnectionBroker/WebApiClient packages and WCF to legacy services via TC.ConnectionBroker.Wcf.
Code health
Single small MSTest unit-test project (email documents tests only) — thin coverage. README is the untouched Azure DevOps template. YAML CI exists. Last commit 2025-10-31, moderately active.
Modernisation risks
High: legacy .NET Framework 4.7.2 MVC app with packages.config and IIS zip-deploy; the pipeline template ref points at a feature branch (feature/visual-studio-tasks); minimal tests and no real documentation increase migration effort and risk.