├── .dockerignore ├── .github ├── dependabot.yml ├── pull_request_template.md └── workflows │ ├── actionlint.yml │ ├── ci.yml │ ├── copy-pr-template-to-dependabot-prs.yml │ ├── deploy.yml │ ├── release.yml │ ├── rspec.yml │ └── verify-pact.yml ├── .gitignore ├── .govuk_dependabot_merger.yml ├── .rspec ├── .rubocop.yml ├── .ruby-version ├── Dockerfile ├── Gemfile ├── Gemfile.lock ├── LICENCE ├── README.md ├── Rakefile ├── app ├── controllers │ ├── application_controller.rb │ ├── content_items_controller.rb │ └── publish_intents_controller.rb ├── lib │ ├── data_hygiene │ │ ├── content_item_deduplicator.rb │ │ ├── duplicate_report.rb │ │ └── publishing_delay_reporter.rb │ ├── find_by_path.rb │ ├── find_specific_term.rb │ └── publication_delay_report.rb ├── mailers │ └── .gitkeep ├── models │ ├── application_record.rb │ ├── content_item.rb │ ├── publish_intent.rb │ ├── scheduled_publishing_log_entry.rb │ ├── update_lock.rb │ └── user.rb ├── presenters │ ├── content_item_presenter.rb │ ├── content_type_resolver.rb │ └── expanded_links_presenter.rb └── validators │ └── absolute_path_validator.rb ├── bin ├── brakeman ├── dev ├── rails ├── rake ├── rspec ├── rubocop ├── setup └── yarn ├── config.ru ├── config ├── application.rb ├── boot.rb ├── database.yml ├── environment.rb ├── environments │ ├── development.rb │ ├── production.rb │ └── test.rb ├── initializers │ ├── application_controller_renderer.rb │ ├── backtrace_silencers.rb │ ├── content_security_policy.rb │ ├── cookies_serializer.rb │ ├── filter_parameter_logging.rb │ ├── gds_sso.rb │ ├── inflections.rb │ ├── logstasher.rb │ ├── mime_types.rb │ ├── permissions_policy.rb │ ├── prepend_draft_to_logs_in_development.rb │ ├── prometheus.rb │ ├── session_store.rb │ └── wrap_parameters.rb ├── locales │ └── en.yml ├── puma.rb ├── routes.rb ├── schedule.rb ├── secrets.yml └── spring.rb ├── db ├── migrate │ ├── 20230319100101_enable_pg_extensions.rb │ ├── 20230320150042_add_content_items.rb │ ├── 20230324113335_add_publish_intents.rb │ ├── 20230327101118_add_scheduled_publishing_log_entries.rb │ ├── 20230327101936_add_users.rb │ ├── 20230328131042_add_routes_indexes_to_content_items.rb │ ├── 20230328141957_add_routes_index_to_publish_intents.rb │ ├── 20230420105019_add_mongo__id_to_content_items.rb │ ├── 20230425074342_add_mongo_id_to_user.rb │ ├── 20230425074357_add_mongo_id_to_scheduled_publishing_log_entry.rb │ ├── 20230428144838_add_optimised_routes_indexes.rb │ ├── 20230830093643_allow_null_timestamps.rb │ ├── 20231016112610_change_scheduled_publishing_delay_seconds_to_bigint.rb │ ├── 20240220151333_remove_worldwide_offices.rb │ ├── 20240312132747_remove_whitehall_frontend.rb │ ├── 20241105135438_add_notify_trigger_for_route_changes.rb │ ├── 20241209132444_update_notify_trigger_for_route_changes.rb │ └── 20251120155243_remove_info_frontend.rb ├── seeds.rb └── structure.sql ├── docs ├── access-limited-content-items.md ├── adr │ └── 0001-port-content-store-to-postgresql-on-rds.md ├── content-store-api.md ├── gone_item.md ├── publish_intents.md ├── redirect_item.md └── route_registration.md ├── lib └── tasks │ ├── ci_reporter.rake │ ├── data_hygiene │ ├── content_item_deduplicator.rake │ ├── duplicate_report.rake │ ├── inspect_content_ids.rake │ └── publishing_delay_report.rake │ ├── housekeeping.rake │ └── report.rake ├── log └── .gitkeep ├── openapi.yaml ├── public ├── 400.html ├── 404.html ├── 406-unsupported-browser.html ├── 422.html ├── 500.html ├── favicon.ico ├── icon.png ├── icon.svg └── robots.txt └── spec ├── factories ├── content_item.rb ├── publish_intent.rb ├── scheduled_publishing_log_entry.rb └── user.rb ├── fixtures └── content_item_links_with_role_appointments.json ├── integration ├── access_controls_for_content_items_spec.rb ├── deleting_a_content_item_spec.rb ├── end_to_end_spec.rb ├── fetching_content_item_spec.rb ├── fetching_publish_intent_spec.rb ├── notify_route_change_spec.rb ├── public_api_request_spec.rb ├── publish_intent_crud_spec.rb ├── submitting_content_item_spec.rb ├── submitting_gone_item_spec.rb └── submitting_redirect_item_spec.rb ├── lib ├── find_by_path_spec.rb ├── find_specific_term_spec.rb ├── publication_delay_report_spec.rb ├── tasks │ └── data_hygiene │ │ ├── content_item_deduplicator_spec.rb │ │ ├── duplicate_report_spec.rb │ │ └── publishing_delay_reporter_spec.rb └── validate_openapi3_definition_spec.rb ├── models ├── absolute_path_validator_spec.rb ├── content_item_spec.rb ├── publish_intent_spec.rb ├── scheduled_publishing_log_entry_spec.rb ├── update_lock_spec.rb └── user_spec.rb ├── presenters ├── content_item_presenter_spec.rb ├── content_type_resolver_spec.rb └── expanded_links_presenter_spec.rb ├── rails_helper.rb ├── routing ├── content_item_routing_spec.rb └── publish_intent_routing_spec.rb ├── service_consumers └── pact_helper.rb ├── spec_helper.rb └── support ├── database_cleaner.rb ├── datetime_matcher.rb ├── factory_bot.rb ├── json_request_helpers.rb ├── request_helpers.rb ├── schema_testing.rb ├── shared └── find_by_path.rb └── timecop.rb /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/actionlint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/actionlint.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/copy-pr-template-to-dependabot-prs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/copy-pr-template-to-dependabot-prs.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/rspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/rspec.yml -------------------------------------------------------------------------------- /.github/workflows/verify-pact.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.github/workflows/verify-pact.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.gitignore -------------------------------------------------------------------------------- /.govuk_dependabot_merger.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.govuk_dependabot_merger.yml -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.4.4 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/Dockerfile -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/Rakefile -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /app/controllers/content_items_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/controllers/content_items_controller.rb -------------------------------------------------------------------------------- /app/controllers/publish_intents_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/controllers/publish_intents_controller.rb -------------------------------------------------------------------------------- /app/lib/data_hygiene/content_item_deduplicator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/data_hygiene/content_item_deduplicator.rb -------------------------------------------------------------------------------- /app/lib/data_hygiene/duplicate_report.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/data_hygiene/duplicate_report.rb -------------------------------------------------------------------------------- /app/lib/data_hygiene/publishing_delay_reporter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/data_hygiene/publishing_delay_reporter.rb -------------------------------------------------------------------------------- /app/lib/find_by_path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/find_by_path.rb -------------------------------------------------------------------------------- /app/lib/find_specific_term.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/find_specific_term.rb -------------------------------------------------------------------------------- /app/lib/publication_delay_report.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/lib/publication_delay_report.rb -------------------------------------------------------------------------------- /app/mailers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/models/application_record.rb -------------------------------------------------------------------------------- /app/models/content_item.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/models/content_item.rb -------------------------------------------------------------------------------- /app/models/publish_intent.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/models/publish_intent.rb -------------------------------------------------------------------------------- /app/models/scheduled_publishing_log_entry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/models/scheduled_publishing_log_entry.rb -------------------------------------------------------------------------------- /app/models/update_lock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/models/update_lock.rb -------------------------------------------------------------------------------- /app/models/user.rb: -------------------------------------------------------------------------------- 1 | class User < ApplicationRecord 2 | include GDS::SSO::User 3 | end 4 | -------------------------------------------------------------------------------- /app/presenters/content_item_presenter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/presenters/content_item_presenter.rb -------------------------------------------------------------------------------- /app/presenters/content_type_resolver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/presenters/content_type_resolver.rb -------------------------------------------------------------------------------- /app/presenters/expanded_links_presenter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/presenters/expanded_links_presenter.rb -------------------------------------------------------------------------------- /app/validators/absolute_path_validator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/app/validators/absolute_path_validator.rb -------------------------------------------------------------------------------- /bin/brakeman: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/brakeman -------------------------------------------------------------------------------- /bin/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/dev -------------------------------------------------------------------------------- /bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/rails -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/rake -------------------------------------------------------------------------------- /bin/rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/rspec -------------------------------------------------------------------------------- /bin/rubocop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/rubocop -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/setup -------------------------------------------------------------------------------- /bin/yarn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/bin/yarn -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config.ru -------------------------------------------------------------------------------- /config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/application.rb -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/boot.rb -------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/database.yml -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/environment.rb -------------------------------------------------------------------------------- /config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/environments/development.rb -------------------------------------------------------------------------------- /config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/environments/production.rb -------------------------------------------------------------------------------- /config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/environments/test.rb -------------------------------------------------------------------------------- /config/initializers/application_controller_renderer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/application_controller_renderer.rb -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /config/initializers/content_security_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/content_security_policy.rb -------------------------------------------------------------------------------- /config/initializers/cookies_serializer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/cookies_serializer.rb -------------------------------------------------------------------------------- /config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /config/initializers/gds_sso.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/gds_sso.rb -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/inflections.rb -------------------------------------------------------------------------------- /config/initializers/logstasher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/logstasher.rb -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /config/initializers/permissions_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/permissions_policy.rb -------------------------------------------------------------------------------- /config/initializers/prepend_draft_to_logs_in_development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/prepend_draft_to_logs_in_development.rb -------------------------------------------------------------------------------- /config/initializers/prometheus.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/prometheus.rb -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/session_store.rb -------------------------------------------------------------------------------- /config/initializers/wrap_parameters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/initializers/wrap_parameters.rb -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/locales/en.yml -------------------------------------------------------------------------------- /config/puma.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/puma.rb -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/routes.rb -------------------------------------------------------------------------------- /config/schedule.rb: -------------------------------------------------------------------------------- 1 | # File required to ensure cronjobs are removed 2 | -------------------------------------------------------------------------------- /config/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/secrets.yml -------------------------------------------------------------------------------- /config/spring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/config/spring.rb -------------------------------------------------------------------------------- /db/migrate/20230319100101_enable_pg_extensions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230319100101_enable_pg_extensions.rb -------------------------------------------------------------------------------- /db/migrate/20230320150042_add_content_items.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230320150042_add_content_items.rb -------------------------------------------------------------------------------- /db/migrate/20230324113335_add_publish_intents.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230324113335_add_publish_intents.rb -------------------------------------------------------------------------------- /db/migrate/20230327101118_add_scheduled_publishing_log_entries.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230327101118_add_scheduled_publishing_log_entries.rb -------------------------------------------------------------------------------- /db/migrate/20230327101936_add_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230327101936_add_users.rb -------------------------------------------------------------------------------- /db/migrate/20230328131042_add_routes_indexes_to_content_items.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230328131042_add_routes_indexes_to_content_items.rb -------------------------------------------------------------------------------- /db/migrate/20230328141957_add_routes_index_to_publish_intents.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230328141957_add_routes_index_to_publish_intents.rb -------------------------------------------------------------------------------- /db/migrate/20230420105019_add_mongo__id_to_content_items.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230420105019_add_mongo__id_to_content_items.rb -------------------------------------------------------------------------------- /db/migrate/20230425074342_add_mongo_id_to_user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230425074342_add_mongo_id_to_user.rb -------------------------------------------------------------------------------- /db/migrate/20230425074357_add_mongo_id_to_scheduled_publishing_log_entry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230425074357_add_mongo_id_to_scheduled_publishing_log_entry.rb -------------------------------------------------------------------------------- /db/migrate/20230428144838_add_optimised_routes_indexes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230428144838_add_optimised_routes_indexes.rb -------------------------------------------------------------------------------- /db/migrate/20230830093643_allow_null_timestamps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20230830093643_allow_null_timestamps.rb -------------------------------------------------------------------------------- /db/migrate/20231016112610_change_scheduled_publishing_delay_seconds_to_bigint.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20231016112610_change_scheduled_publishing_delay_seconds_to_bigint.rb -------------------------------------------------------------------------------- /db/migrate/20240220151333_remove_worldwide_offices.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20240220151333_remove_worldwide_offices.rb -------------------------------------------------------------------------------- /db/migrate/20240312132747_remove_whitehall_frontend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20240312132747_remove_whitehall_frontend.rb -------------------------------------------------------------------------------- /db/migrate/20241105135438_add_notify_trigger_for_route_changes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20241105135438_add_notify_trigger_for_route_changes.rb -------------------------------------------------------------------------------- /db/migrate/20241209132444_update_notify_trigger_for_route_changes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20241209132444_update_notify_trigger_for_route_changes.rb -------------------------------------------------------------------------------- /db/migrate/20251120155243_remove_info_frontend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/migrate/20251120155243_remove_info_frontend.rb -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/seeds.rb -------------------------------------------------------------------------------- /db/structure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/db/structure.sql -------------------------------------------------------------------------------- /docs/access-limited-content-items.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/access-limited-content-items.md -------------------------------------------------------------------------------- /docs/adr/0001-port-content-store-to-postgresql-on-rds.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/adr/0001-port-content-store-to-postgresql-on-rds.md -------------------------------------------------------------------------------- /docs/content-store-api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/content-store-api.md -------------------------------------------------------------------------------- /docs/gone_item.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/gone_item.md -------------------------------------------------------------------------------- /docs/publish_intents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/publish_intents.md -------------------------------------------------------------------------------- /docs/redirect_item.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/redirect_item.md -------------------------------------------------------------------------------- /docs/route_registration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/docs/route_registration.md -------------------------------------------------------------------------------- /lib/tasks/ci_reporter.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/ci_reporter.rake -------------------------------------------------------------------------------- /lib/tasks/data_hygiene/content_item_deduplicator.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/data_hygiene/content_item_deduplicator.rake -------------------------------------------------------------------------------- /lib/tasks/data_hygiene/duplicate_report.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/data_hygiene/duplicate_report.rake -------------------------------------------------------------------------------- /lib/tasks/data_hygiene/inspect_content_ids.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/data_hygiene/inspect_content_ids.rake -------------------------------------------------------------------------------- /lib/tasks/data_hygiene/publishing_delay_report.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/data_hygiene/publishing_delay_report.rake -------------------------------------------------------------------------------- /lib/tasks/housekeeping.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/housekeeping.rake -------------------------------------------------------------------------------- /lib/tasks/report.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/lib/tasks/report.rake -------------------------------------------------------------------------------- /log/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /openapi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/openapi.yaml -------------------------------------------------------------------------------- /public/400.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/400.html -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/404.html -------------------------------------------------------------------------------- /public/406-unsupported-browser.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/406-unsupported-browser.html -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/422.html -------------------------------------------------------------------------------- /public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/500.html -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/icon.png -------------------------------------------------------------------------------- /public/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/icon.svg -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/public/robots.txt -------------------------------------------------------------------------------- /spec/factories/content_item.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/factories/content_item.rb -------------------------------------------------------------------------------- /spec/factories/publish_intent.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/factories/publish_intent.rb -------------------------------------------------------------------------------- /spec/factories/scheduled_publishing_log_entry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/factories/scheduled_publishing_log_entry.rb -------------------------------------------------------------------------------- /spec/factories/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/factories/user.rb -------------------------------------------------------------------------------- /spec/fixtures/content_item_links_with_role_appointments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/fixtures/content_item_links_with_role_appointments.json -------------------------------------------------------------------------------- /spec/integration/access_controls_for_content_items_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/access_controls_for_content_items_spec.rb -------------------------------------------------------------------------------- /spec/integration/deleting_a_content_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/deleting_a_content_item_spec.rb -------------------------------------------------------------------------------- /spec/integration/end_to_end_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/end_to_end_spec.rb -------------------------------------------------------------------------------- /spec/integration/fetching_content_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/fetching_content_item_spec.rb -------------------------------------------------------------------------------- /spec/integration/fetching_publish_intent_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/fetching_publish_intent_spec.rb -------------------------------------------------------------------------------- /spec/integration/notify_route_change_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/notify_route_change_spec.rb -------------------------------------------------------------------------------- /spec/integration/public_api_request_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/public_api_request_spec.rb -------------------------------------------------------------------------------- /spec/integration/publish_intent_crud_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/publish_intent_crud_spec.rb -------------------------------------------------------------------------------- /spec/integration/submitting_content_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/submitting_content_item_spec.rb -------------------------------------------------------------------------------- /spec/integration/submitting_gone_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/submitting_gone_item_spec.rb -------------------------------------------------------------------------------- /spec/integration/submitting_redirect_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/integration/submitting_redirect_item_spec.rb -------------------------------------------------------------------------------- /spec/lib/find_by_path_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/find_by_path_spec.rb -------------------------------------------------------------------------------- /spec/lib/find_specific_term_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/find_specific_term_spec.rb -------------------------------------------------------------------------------- /spec/lib/publication_delay_report_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/publication_delay_report_spec.rb -------------------------------------------------------------------------------- /spec/lib/tasks/data_hygiene/content_item_deduplicator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/tasks/data_hygiene/content_item_deduplicator_spec.rb -------------------------------------------------------------------------------- /spec/lib/tasks/data_hygiene/duplicate_report_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/tasks/data_hygiene/duplicate_report_spec.rb -------------------------------------------------------------------------------- /spec/lib/tasks/data_hygiene/publishing_delay_reporter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/tasks/data_hygiene/publishing_delay_reporter_spec.rb -------------------------------------------------------------------------------- /spec/lib/validate_openapi3_definition_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/lib/validate_openapi3_definition_spec.rb -------------------------------------------------------------------------------- /spec/models/absolute_path_validator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/absolute_path_validator_spec.rb -------------------------------------------------------------------------------- /spec/models/content_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/content_item_spec.rb -------------------------------------------------------------------------------- /spec/models/publish_intent_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/publish_intent_spec.rb -------------------------------------------------------------------------------- /spec/models/scheduled_publishing_log_entry_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/scheduled_publishing_log_entry_spec.rb -------------------------------------------------------------------------------- /spec/models/update_lock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/update_lock_spec.rb -------------------------------------------------------------------------------- /spec/models/user_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/models/user_spec.rb -------------------------------------------------------------------------------- /spec/presenters/content_item_presenter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/presenters/content_item_presenter_spec.rb -------------------------------------------------------------------------------- /spec/presenters/content_type_resolver_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/presenters/content_type_resolver_spec.rb -------------------------------------------------------------------------------- /spec/presenters/expanded_links_presenter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/presenters/expanded_links_presenter_spec.rb -------------------------------------------------------------------------------- /spec/rails_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/rails_helper.rb -------------------------------------------------------------------------------- /spec/routing/content_item_routing_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/routing/content_item_routing_spec.rb -------------------------------------------------------------------------------- /spec/routing/publish_intent_routing_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/routing/publish_intent_routing_spec.rb -------------------------------------------------------------------------------- /spec/service_consumers/pact_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/service_consumers/pact_helper.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/database_cleaner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/database_cleaner.rb -------------------------------------------------------------------------------- /spec/support/datetime_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/datetime_matcher.rb -------------------------------------------------------------------------------- /spec/support/factory_bot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/factory_bot.rb -------------------------------------------------------------------------------- /spec/support/json_request_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/json_request_helpers.rb -------------------------------------------------------------------------------- /spec/support/request_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/request_helpers.rb -------------------------------------------------------------------------------- /spec/support/schema_testing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/schema_testing.rb -------------------------------------------------------------------------------- /spec/support/shared/find_by_path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/content-store/HEAD/spec/support/shared/find_by_path.rb -------------------------------------------------------------------------------- /spec/support/timecop.rb: -------------------------------------------------------------------------------- 1 | RSpec.configuration.after(:each) do 2 | Timecop.return 3 | end 4 | --------------------------------------------------------------------------------