]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.url_verify.sql
f0f98469ebadf565502b6374dd21be451bd7df4a
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / ZZZZ.data.url_verify.sql
1
2 -- NOTE: beware the use of bare perm IDs in the update_perm's below and in 
3 -- the 950 seed data file.  Update before merge to match current perm IDs! XXX
4
5 BEGIN;
6
7 INSERT INTO permission.perm_list (id, code, description) 
8     VALUES ( 
9         543, 
10         'URL_VERIFY',
11         oils_i18n_gettext(
12             543, 
13             'Allows a user to process and verify ULSs', 
14             'ppl', 
15             'description'
16         )
17     );
18
19
20 INSERT INTO permission.perm_list (id, code, description) 
21     VALUES ( 
22         544, 
23         544,
24         oils_i18n_gettext(
25             544, 
26             'Allows a user to configure URL verification org unit settings',
27             'ppl', 
28             'description'
29         )
30     );
31
32
33 INSERT INTO config.settings_group (name, label)
34     VALUES (
35         'url_verify',
36         oils_i18n_gettext(
37             'url_verify',
38             'URL Verify',
39             'csg',
40             'label'
41         )
42     );
43
44 INSERT INTO config.org_unit_setting_type
45     (name, grp, label, description, datatype, update_perm)
46     VALUES (
47         'url_verify.url_verification_delay',
48         'url_verify',
49         oils_i18n_gettext(
50             'url_verify.url_verification_delay',
51             'Number of seconds to wait between URL test attempts.',
52             'coust',
53             'label'
54         ),
55         oils_i18n_gettext(
56             'url_verify.url_verification_delay',
57             'Throttling mechanism for batch URL verification runs.  Each running process will wait this number of seconds after a URL test before performing the next.',
58             'coust',
59             'description'
60         ),
61         'integer',
62         544
63     );
64
65 INSERT INTO config.org_unit_setting_type
66     (name, grp, label, description, datatype, update_perm)
67     VALUES (
68         'url_verify.url_verification_max_redirects',
69         'url_verify',
70         oils_i18n_gettext(
71             'url_verify.url_verification_max_redirects',
72             'Maximum redirect lookups',
73             'coust',
74             'label'
75         ),
76         oils_i18n_gettext(
77             'url_verify.url_verification_max_redirects',
78             'For URLs returning 3XX redirects, this is the maximum number of redirects we will follow before giving up.',
79             'coust',
80             'description'
81         ),
82         'integer',
83         544
84     );
85
86 INSERT INTO config.org_unit_setting_type
87     (name, grp, label, description, datatype, update_perm)
88     VALUES (
89         'url_verify.url_verification_max_wait',
90         'url_verify',
91         oils_i18n_gettext(
92             'url_verify.url_verification_max_wait',
93             'Maximum wait time (in seconds) for a URL to lookup',
94             'coust',
95             'label'
96         ),
97         oils_i18n_gettext(
98             'url_verify.url_verification_max_wait',
99             'If we exceed the wait time, the URL is marked as a "timeout" and the system moves on to the next URL',
100             'coust',
101             'description'
102         ),
103         'integer',
104         544
105     );
106
107
108 INSERT INTO config.org_unit_setting_type
109     (name, grp, label, description, datatype, update_perm)
110     VALUES (
111         'url_verify.verification_batch_size',
112         'url_verify',
113         oils_i18n_gettext(
114             'url_verify.verification_batch_size',
115             'Number of URLs to test in parallel',
116             'coust',
117             'label'
118         ),
119         oils_i18n_gettext(
120             'url_verify.verification_batch_size',
121             'URLs are tested in batches.  This number defines the size of each batch and it directly relates to the number of back-end processes performing URL verification.',
122             'coust',
123             'description'
124         ),
125         'integer',
126         544
127     );
128
129
130 COMMIT;
131