The audience for this document is a developer working on first-line support, who may not have worked on this service before. It explains how to perform some tasks that you might get asked to do.
- We usually use the word “development” to refer to the
development
environment in Azure — this is what other projects might call “staging”. To refer to the application running on a developer’s machine, we usually include the word “local”, for example “local development”.
If you want to do one of these tasks and you don’t have what you need, see the first-line support onboarding list.
-
permissions to open a pull request in the repository
-
credentials for DfE’s Cloud Infrastructure platform and membership of an Active Directory group that allows you to perform a release — here’s how to check:
-
Log in to https://portal.azure.com with your
@digital.education.gov.uk
email address. -
Search for
s118-teacherpaymentsservice-production
. -
Click “My permissions”.
-
If you see something like
You are a member of the group 's118-teacherpaymentservice-Delivery Team USR (null)' which has been assigned the role 'Reader' (type BuiltInRole) and has access to subscription s118-teacherpaymentsservice-production
then you have what you need.
-
- credentials for DfE Sign-in pre-production, if you’re investigating a bug in
the
/admin
site — seedfe-sign-in.md
-
Set up the app locally. See
README.md#setting-up-the-app-locally
.If you need to try out something in the
/admin
site locally, see how to set up DfE Sign-in locally. -
Fix the bug.
-
Describe the fix in
CHANGELOG.md
. -
Open a pull request into
master
, and get it reviewed. -
Merge the pull request.
-
If possible, verify that the fix works on the development environment.
-
Do a release. See
release-process.md
.
- credentials for the project’s Azure infrastructure
- Make a Privileged Identity Management (PIM) request, to gain the elevated
permissions required to access production resources. See
privileged-identity-management-requests.md
. - Ask another developer to approve the PIM request.
- Start a Rails console. See
README.md#accessing-production-data-with-a-live-rails-console
.
- access to the production Logit.io stack for the service, to view the web and worker logs
- access to the
dxw/dfe-claim
project in Rollbar, to view details of exceptions
- To view logs (web, worker, container), see
logging.md
. - To view details of exceptions, see the
dxw/dfe-claim
project in Rollbar.
Someone from DfE will probably ask us to do this at least once a month whilst there is a claim window open, which is around September – March.
-
credentials for DfE’s G Suite - i.e. an
@digital.education.gov.uk
email address -
credentials for DfE’s Cloud Infrastructure platform and membership of an Active Directory group that allows you to connect to a production container — here’s how to check:
-
Log in to https://portal.azure.com with your
@digital.education.gov.uk
email address. -
Search for
s118-teacherpaymentsservice-production
. -
Click “My permissions”.
-
If you see something like
You are a member of the group 's118-teacherpaymentservice-Delivery Team USR (null)' which has been assigned the role 'Reader' (type BuiltInRole) and has access to subscription s118-teacherpaymentsservice-production`
then you have what you need.
-
Follow the steps in school-check-data.md
. The
“relevant service operator” which that document refers to is probably the person
who raised the support ticket.
Someone from DfE will probably ask us to do this at least once every 6 months.
- the same things needed to
make a bug fix and deploy it:
- permissions to open a pull request in the repository
- credentials for DfE’s Cloud Infrastructure platform and membership of an Active Directory group that allows you to perform a release
Follow the steps in
govuk-verify-rotating-keys-and-certificates.md
.
- credentials for the project’s Azure infrastructure
- Make a Privileged Identity Management (PIM) request, to gain the elevated
permissions required to access production resources. See
privileged-identity-management-requests.md
. - Ask another developer to approve the PIM request.
- Start a Rails console. See
README.md#accessing-production-data-with-a-live-rails-console
. - Identify the latest
PayrollRun
object (double check that the dates are as expected), setdownloaded_at
anddownloaded_by_id
tonil
and save the object:payroll = PayrollRun.last payroll.downloaded_at = nil payroll.downloaded_by_id = nil payroll.save
- credentials for the project’s Azure infrastructure
- Make a Privileged Identity Management (PIM) request, to gain the elevated
permissions required to access production resources. See
privileged-identity-management-requests.md
. - Ask another developer to approve the PIM request.
- Search for
s118p01-app-worker-aci
within the Azure portal. - Click "Restart"
Alternatively, instead of doing it via the web interface, you can run
az container restart --name s118p01-app-worker-aci --resource-group s118p01-app
.