Background
The registrant portal integrates with the Estonian business registry (äriregister) to
show users the companies they represent and the associated domains. When the business
registry experiences known outages or data quality issues, this integration currently
has no way to be disabled without a code deployment.
Problem
There is no configuration option to disable the business registry check (Companies page
/ /api/companies endpoint) when administrators are aware of problems with that data
source. This forces users to experience degraded or broken portal behaviour during known
business registry incidents.
Proposed Solution
Add an environment variable (e.g. DISABLE_BUSINESS_REGISTRY=true) to the portal
configuration that:
- Disables the
/api/companies endpoint (returns an empty list or a service-unavailable
response) without affecting any other portal functionality.
- Optionally renders a configurable maintenance/notice message on the Companies page
(/companies) so users understand why company data is temporarily unavailable.
- Is documented in
.env.example with a comment explaining when and how to use it.
Acceptance Criteria
Relevant Code
server/routes/apiRoute.js → getCompanies
src/pages/CompaniesPage/CompaniesPage.jsx
src/redux/reducers/companies.js
.env.example
Background
The registrant portal integrates with the Estonian business registry (äriregister) to
show users the companies they represent and the associated domains. When the business
registry experiences known outages or data quality issues, this integration currently
has no way to be disabled without a code deployment.
Problem
There is no configuration option to disable the business registry check (Companies page
/
/api/companiesendpoint) when administrators are aware of problems with that datasource. This forces users to experience degraded or broken portal behaviour during known
business registry incidents.
Proposed Solution
Add an environment variable (e.g.
DISABLE_BUSINESS_REGISTRY=true) to the portalconfiguration that:
/api/companiesendpoint (returns an empty list or a service-unavailableresponse) without affecting any other portal functionality.
(
/companies) so users understand why company data is temporarily unavailable..env.examplewith a comment explaining when and how to use it.Acceptance Criteria
DISABLE_BUSINESS_REGISTRY(default:false) controlswhether the business registry integration is active.
or empty state.
business registry check is disabled.
.env.example.Relevant Code
server/routes/apiRoute.js→getCompaniessrc/pages/CompaniesPage/CompaniesPage.jsxsrc/redux/reducers/companies.js.env.example