Official upstream source mirror. Do not make UH changes here.
  • Ruby 80.8%
  • HTML 16.1%
  • JavaScript 2.2%
  • SCSS 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-28 10:06:20 +01:00
.github Add notification on CI failure on main branch 2026-09-22 14:53:48 +01:00
.yarn/releases Upgrade Yarn to v3 2023-11-17 09:38:19 +00:00
app Merge pull request #3828 from alphagov/documentdb_to_mysql 2026-08-28 05:50:00 +01:00
bin Upgrade app via bin/rails app:update 2026-02-16 14:45:43 +00:00
config Merge pull request #3828 from alphagov/documentdb_to_mysql 2026-08-28 05:50:00 +01:00
db Migrate from Mongo to MySQL 2026-08-26 09:43:46 +01:00
docs Merge pull request #3722 from alphagov/update_migrated 2026-06-12 10:35:37 +01:00
lib Add new option for data set in UKHSA Data approvals finder 2026-08-28 09:16:49 +01:00
log Add log directory 2016-11-04 11:21:20 +00:00
public Upgrade to Rails 8 2025-01-29 11:57:05 +00:00
script Linting auto-correct 2020-04-30 09:58:29 +01:00
spec Merge pull request #3825 from alphagov/dependabot/npm_and_yarn/jasmine-core-7.0.2 2026-09-01 09:09:40 +01:00
.adr-dir Added ADR around nested facet logic implementation 2025-02-21 11:15:49 +00:00
.dockerignore Add yarn install to Dockerfile 2024-10-30 16:05:04 +00:00
.gitignore Configure builds 2024-01-23 13:20:34 +00:00
.govuk_dependabot_merger.yml Allow auto-merging of patch versions of Rails 2024-09-24 11:30:03 +01:00
.rspec Use rspec-rails for testing 2015-11-11 10:54:22 +00:00
.rubocop.yml Migrate from Mongo to MySQL 2026-08-26 09:43:46 +01:00
.ruby-version Upgrade to Ruby 3.3 2024-12-05 12:47:09 +00:00
.yarnrc.yml Upgrade Yarn to v3 2023-11-17 09:38:19 +00:00
config.ru Run bin/rails app:update 2021-09-22 14:42:47 +01:00
Dockerfile Upgrade to Ruby 3.3 2024-12-05 12:47:09 +00:00
Gemfile Remove the unused Mongo, Mongoid and Database Cleaner Mongoid deps 2026-08-26 09:43:46 +01:00
Gemfile.lock Merge pull request #3861 from alphagov/dependabot/bundler/simplecov-1.3.1 2026-09-28 10:06:20 +01:00
LICENCE Add Licence reference in README 2022-12-02 16:25:28 +00:00
package.json Bump stylelint from 17.14.1 to 17.15.0 2026-09-08 06:22:49 +00:00
Procfile Use foreman and procfile to start app 2018-01-31 12:47:46 +00:00
Rakefile Set up the Jasmine testing framework 2022-05-11 14:39:12 +01:00
README.md Migrate from Mongo to MySQL 2026-08-26 09:43:46 +01:00
yarn.lock Bump js-yaml from 3.15.1 to 3.15.2 2026-09-11 08:48:01 +00:00

Specialist Publisher

Publishing App for Specialist Documents.

This application does not store documents in a database of its own. Instead it uses Publishing API to store and retrieve documents. MySQL is used for storing local user records.

For each of the specialist finder schemas, target_stack property can be set to draft to only put the finder content onto the draft stack, and live to publish the finder to the live stack

Some live examples

Nomenclature

  • Format: Category of a Document. Format names are listed in the Live Examples section above and include MAIB Reports and CMA Cases.
  • Finder: Sometimes Formats are referred to as Finders. They are called 'Finders' because each one of them creates a finder on GOV.UK, e.g. https://www.gov.uk/raib-reports. The formats are served by Finder Frontend.
  • Document: Specialist Documents are created by Government editors and can be published to GOV.UK. Documents differ depending on their format, largely determined by the format's schema.
  • Schema: JSON files defining attributes for each format, including base_path, document_noun and document_type. It also contains the facets and their possible values for each document_type which are displayed by _form.html.erb.

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.

Use GOV.UK Docker to run any commands that follow.

Running the test suite

$ bundle exec rake

Running the app alongside finder-frontend

To test the document lifecycle end-to-end, from creating a document to viewing it in the finder, follow the steps in the GOV.UK Docker README.

Further documentation

Licence

MIT License