better updates

This commit is contained in:
Robert Nasarek 2026-06-23 14:28:34 +00:00
parent cc994a3ac9
commit 873215910e
5 changed files with 250 additions and 82 deletions

View file

@ -181,3 +181,48 @@ Files listed in this YAML will be excluded from the `changed_files/` directory e
├── new_recipe_not_in_original.csv # Paths in new_recipe_config missing from original export
└── deleted_files.csv # Paths in committed recipe missing from new_recipe_config
```
## Update WissKI Model
1. **Export config from WissKI** — download a full export from `/admin/config/development/configuration/full/export` and place the archive in `ingest/`.
2. **Run the selector (force)** — activate the virtualenv and start the script:
```bash
source .venv/bin/activate
python3 config_selector.py --force
```
3. **Copy and compare** — choose `copy`, then `compare`.
4. **Review changes** — inspect `changed_files_manifest.csv` and `deleted_files.csv`; control scrap and failures before continuing.
5. **Update the recipe** — run the selector again (without `--force`) and choose `update`:
```bash
python3 config_selector.py
```
6. **Commit and push** — stage changes, then push with the helper script:
```bash
git add /opt/drupal/private-files/drupal_config_extract/update
bin/wisski-push.sh <your-name> "your commit message"
```
7. **Pull the recipe** — update the local recipe checkout:
```bash
cd /opt/drupal/recipes/wisski_default_data_model
git pull
```
8. **Reset the WissKI instance** — delete bundle, fields, and pathbuilder on the instance.
9. **Re-apply the recipe** — from the Drupal docroot:
```bash
drush cr
drush recipe ../recipes/wisski_default_data_model
drush wisski-core:recreate-menus
```