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
devbranch to thestagingbranch. Once the changes are verified, proceed to merge them fromstagingtoprod.
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
devtostagingorstagingtoprod, do not squash. Squashing creates a new commit, which doesn't transfer the commits fromdevtostaging, thus failing to synchronize the branches effectively. Instead, use a merge commit to sync thestagingandprodbranches.
Follow these additional steps:
- Create a release from the
devbranch. - Merge changes from
devintostaging.