Table of Contents
The WRI Open Data Portal monorepo
See the CKAN Backend Development README for instructions on how to set up a local Docker CKAN backend development environment. Note: the ckanext-wri
extension in the root of this repo is a symlink to ckanext-wri
in ckan-backend-dev/src
. See the README above and the WRI Extension README for more information.
See the CKAN Deployment README for instructions on how to deploy CKAN to EKS.
The table of contents in the READMEs are generated using generated using DocToc. You can install it globally by running:
npm install -g doctoc
Then, to update the table of contents in a markdown file, for example, README.md
, run:
doctoc README.md
To synchronize the dev
, staging
, and prod
environments, follow these steps:
- Raise a pull request (PR) from the
dev
branch to thestaging
branch. Once the changes are verified, proceed to merge them fromstaging
toprod
.
When merging features from a feature branch to the dev
branch, consider the following:
- If there are too many non-relevant commits (e.g., debugging commits or unnecessary changes), squash and merge to avoid polluting the branch history.
- When merging from
dev
tostaging
orstaging
toprod
, do not squash. Squashing creates a new commit, which doesn't transfer the commits fromdev
tostaging
, thus failing to synchronize the branches effectively. Instead, use a merge commit to sync thestaging
andprod
branches.
Follow these additional steps:
- Create a release from the
dev
branch. - Merge changes from
dev
intostaging
.