]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0754.data.url_verify.sql
LP#1842940: Improve Alert
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0754.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 SELECT evergreen.upgrade_deps_block_check('0754', :eg_version);
8
9 INSERT INTO permission.perm_list (id, code, description) 
10     VALUES ( 
11         543, 
12         'URL_VERIFY',
13         oils_i18n_gettext(
14             543, 
15             'Allows a user to process and verify ULSs', 
16             'ppl', 
17             'description'
18         )
19     );
20
21
22 INSERT INTO permission.perm_list (id, code, description) 
23     VALUES ( 
24         544, 
25         'URL_VERIFY_UPDATE_SETTINGS',
26         oils_i18n_gettext(
27             544, 
28             'Allows a user to configure URL verification org unit settings',
29             'ppl', 
30             'description'
31         )
32     );
33
34
35 INSERT INTO permission.perm_list (id, code, description) 
36     VALUES ( 
37         545, 
38         'SAVED_FILTER_DIALOG_FILTERS',
39         oils_i18n_gettext(
40             545, 
41             'Allows users to save and load sets of filters for filter dialogs, available in certain staff interfaces',
42             'ppl', 
43             'description'
44         )
45     );
46
47
48 INSERT INTO config.settings_group (name, label)
49     VALUES (
50         'url_verify',
51         oils_i18n_gettext(
52             'url_verify',
53             'URL Verify',
54             'csg',
55             'label'
56         )
57     );
58
59 INSERT INTO config.org_unit_setting_type
60     (name, grp, label, description, datatype, update_perm)
61     VALUES (
62         'url_verify.url_verification_delay',
63         'url_verify',
64         oils_i18n_gettext(
65             'url_verify.url_verification_delay',
66             'Number of seconds to wait between URL test attempts.',
67             'coust',
68             'label'
69         ),
70         oils_i18n_gettext(
71             'url_verify.url_verification_delay',
72             'Throttling mechanism for batch URL verification runs.  Each running process will wait this number of seconds after a URL test before performing the next.',
73             'coust',
74             'description'
75         ),
76         'integer',
77         544
78     );
79
80 INSERT INTO config.org_unit_setting_type
81     (name, grp, label, description, datatype, update_perm)
82     VALUES (
83         'url_verify.url_verification_max_redirects',
84         'url_verify',
85         oils_i18n_gettext(
86             'url_verify.url_verification_max_redirects',
87             'Maximum redirect lookups',
88             'coust',
89             'label'
90         ),
91         oils_i18n_gettext(
92             'url_verify.url_verification_max_redirects',
93             'For URLs returning 3XX redirects, this is the maximum number of redirects we will follow before giving up.',
94             'coust',
95             'description'
96         ),
97         'integer',
98         544
99     );
100
101 INSERT INTO config.org_unit_setting_type
102     (name, grp, label, description, datatype, update_perm)
103     VALUES (
104         'url_verify.url_verification_max_wait',
105         'url_verify',
106         oils_i18n_gettext(
107             'url_verify.url_verification_max_wait',
108             'Maximum wait time (in seconds) for a URL to lookup',
109             'coust',
110             'label'
111         ),
112         oils_i18n_gettext(
113             'url_verify.url_verification_max_wait',
114             'If we exceed the wait time, the URL is marked as a "timeout" and the system moves on to the next URL',
115             'coust',
116             'description'
117         ),
118         'integer',
119         544
120     );
121
122
123 INSERT INTO config.org_unit_setting_type
124     (name, grp, label, description, datatype, update_perm)
125     VALUES (
126         'url_verify.verification_batch_size',
127         'url_verify',
128         oils_i18n_gettext(
129             'url_verify.verification_batch_size',
130             'Number of URLs to test in parallel',
131             'coust',
132             'label'
133         ),
134         oils_i18n_gettext(
135             'url_verify.verification_batch_size',
136             '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.',
137             'coust',
138             'description'
139         ),
140         'integer',
141         544
142     );
143
144
145 INSERT INTO config.filter_dialog_interface (key, description) VALUES (
146     'url_verify',
147     oils_i18n_gettext(
148         'url_verify',
149         'All Link Checker filter dialogs',
150         'cfdi',
151         'description'
152     )
153 );
154
155
156 INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
157     'ui.grid_columns.url_verify.select_urls',
158     'gui',
159     FALSE,
160     oils_i18n_gettext(
161         'ui.grid_columns.url_verify.select_urls',
162         'Link Checker''s URL Selection interface''s saved columns',
163         'cust',
164         'label'
165     ),
166     oils_i18n_gettext(
167         'ui.grid_columns.url_verify.select_urls',
168         'Link Checker''s URL Selection interface''s saved columns',
169         'cust',
170         'description'
171     ),
172     'string'
173 );
174
175 INSERT INTO config.usr_setting_type (name,grp,opac_visible,label,description,datatype) VALUES (
176     'ui.grid_columns.url_verify.review_attempt',
177     'gui',
178     FALSE,
179     oils_i18n_gettext(
180         'ui.grid_columns.url_verify.review_attempt',
181         'Link Checker''s Review Attempt interface''s saved columns',
182         'cust',
183         'label'
184     ),
185     oils_i18n_gettext(
186         'ui.grid_columns.url_verify.review_attempt',
187         'Link Checker''s Review Attempt interface''s saved columns',
188         'cust',
189         'description'
190     ),
191     'string'
192 );
193
194 COMMIT;
195