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 docs for module responsibilities and critical paths #25

Merged
merged 1 commit into from
Apr 16, 2024
Merged
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
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,36 @@ height="42" />
[![Lint](https://github.com/newfold-labs/wp-module-staging/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/newfold-labs/wp-module-staging/actions/workflows/lint.yml)
[![License](https://img.shields.io/github/license/newfold-labs/wp-module-staging?labelColor=333333&color=666666)](https://raw.githubusercontent.com/newfold-labs/wp-module-staging/master/LICENSE)

Newfold module for staging functionality in brand plugins
Newfold module for staging functionality in brand plugins.

## Module Responsibilities

- Adds a staging page in the brand plugin app and navigation.
- Displays an indicator of current environment (production or staging) in the staging page.
- On staging, add an indicator to the WordPress admin bar showing the current environment is staging.
- The staging page displays details about the production and a staging site if it exists.
- Production site details are the url - which matches the home url of the website.
- Staging site details are the url and creation date.
- On the production site, selecting the staging site will switch to that environment.
- On the staging site, selecting the production site will switch to that environment.
- On the production site, the production section of the staging page includes a button to create a staging site if one doesn't already exist.
- On the production site, the production section of the staging page includes a button to clone to staging if a staging site already exists.
- On the production site, the staging section of the staging page includes a button to delete the staging site if one exist
- On the staging site, the staging section of the staging page includes a button to deploy the staging site to production.
- This deploy button includes options to deploy:
- All changes
- Database only
- Files only

## Critical Paths

- A user can create a staging site from production.
- A user can clone the current production site to an existing staging site.
- A user can switch to staging from production.
- A user is notified clearly they are on a staging site.
- A user can switch to production from staging.
- A user can deploy staging changes to a production site.
- A user can delete a staging site from production.

## Installation

Expand Down
Loading