NEUBIAS / bise

BIII development repository
http://biii.eu
GNU General Public License v2.0
5 stars 14 forks source link

Proposal: use structure sync to track Taxonomy term, Menu and custom block updates. #44

Open miura opened 6 years ago

miura commented 6 years ago

@florian-levet @PerrineGilloteaux @vcaldas

please comment.

Updating the workflow for taxonomy terms

Kota

20181023

Current way of Adding, Editing, Weighting Taxonomy Terms

Up until October 2018 Taggathon, taxonomy terms incuding BISE ontology was handled in the following way.

Recommended update in the workflow

By using an add-on package "structure sync", it's possible to export taxonomy terms as yml file and handle them just like other settings.

Expexted workflow is as following

Exporting taxonomy updates from database to yml file

  1. Adding, Editing, Weighting taxonomy terms in the local biii.eu.
  2. Translate the updates to writable format by drush export-taxonomies and it will be ready to be exported as files (changes at this stage only happens within the database)
  3. Check that there is difference in the database and yml file: drush config:status (short form drush cst). If there is difference, you should see structure_sync.data.yml in the list.
  4. As usual, drush cex (config:export) will update structure_sync.data.yml file according to the updates in the database.
  5. git add . & git commit - m "taxnonomy updated" or so will add these changes to the version tracking.
  6. git push origin <branch name>
  7. In Github, issue a pull request to NEUBIAS/bise dev branch. Wait (or insist) someone else to merge the PR.

What Florian can do from now on, is these 7 steps. Extract taxonomy from Webprotege and update your local drupal database using the python script. Then follow step 1 to 6 to push the changes to the Github repo.

Importing taxonomy updates from file to yml file

  1. Check if git pull upstream dev pulled any change in structure_sync.data.yml, If this happened, then taxonomy term has changed and you need to do the following.
  2. drush cim (config:import) to update your local database using updated yml file.
  3. drush import-taxonomies to update taxonomy.
miura commented 5 years ago

see miura@1b5a3645e541ac709d96a1186a81679c1a8a757b for and example structure_sync.data.yml

This was the status in October.

PerrineGilloteaux commented 5 years ago

Export process worked nicely, cin worked nicely but then import taxonomy got stuck. Inverstigating.. Also for menu not everything was exported...

PerrineGilloteaux commented 5 years ago

ok, some patch pending and open issue, maybe not ready for using .. Let's Watch the next version, for now not ok. https://www.drupal.org/project/issues/search/structure_sync?status%5B0%5D=8&status%5B1%5D=13&status%5B2%5D=14

miura commented 4 years ago

Revival: please agree to use this module, to avoid the disappearance of contributions like we are seeing this time...

miura commented 4 years ago

Export process worked nicely, cin worked nicely but then import taxonomy got stuck. Inverstigating.. Also for menu not everything was exported...

In terms of importing, doing it from the GUI works. /admin/structure/structure-sync/general

PerrineGilloteaux commented 1 year ago

Related to https://github.com/NEUBIAS/bise/issues/72 and https://github.com/NEUBIAS/bise/issues/66 merged with this one then