{"id":40394252,"url":"https://github.com/onsdigital/dp-frontend-dataset-controller","last_synced_at":"2026-04-01T18:32:08.231Z","repository":{"id":37412580,"uuid":"94887042","full_name":"ONSdigital/dp-frontend-dataset-controller","owner":"ONSdigital","description":"Controller for handling datasets on the ONS website","archived":false,"fork":false,"pushed_at":"2026-01-13T13:09:42.000Z","size":6183,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":24,"default_branch":"develop","last_synced_at":"2026-01-13T14:29:16.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ONSdigital.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-06-20T12:06:41.000Z","updated_at":"2026-01-13T13:09:45.000Z","dependencies_parsed_at":"2023-10-21T23:00:33.496Z","dependency_job_id":"afce97ac-02d3-44f8-9e24-c0b882d8ffd9","html_url":"https://github.com/ONSdigital/dp-frontend-dataset-controller","commit_stats":null,"previous_names":[],"tags_count":109,"template":false,"template_full_name":null,"purl":"pkg:github/ONSdigital/dp-frontend-dataset-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-frontend-dataset-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-frontend-dataset-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-frontend-dataset-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-frontend-dataset-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONSdigital","download_url":"https://codeload.github.com/ONSdigital/dp-frontend-dataset-controller/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONSdigital%2Fdp-frontend-dataset-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-20T13:00:56.830Z","updated_at":"2026-01-20T13:00:57.733Z","avatar_url":"https://github.com/ONSdigital.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dp-frontend-dataset-controller\n\nAn HTTP service for the controlling of data and rendering templates relevant to a particular dataset.\n\n## Configuration\n\n| Environment variable             | Default                          | Description                                                                                                                                           |\n| -------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| API_ROUTER_URL                   | \u003chttp://localhost:23200/v1\u003e        | The URL of the [dp-api-router](https://github.com/ONSdigital/dp-api-router)                                                                           |\n| BIND_ADDR                        | :20200                           | The host and port to bind to.                                                                                                                         |\n| CACHE_NAVIGATION_UPDATE_INTERVAL | 10s                              | How often the navigation cache is updated                                                                                                             |\n| DEBUG                            | false                            | Enable debug mode                                                                                                                                     |\n| DOWNLOAD_SERVICE_URL             | \u003chttp://localhost:23600\u003e          | The URL of [dp-download-service](https://www.github.com/ONSdigital/dp-download-service).                                                              |\n| ENABLE_MULTIVARIATE              | false                            | Enable 2021 [multivariate datasets](https://github.com/ONSdigital/dp-dataset-api/blob/5f9f4218b65aae4803809f4a876e9f72b9bf5305/models/dataset.go#L43) |\n| ENABLE_NEW_NAV_BAR               | false                            | Enable new nav bar                                                                                                                                    |\n| ENABLE_PROFILER                  | false                            | Flag to enable go profiler                                                                                                                            |\n| FEEDBACK_API_URL               | \u003chttp://localhost:23200/v1/feedback\u003e | The public `dp-api-router` address for feedback, not the internal one |\n| GRACEFUL_SHUTDOWN_TIMEOUT        | 5s                               | The graceful shutdown timeout in seconds                                                                                                              |\n| HEALTHCHECK_CRITICAL_TIMEOUT     | 90s                              | The time taken for the health changes from warning state to critical due to subsystem check failures                                                  |\n| HEALTHCHECK_INTERVAL             | 30s                              | The time between calling healthcheck endpoints for check subsystems                                                                                   |\n| OTEL_BATCH_TIMEOUT               | 5s                               | Interval between pushes to OT Collector                                                                                                               |\n| OTEL_EXPORTER_OTLP_ENDPOINT      | \u003chttp://localhost:4317\u003e            | URL for OpenTelemetry endpoint                                                                                                                        |\n| OTEL_SERVICE_NAME                | \"dp-frontend-dataset-controller\" | Service name to report to telemetry tools                                                                                                             |\n| OTEL_ENABLED                     | false                            | Feature flag to enable OpenTelemetry    |\n| PATTERN_LIBRARY_ASSETS_PATH      | \"\"                               | Pattern library location                                                                                                                              |\n| PPROF_TOKEN                      | \"\"                               | The profiling token to access service profiling                                                                                                       |\n| SITE_DOMAIN                      | localhost                        |                                                                                                                                                       |\n| SUPPORTED_LANGUAGES              | []string{\"en\", \"cy\"}             | Supported languages                                                                                                                                   |\n\n## Profiling\n\nAn optional `/debug` endpoint has been added, in order to profile this service via `pprof` go library.\nIn order to use this endpoint, you will need to enable profiler flag and set a PPROF_TOKEN:\n\n```text\nexport ENABLE_PROFILER=true\nexport PPROF_TOKEN={generated uuid}\n```\n\nThen you can us the profiler as follows:\n\n1- Start service, load test or if on environment wait for a number of requests to be made.\n\n2- Send authenticated request and store response in a file (this can be best done in command line like so: `curl \u003chost\u003e:\u003cport\u003e/debug/pprof/heap -H \"Authorization: Bearer {generated uuid} \u003e heap.out` - see pprof documentation on other endpoints\n\n3- View profile either using a web ui to navigate data (a) or using pprof on command line to navigate data (b)\na) `go tool pprof -http=:8080 heap.out`\nb) `go tool pprof heap.out`, -o flag to see various options\n\n## Licence\n\nCopyright © 2025, Office for National Statistics (\u003chttps://www.ons.gov.uk\u003e)\n\nReleased under MIT license, see [LICENSE](LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsdigital%2Fdp-frontend-dataset-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonsdigital%2Fdp-frontend-dataset-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsdigital%2Fdp-frontend-dataset-controller/lists"}