phenix-retail-configuration-service
Tiny .NET Framework 4.6.2 WCF service answering per-company retail feature questions (markup tax, hidden service fees, invoicing overrides) from hard-coded company-GUID rules and appSettings toggles.
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 |
| Frameworks | WCF |
| Runtimes | .NET Framework 4.6.2 |
| Tests / CI | some / CI in place |
| Last commit | 2025-04-11 |
| 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-retail-configuration-service Dev; \finance\phenix\phenix-retail-configuration-service Release |
| Integration | wcf |
| Source | Open in Azure DevOps |
Risk flags
Each flag links to its glossary definition.
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
Capability duplication
Part of the Feature flags family (review): Hardcoded toggle maps
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.
- 2 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
- 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.
- 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 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-retail-configuration-service to modern .NET
Runs on .NET Framework 4.6.2, out of mainstream support. No pinning dependency blocks it; sequence by fan-in (providers before consumers).
Impact: Unblocks 2 dependent system(s)
proposedAssessment notes
phenix-retail-configuration-service
Purpose
A single-.svc WCF service (RetailConfigurationServiceHost) that tells Phenix Retail and related apps how retail features behave per operating company: IsAddingMarkupTaxToSalesTax, IsAllowingBillbackAndReferral, IsAllowingHiddenServiceFee, IsShowingEditIsSingleInvoiceOverride, IsShowingTermsAndConditions and similar. The answers are literally hard-coded comparisons against company GUID constants (UK, Ireland, Canada, Australia, South Africa, Netherlands, Belgium, Dubai) plus per-company appSettings toggles (e.g. credit-card receipt emailing, batch emailing) in Web.config with XDT transforms per environment.
Tech stack
C# on .NET Framework 4.6.2, classic non-SDK web project hosting the .svc, with a TC.Phenix.Retail.Configuration.ServiceContract package multi-targeting net462/netstandard2.0 so both legacy and modern consumers can reference the contract. Nerdbank.GitVersioning for release versioning (the README documents the nbgv prepare-release flow); StyleCop configured.
Deployment
Included as prod_application with 2 release pipelines (\finance\phenix\phenix-retail-configuration-service Dev and Release) from the phenix-retail-configuration-service build. YAML build.yml exists but delegates to the shared templates' Visual Studio (MSBuild) job. Environment config via Web.*.config transforms; IIS-hosted.
Dependencies
None — no database, no ConnectionBroker, no calls to other services. It is a pure leaf: consumers found elsewhere in the estate include phenix-retail, phenix-quote and phenix-business-ui via the ServiceContract package.
Data stores
None. All configuration lives in code (CompanyId constants and rule methods) and Web.config appSettings.
Integration points
WCF only (basicHttp .svc endpoint). No REST surface.
Code health
One test project with ~52 tests covering the rule methods — decent for its size. YAML CI, versioning discipline, and a README that covers releasing (though not what the service is for). Last commit 2025-04-11.
Modernisation risks
The runtime (net462) and WCF hosting are both end-of-life, but the deeper issue is design: business rules per company are compiled into the service, so any company/feature change requires a code release. phenix-retail-api's README states this service's configuration has already been migrated into that .NET 8 API, so the pragmatic move is to finish pointing consumers at the retail API's RetailCompanyConfigurationController and retire this service rather than modernise it.