WordPress / WordPress/openverse

Add instructions for testing migrations for zero-downtime compatibility to docs

Open
#992 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🤖 aspect: dx 🟨 priority: medium 🧰 goal: internal improvement 🧱 stack: api
Dominant language
Python
Stars
380
Forks
290
Avg merge
3h 17m
Merged PRs (30d)
8

Description

Problem

In a PR like https://github.com/WordPress/openverse/pull/956, where a column is being removed that has non-obvious usages, it's easy to have false confidence that the change is compatible with zero-downtime deployments. Luckily, there is a way to confirm via manual testing whether a migration works with zero-downtime, as described in this review comment: https://github.com/WordPress/openverse/pull/956#pullrequestreview-1353526516

Description

Add instructions for testing a migration for zero-downtime compatibility to the zero-downtime documentation. Add a link to that section of the documentation to the migration check comment so that folks are always aware of the method when they're dealing with a PR with migrations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the zero-downtime documentation and the migration check comment referenced in the issue, then review PR #956 for the manual testing method. Add the testing instructions to the zero-downtime section and link that section from the migration check comment so migration authors can find it.

Written by the indexing model from the issue text.

Assessment

Domain
databases, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.