Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAU: Adds rollback/download/apply manual #53

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added source/images/tariff-updates-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions source/manual/how-to-rollback-apply-tariff-updates.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
owner_slack: "#ott-core"
title: Rollback and Apply Tariff Updates
section: Tariff Updates
layout: manual_layout
parent: "/manual.html"
---

This document describes how to rollback and apply tariff updates. These updates
are applied nightly and are the basis for all data in the OTT.

## Overview

The admin site is available for update management in the development, staging and production environments.

You can review these at the following URLs:

- [Development](https://admin.dev.trade-tariff.service.gov.uk)
- [Staging](https://admin.staging.trade-tariff.service.gov.uk)
- [Production](https://admin.trade-tariff.service.gov.uk)

Typically you'll want to do the following to roll back and roll forward with updates:

1. Identify the update you want to rollback too.
2. Rollback to the update before the date you want to rollback to.
3. Download updates
4. Apply updates

> We keep two database schemas that we might want to rollback. XI (data produced by the Europeans) and UK (data produced by the UK government). The rollback process is the same for both and you can toggle the schema in the nav bar of the admin apps.

View of the updates page

![Tariff Admin Updates Page](images/tariff-updates-page.png)

### Rollback process

1. Identify the update you want to rollback too.
2. Navigate to the update before the date you want to rollback to.
3. Click the rollback button and follow through the onscreen wizard

> Typically you don't want to `keep` the update rows so you can leave this and the
rollback date as the default.

### Download process

The download process is as simple as navigating to the *Updates* nav page and clicking the green download button.

You'll want to wait until all of the updates are downloaded and in `Pending` status before subsequently applying them.

### Apply process

The apply process is as simple as navigating to the *Updates* nav page and clicking the green apply button.

You can review (on the UK tariff) the inserts that got created as a byproduct of the updates by clicking `Review inserts`.
Loading