forked from alxp/islandora
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using Context instead of Rules (#68)
* Committing to test on new environment * Can execute pre-configured reactions through Context UI * Exporting actions * Adding contexts * Renaming * Using switch in hook implementations * Ready to test without rules and just context * Trimming down hooks and removing dsm() calls * Fixes after testing large batch operations * Functional tests and more testing * Coding standards * Removing duplicate * Config export * Removing media bundle condition for now. * Tightened conditions. Fixed context caching bug. * Ignoring schema exceptions and disabling module provided contexts in functional tests * Oh that's hilarious * Responding to @whikoj's feedback * s/deindex/delete * Coding standards
- Loading branch information
Showing
67 changed files
with
2,229 additions
and
1,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
uuid: 6804c3b4-a33e-448c-97cc-cfcab3afe7c6 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
enforced: | ||
module: | ||
- islandora | ||
module: | ||
- islandora | ||
name: file | ||
label: File | ||
group: Islandora | ||
description: 'Reactions for all Files' | ||
requireAllConditions: false | ||
disabled: false | ||
conditions: | ||
is_file: | ||
id: is_file | ||
negate: 0 | ||
uuid: a98d439f-5512-4e60-965c-b215b8f78438 | ||
context_mapping: | ||
file: '@islandora.file_route_context_provider:file' | ||
reactions: | ||
index: | ||
id: index | ||
actions: | ||
index_file_in_fedora: index_file_in_fedora | ||
saved: false | ||
delete: | ||
id: delete | ||
actions: | ||
delete_file_from_fedora: delete_file_from_fedora | ||
saved: false | ||
weight: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
d: c14bfcb1-7e62-4a3c-98e9-0cdbadbe5c45 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
enforced: | ||
module: | ||
- islandora | ||
module: | ||
- islandora | ||
name: media | ||
label: Media | ||
group: Islandora | ||
description: 'Reactions for all Media' | ||
requireAllConditions: false | ||
disabled: false | ||
conditions: | ||
is_media: | ||
id: is_media | ||
negate: 0 | ||
uuid: 2e291ec1-11ee-4c36-ba7e-cb05128bf27d | ||
context_mapping: | ||
media: '@islandora.media_route_context_provider:media' | ||
reactions: | ||
index: | ||
id: index | ||
actions: | ||
index_media_in_fedora: index_media_in_fedora | ||
index_media_in_triplestore: index_media_in_triplestore | ||
saved: false | ||
delete: | ||
id: delete | ||
actions: | ||
delete_media_from_triplestore: delete_media_from_triplestore | ||
saved: false | ||
weight: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
d: 48525bb3-36a2-449a-92ed-1ab3e94b3da0 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
enforced: | ||
module: | ||
- islandora | ||
module: | ||
- islandora | ||
name: node | ||
label: Node | ||
group: Islandora | ||
description: 'Reactions for all Nodes' | ||
requireAllConditions: false | ||
disabled: false | ||
conditions: | ||
is_node: | ||
id: is_node | ||
negate: 0 | ||
uuid: f25d55aa-1664-4202-b846-afd20b527da2 | ||
context_mapping: | ||
node: '@node.node_route_context:node' | ||
reactions: | ||
index: | ||
id: index | ||
actions: | ||
index_node_in_fedora: index_node_in_fedora | ||
index_node_in_triplestore: index_node_in_triplestore | ||
saved: false | ||
delete: | ||
id: delete | ||
actions: | ||
delete_node_from_fedora: delete_node_from_fedora | ||
delete_node_from_triplestore: delete_node_from_triplestore | ||
saved: false | ||
weight: 0 |
51 changes: 0 additions & 51 deletions
51
config/install/rules.reaction.broadcast_content_create_event.yml
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
config/install/rules.reaction.broadcast_content_delete_event.yml
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
config/install/rules.reaction.broadcast_content_update_event.yml
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
config/install/rules.reaction.broadcast_file_create_event.yml
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
config/install/rules.reaction.broadcast_file_delete_event.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.