Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- [PR-380](https://github.com/itk-dev/os2loop/pull/380)
Added search and replace in content
- [PR-377](https://github.com/itk-dev/os2loop/pull/377)
- Security update
- Code cleanup
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"drupal/pathauto": "^1.12",
"drupal/rdf": "^2.1",
"drupal/redirect": "^1.9",
"drupal/scanner": "^1.0",
"drupal/search_api": "^1.29",
"drupal/search_api_autocomplete": "^1.7",
"drupal/simple_menu_permissions": "^2.0",
Expand Down
87 changes: 85 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ module:
path_alias: 0
redirect: 0
rest: 0
scanner: 0
search_api: 0
search_api_autocomplete: 0
search_api_db: 0
Expand Down
25 changes: 25 additions & 0 deletions config/sync/scanner.admin_settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
_core:
default_config_hash: tZBqRctRg3fdrKB6LcLAmuNHmveOvaLmbIqRhaKTrBE
word_boundaries: auto
scanner_mode: true
scanner_wholeword: true
scanner_regex: false
scanner_published: false
scanner_pathauto: false
scanner_language: all
enabled_content_types:
'node:os2loop_documents_collection': 'node:os2loop_documents_collection'
'node:os2loop_documents_document': 'node:os2loop_documents_document'
'node:os2loop_external': 'node:os2loop_external'
'node:os2loop_page': 'node:os2loop_page'
'node:os2loop_post': 'node:os2loop_post'
'node:os2loop_question': 'node:os2loop_question'
'node:os2loop_section_page': 'node:os2loop_section_page'
fields_of_selected_content_type:
'node:os2loop_documents_collection:title': 'node:os2loop_documents_collection:title'
'node:os2loop_documents_document:title': 'node:os2loop_documents_document:title'
'node:os2loop_external:title': 'node:os2loop_external:title'
'node:os2loop_page:title': 'node:os2loop_page:title'
'node:os2loop_post:title': 'node:os2loop_post:title'
'node:os2loop_question:title': 'node:os2loop_question:title'
'node:os2loop_section_page:title': 'node:os2loop_section_page:title'
2 changes: 2 additions & 0 deletions config/sync/user.role.os2loop_user_administrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dependencies:
- path
- pathauto
- redirect
- scanner
- simple_menu_permissions
- system
- taxonomy
Expand Down Expand Up @@ -166,6 +167,7 @@ permissions:
- 'notify of path changes'
- 'os2loop see notify users option'
- 'os2loop send alert'
- 'perform search and replace'
- 'revert all revisions'
- 'revert os2loop_documents_collection revisions'
- 'revert os2loop_documents_document revisions'
Expand Down
2 changes: 2 additions & 0 deletions config/sync/user.role.os2loop_user_document_author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- node
- os2loop_alert
- paragraphs
- scanner
- system
- toolbar
- view_unpublished
Expand All @@ -41,6 +42,7 @@ permissions:
- 'edit own os2loop_documents_document content'
- 'flag os2loop_upvote_correct_answer'
- 'os2loop send alert'
- 'perform search only'
- 'unflag os2loop_upvote_correct_answer'
- 'update any media'
- 'use text format os2loop_documents_body'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- os2loop_alert
- os2loop_messages
- paragraphs
- scanner
- system
- toolbar
- view_unpublished
Expand All @@ -44,6 +45,7 @@ permissions:
- 'flag os2loop_upvote_correct_answer'
- 'os2loop see notify users option'
- 'os2loop send alert'
- 'perform search only'
- 'unflag os2loop_upvote_correct_answer'
- 'update any media'
- 'use text format os2loop_documents_body'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies:
- node
- os2loop_alert
- paragraphs
- scanner
- system
- taxonomy
- toolbar
Expand Down Expand Up @@ -48,6 +49,7 @@ permissions:
- 'edit terms in os2loop_tag'
- 'flag os2loop_upvote_correct_answer'
- 'os2loop send alert'
- 'perform search and replace'
- 'unflag os2loop_upvote_correct_answer'
- 'update any media'
- 'use text format os2loop_documents_body'
Expand Down
2 changes: 2 additions & 0 deletions config/sync/user.role.os2loop_user_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:
- os2loop_messages
- paragraphs
- path
- scanner
- simple_menu_permissions
- system
- taxonomy
Expand Down Expand Up @@ -104,6 +105,7 @@ permissions:
- 'flag os2loop_upvote_correct_answer'
- 'os2loop see notify users option'
- 'os2loop send alert'
- 'perform search and replace'
- 'revert os2loop_post revisions'
- 'translate interface'
- 'unflag os2loop_upvote_correct_answer'
Expand Down
2 changes: 2 additions & 0 deletions config/sync/user.role.os2loop_user_post_author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- media
- node
- os2loop_alert
- scanner
- system
- toolbar
id: os2loop_user_post_author
Expand All @@ -37,6 +38,7 @@ permissions:
- 'edit own os2loop_post content'
- 'flag os2loop_upvote_correct_answer'
- 'os2loop send alert'
- 'perform search only'
- 'revert os2loop_post revisions'
- 'unflag os2loop_upvote_correct_answer'
- 'update any media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function createMessage(EntityInterface $entity, string $operation, bool
return;
}
$message->set('os2loop_message_node_refer', $entity);
if (isset($entity->revision_log->value)) {
if ($message->hasField('os2loop_revision_message') && isset($entity->revision_log->value)) {
$message->set('os2loop_revision_message', $entity->revision_log->value);
}
}
Expand Down
Loading