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

Add documentation on hotfixing in GovPress #1469

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

snim2
Copy link
Contributor

@snim2 snim2 commented Jan 3, 2025

Notes on how to avoid hotfixing and how to reduce
the risk of it when we we do hotfix.

Follow-up to INC-203 https://app.incident.io/dxw/incidents/203

Note: This should probably be followed by a PR to group the technical notes into a subfolder

Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for laughing-payne-b9fbd2 ready!

Name Link
🔨 Latest commit 2ec3c31
🔍 Latest deploy log https://app.netlify.com/sites/laughing-payne-b9fbd2/deploys/677bbbf90c2daf0008226d09
😎 Deploy Preview https://deploy-preview-1469--laughing-payne-b9fbd2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Notes on how to avoid hotfixing and how to reduce
the risk of it when we we do hotfix.

Follow-up to INC-203 https://app.incident.io/dxw/incidents/203
@snim2 snim2 force-pushed the feature/add-govpress-hotfix-notes branch from a359986 to e492134 Compare January 3, 2025 17:48

In this case, we should first consider factoring our code to avoid hotfixes. For example, can new features be designed as a new plugin, which can be deactivated by default? Can a theme rebuild be placed in a new theme?

An alternative to a new plugin or theme is to guard the new feature with a feature flag which can be set to activate the feature in staging but not in production. This is something that is much easier to implement if your code is well factored, according to the [SOLID principles of OOP](https://en.wikipedia.org/wiki/SOLID).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking suggestion: would it be useful to include a link to an explainer about feature flags here? (e.g. https://blog.jetbrains.com/space/2022/06/16/feature-flags/). Some members of the team might not be familiar with the concept.

@snim2 snim2 merged commit 72599ac into main Jan 6, 2025
6 checks passed
@snim2 snim2 deleted the feature/add-govpress-hotfix-notes branch January 6, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants