Skip to content

Commit aab11e2

Browse files
authored
Merge pull request #1297 from opencrvs/ocrvs-11899
refactor: remove and rename API endpoints
2 parents 7e30438 + da72c5f commit aab11e2

File tree

13 files changed

+24
-1311
lines changed

13 files changed

+24
-1311
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44

55
### Breaking changes
66

7+
- The following countryconfig endpoints have been removed [#11899](https://github.com/opencrvs/opencrvs-core/issues/11899):
8+
- `GET /validators.js`
9+
- `GET /conditionals.js`
10+
- `GET /dashboards/queries.json`
11+
- `GET /forms`
12+
- `POST /event-registration`
13+
- `POST /tracking-id`
14+
- `GET /record-notification`
15+
- The following countryconfig endpoints have been renamed to sit under the `/config/` namespace:
16+
| Old path | New path |
17+
|---|---|
18+
| `GET /workqueue` | `GET /config/workqueues` |
19+
| `GET /application-config` | `GET /config/application` |
20+
| `GET /locations` | `GET /config/locations` |
21+
| `GET /roles` | `GET /config/roles` |
22+
| `GET /users` | `GET /config/users` |
23+
| `GET /events` | `GET /config/events` |
724
- Switch to docker.io/chumaky/postgres_mongo_fdw:17.6_fdw5.5.2 image to support `mongo_fdw`. This is required for the legacy user migrations to work. It will be switched back to the official postgres image in a future release.
825
- A new service `legacy-user-migration` which runs the same migration image but with the `migrate-legacy-users` flag and with the following new environment variables:
926
- EVENTS_SUPERUSER_POSTGRES_URL
@@ -16,6 +33,7 @@
1633
The default values for these variables have been added to the `docker-compose.deploy.yml` file. They should work out of the box for most deployments, but please ensure to set them correctly if you have a custom MongoDB setup.
1734

1835
### New features
36+
1937
- Docker swarm to Kubernetes migration script [#10858](https://github.com/opencrvs/opencrvs-core/issues/10858), [#10787](https://github.com/opencrvs/opencrvs-core/issues/10787)
2038

2139
## 1.9.3

src/api/dashboards/handler.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import * as Hapi from '@hapi/hapi'
1212
import * as fs from 'fs'
1313
import { join } from 'path'
14-
import { defaultQueries } from './queries'
1514

1615
export async function mapGeojsonHandler(
1716
request: Hapi.Request,
@@ -21,10 +20,3 @@ export async function mapGeojsonHandler(
2120
const fileContents = await fs.promises.readFile(filePath, 'utf8')
2221
return h.response(fileContents).type('text/plain')
2322
}
24-
25-
export async function dashboardQueriesHandler(
26-
_: Hapi.Request,
27-
h: Hapi.ResponseToolkit
28-
) {
29-
return h.response(defaultQueries())
30-
}

0 commit comments

Comments
 (0)