Version 28 (modified by 8 years ago) (diff) | ,
---|
-
1. Conversion from legacy state to basic Drupal
- 1.1. Enable Bootstrap module
- 1.2. Disable legacy/redundant extensions
- 1.3. Enhance functionality before testing
- 1.4. Content restructuring
- 1.5. Acceptance tests
- 1.6. Theming
- 1.7. Acceptance tests
- 1.8. Conversion of www.clarin.eu
-
1.9. Thorough cleanup of
dev-www
, thenwww
- 1.10. Acceptance test
- 1.11. Finishing touch
We use the Drupal Content Management System (CMS) for https://www.clarin.eu. A general, brief overview of Drupal.
1. Important links
https://www.clarin.eu/admin/reports/status
https://www.clarin.eu/admin/reports/dblog
https://www.clarin.eu/admin/config/development/maintenance
2. Development workflow
Development follows a three-stage workflow:
- development: dev-www.clarin.eu?
- acceptance
- production: Archive/www.clarin.eu
Drupal should be managed from the command line with Drush. Commands for drush.
3. Tickets
Results (1 - 10 of 23)
Ticket | Priority | Summary | Owner | Keywords | Created | Modified |
---|---|---|---|---|---|---|
#907 | minor | support multi-file upload again | 8 years ago | 6 years ago | ||
#938 | major | Replace clarin_datatable custom code by standard feeds module | 8 years ago | 6 years ago | ||
#958 | minor | Files missing | 8 years ago | 6 years ago | ||
#965 | minor | Clean up Drupal redirects | 8 years ago | 6 years ago | ||
#967 | major | User involvement group pages on new website | 8 years ago | 6 years ago | ||
#990 | major | Recreate organig group views | 7 years ago | 6 years ago | ||
#1002 | minor | strip typographic quotes from URLs | 7 years ago | 6 years ago | ||
#1003 | minor | Investigate possibilities to add the content of views to search index | 7 years ago | 7 years ago | ||
#1006 | minor | Investigate a web-based alternative to google earth for the VLW | 7 years ago | 7 years ago | ||
#1029 | minor | provide governance view with affiliation field | 7 years ago | 6 years ago |
1. Conversion from legacy state to basic Drupal
This should be organized in the following stages.
1.1. Enable Bootstrap module
## Enable Bootstrap drush.phar pm-enable 'jquery_update' 'bootstrap' ## The frontpage view was disabled in the legacy state, reenable it. drush.phar views-enable 'frontpage'
- ‘Sub Seven’ admin theme -> ‘Default theme’.
- Set Bootstrap theme as default.
- Disable ‘Clarin.eu Theme’.
- ‘Source for the Secondary links’: User menu -> Secondary menu.
- Disable block ‘Main menu’ by setting it to `- None -` in the dropdown in ‘Region settings’.
- -> Set ‘Default front page’ to 'frontpage'.
1.2. Disable legacy/redundant extensions
## Must be updated to dev version first, since otherwise it won't uninstall due to bugs. drush.phar pm-enable 'empty_page-7.x-1.x-dev' ## IMPORTANT: Quit endless loop here! ## Alpha. drush.phar pm-disable 'uuid_features' ## ‘Minimally maintained’. drush.phar pm-disable 'smart_trim' ## 7.x-3.0-rc5. drush.phar pm-disable 'admin_menu' 'admin_menu_toolbar' ## Apparently not in use. drush.phar pm-disable 'entityreference_prepopulate' 'fences' ## Seems unused, only used for twitter_pull_bean? drush.phar pm-disable 'bean_admin_ui' 'bean' 'bean_entitycache' 'bean_uuid' ## Functionality seems unrequired. drush.phar pm-disable 'imagecache_actions' 'imagecache_canvasactions' 'empty_page' 'timeago' ## Superfluous functionality and/or security risk. drush.phar pm-disable 'backup_migrate' 'environment_indicator' 'admin_devel' ## The following modules could be directly traced to Jurriaan. They have cyclic dependencies and define a number of features and views. drush.phar pm-disable 'menu_block' 'bean_twitter_pull' 'twitter_pull' 'openscience_blog' 'openscience_events' 'openscience_groups' \ 'context' 'context_ui' 'context_menu_block' 'context_og' 'clarin_eric_config' 'clarineric' 'clarin_eric_config' \ 'openscience_news' 'openscience_showcases' 'lrt_showcases' 'openscience_ui' 'openscience' 'openscience_governance' \ ## Make sure that the remaining extensions are up-to-date. drush.phar pm-update --no-backup
Remove residual Drupal views by visiting:
- https://dev-www-3.clarin.eu/admin/structure/views/view/openscience_events/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/openscience_group_river/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/openscience_movies/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/openscience_popular_content/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/featured_lrt_showcase/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/featured_showcase/delete
- https://dev-www-3.clarin.eu/admin/structure/views/view/lrtshowcases/delete
1.3. Enhance functionality before testing
Some Website Trac tickets (at the top of this page) are feature requests/enhancements. Ideally these can be added without much risk and then included in the acceptance tests.
https://trac.clarin.eu/ticket/938
drush.phar cache-clear all ## Enable CKEditor for rich text edition (WYSIWYG). drush.phar pm-enable 'ckeditor' ## Enable smtp module so that Centre registration form, which depends on e-mail functionality, works. drush.phar pm-enable 'smtp'
1.4. Content restructuring
The office restructures content so that excess hierarchy is flattened. TODO: ...
1.5. Acceptance tests
- Adding a basic page.
- Uploading multiple files in one go.
- Writing a blog post.
- Filling out the Centre Registry form.
- TODO: ...
1.5.1. Criteria
Does the rich text editing work as expected?
1.6. Theming
We apply a Drupal Bootstrap subtheme to dev-www designed after the new CLARIN house style.
1.7. Acceptance tests
1.8. Conversion of www.clarin.eu
Based on the final, validated steps, we set www.clarin.eu as readonly for a regular maintenance, and apply the steps to the www.clarin.eu instance.
1.9. Thorough cleanup of dev-www
, then www
## Jurriaan's modules all have cyclic dependencies, so cannot be uninstalled. ## IMPORTANT: The following command drush.phar pm-uninstall $(drush.phar pm-list --status='disabled' --format=list --no-core) ## May cause Drush defects reported as: ## Error: require_once(): Failed opening required '/var/www/localhost/htdocs/sites/all/modules/contrib/menu_block/plugins/content_types/menu_tree/menu_tree.inc' ## (include_path='.:/usr/share/pear') in /var/www/localhost/htdocs/sites/all/modules/contrib/ctools/includes/plugins.inc, line 477 ## Uninstalling extensions using Drush does not result in actual removal. ## To forcefully remove ‘disabled, uninstalled’ modules/themes. drush.phar pm-list --status='disabled,not installed' --no-core --pipe | \ xargs -n 1 -I '{}' drush.phar drupal-directory --local-only --component='path' '{}' | \ xargs -n 1 -I '{}' rm -frv -- '{}' ## Clean up informal dependencies, e.g. in 'sites/all/libraries/' # rm -r 'sites/all/libraries/timeago/' drush.phar cache-clear all ## Remove security sensitive and redundant files from Drupal installation. rm 'install.php' 'CHANGELOG.txt' 'INSTALL.txt' 'INSTALL.mysql.txt' \ 'INSTALL.pgsql.txt' 'LICENSE.txt' 'MAINTAINERS.txt' 'UPGRADE.txt' \ 'COPYRIGHT.txt' 'README.txt' 'INSTALL.sqlite.txt' ## TODO: Remove residual Drupal Features. Cannot be done with Drush or the Drupal web interface alone. ...
1.10. Acceptance test
1.11. Finishing touch
1.11.1. Enhancement: do not use CDN.
IMPORTANT: breaks the website without alternative source other than CDN. Make independent from `jsdeliver`: -> Advanced
1.11.2. Clean up content types
Attachments (1)
- clarin website HA setup.png (26.6 KB) - added by 7 years ago.
Download all attachments as: .zip