LP#1392396 - Renamed hook from "create" to "au.created" to make it
authorJosh Stompro <stomproj@larl.org>
Mon, 17 Aug 2015 18:15:32 +0000 (13:15 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 3 Mar 2016 01:25:46 +0000 (20:25 -0500)
  easier to tell that we are talking about "actor.user created date"

Signed-off-by: Josh Stompro <stomproj@larl.org>

Conflicts:
Open-ILS/src/sql/Pg/950.data.seed-values.sql

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Open-ILS/examples/action_trigger_filters.json.example
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.new_user_created_notice.sql

index 380df1b..01f913d 100644 (file)
@@ -34,7 +34,7 @@
             "capture_time": null
         }
     },
-    "create" : {
+    "au.created" : {
         "context_org":"home_ou",
         "filter": {
             "active":"t",
index f72c080..1e214d8 100644 (file)
@@ -15817,8 +15817,8 @@ INSERT INTO action_trigger.environment (event_def, path) VALUES
 --Start new patron welcome email notice/action -----------
 --create hook for actor.usr.create_date
 INSERT INTO action_trigger.hook (key, core_type, description, passive)
-    VALUES ('create', 'au', 'Account is created', 't');
-       
+    VALUES ('au.created', 'au', 'Account is created', 't');
+       
 --SQL to create event definition for new account creation notice
 --Inactive, owned by top of org tree by default.  Modify to suit needs.
 
@@ -15827,7 +15827,7 @@ INSERT INTO action_trigger.event_definition (
     validator, reactor, delay, delay_field,
     max_delay, template
 )  VALUES (
-    'f', '1', 'New User Created Welcome Notice', 'create',
+    'f', '1', 'New User Created Welcome Notice', 'au.created',
     'NOOP_True', 'SendEmail', '10 seconds', 'create_date',
     '1 day',
 $$
index 373aa5c..e241884 100644 (file)
@@ -2,7 +2,7 @@ BEGIN;
 
 --create hook for actor.usr.create_date
 INSERT INTO action_trigger.hook (key, core_type, description, passive)
-    VALUES ('create', 'au', 'Account is created', 't');
+    VALUES ('au.created', 'au', 'Account is created', 't');
        
 --SQL to create event definition for new account creation notice
 --Inactive, owned by top of org tree by default.  Modify to suit needs.
@@ -12,7 +12,7 @@ INSERT INTO action_trigger.event_definition (
     validator, reactor, delay, delay_field,
     max_delay, template
 )  VALUES (
-    'f', '1', 'New User Created Welcome Notice', 'create',
+    'f', '1', 'New User Created Welcome Notice', 'au.created',
     'NOOP_True', 'SendEmail', '10 seconds', 'create_date',
     '1 day',
 $$