-
Notifications
You must be signed in to change notification settings - Fork 91
deprecation_checklist
James Douglass edited this page May 14, 2025
·
16 revisions
- Remove the model's source code
-
git rmthe model's source code fromsrc/natcap/invest/ -
git rmthe model's tests fromtests/ -
git rmthe model's UI file fromsrc/natcap/invest/ui -
git rmany related sections/pages from the InVEST API documentation atdoc/api-docs - Remove references to the model in the workbench source code:
sampledata_registry.jsonResourcesLinks.jsxui_config.js
- Edit the
MODEL_METADATAdict insrc/natcap/invest/__init__.pyto remove the model's CLI entrypoints. - Remove the model from
setup.py(not all models will need this)
-
- Update the tests
-
git rmany test files and/or classes associated with the model -
git rmany test data frominvest-test-datarepository and updateMakefilewith the new git rev. - Make sure the remaining tests run through!
-
- Remove the model from the InVEST distribution
- Update the sample data repository at
data/invest-data:- Remove the model's directory from the repo.
- Remove the model's entry from the
ZIPDIRSlist inMakefileif needed. - Update the
Makefilewith the new git revision.
- Remove references in
installer/windows/invest_installer.nsi(Start Menu links & Sample Data downloads) - Remove the model's datastack entry/entries from
scripts/invest-autotest.py - Remove the user's guide chapter from the User's Guide repository and update the User's Guide revision in the Makefile accordingly.
- Update the sample data repository at
- Update
HISTORY.rstto note the change. - Build the binaries to verify that everything builds correctly.
- Do a pull request on all this!
When the source code is all set and PRed in,
- Update the deprecated models page http://data.naturalcapitalproject.org/invest-releases/deprecated_models.html to link to the last full release with this model.
- Remove the model from the list of InVEST models on the Data Hub (https://github.com/natcap/data.naturalcapitalproject.stanford.edu/blob/master/src/ckanext-natcap/ckanext/natcap/topic_keywords.json)
- Notify the training coordinator (Lori) and the communications manager of the deprecations
- Coordinate with the communications manager about updating the natcap website's list of models (https://naturalcapitalproject.stanford.edu/software/invest)