Manages search "best bets" and "external links" along with other search and browse data.
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.
bundle exec rake
Run bundle exec rake publish_external_links:publishing_api to send all external links to the publishing API.
These rake tasks connect to Google Cloud Platform (GCP) to interact with documents stored in the Discovery Engine datastore.
Authentication is required:
gcloud auth application-default loginFor more details see: https://docs.publishing.service.gov.uk/manual/google-cloud-platform-gcp.html#using-the-cli
The rake tasks can be run using the default lite stack, from your search-admin folder:
govuk-docker run bundle exec rake [relevant-rake-task]