forked from WhiteHouse/petitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPDATE.txt
635 lines (397 loc) · 16.1 KB
/
UPDATE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
UPDATE
======
Version 7.x-2.0-rc12 -> 7.x-2.0-rc13
----------------------------------------------
Release notes:
- Updated contrib modules.
- Added the url parameter to the API's petitions index method.
Update steps:
1. Deploy code changes.
2. Run update.php.
Version 7.x-2.0-rc11 -> 7.x-2.0-rc12
----------------------------------------------
Release notes:
- Minor refactoring of petitions api workflows for performance.
- Added automated test for api_validations.
Update steps:
1. Deploy code changes.
2. Apply Drupal core patch:
https://drupal.org/files/issues/drupal-insertassert_exception-2155023-3.patch
Version 7.x-2.0-rc10 -> 7.x-2.0-rc11
----------------------------------------------
Release notes:
- Massively refactored petitions data layer.
- Added signatures queue diagrams.
Update steps:
1. Deploy code changes.
2. Rebuild registry:
`drush registry-rebuild`
Version 7.x-2.0-rc9 -> 7.x-2.0-rc10
----------------------------------------------
Release notes:
- Updated Drupal core version for security updates.
Update steps:
1. Deploy code changes.
2. Perform the manual steps for the security update at
https://drupal.org/SA-CORE-2013-003.
Version 7.x-2.0-rc8 -> 7.x-2.0-rc9
----------------------------------------------
Release notes:
- Fixed a bug producing inaccurate counts for Petitions by Issue.
- Updated the API Key content type to use the Features module for management.
- Updated available tokens.
- Removed obsolete functions.
- Updated API responses for consistency.
Update steps:
1. Deploy code changes.
2. Run update.php.
Version 7.x-2.0-rc7 -> 7.x-2.0-rc8
----------------------------------------------
Release notes:
- Updated contrib modules.
- Added offset and limit parameters to the validations resource.
- Fixed issues with the API Key Manager module.
- Fixed tokens provided by the Signatures Queue module.
- Updated API responses for consistency.
Update steps:
1. Deploy code changes.
2. Run update.php.
3. Clear caches.
Version 7.x-2.0-rc6 -> 7.x-2.0-rc7
----------------------------------------------
Release notes:
- Updated the Shunt module.
- Fixed several issues with the API Key Manager module.
- Fixed various bugs in the signatures_queue module.
- Fixed response formatting in the signatures resource.
Update steps:
1. Deploy code changes.
2. Run update.php.
3. Clear caches.
4. Update permissions related to the API Key Manager module.
Version 7.x-2.0-rc4 -> 7.x-2.0-rc6
----------------------------------------------
Release notes:
- Fixed numerous bugs.
- Added API functionality.
- Updated services_documentation module.
Update steps:
1. Clear caches
Version 7.x-2.0-rc1 -> 7.x-2.0-rc4
----------------------------------------------
Release notes:
- Updated various contrib modules.
Update steps:
1. Deploy code changes.
2. Run update.php.
Version 7.x-2.0-beta24 -> 7.x-2.0-rc1
----------------------------------------------
*** Please see notes in INSTALL.md about new signatures_processing database. ***
Release notes:
- Install new modules:
- Signatures Queue
- API Signatures
- API Validations
- API Key Manager
Update steps:
1. Create a new signatures_processing database as per instructions in INSTALL.md.
2. Run update.php.
Version 7.x-2.0-beta23 -> 7.x-2.0-beta24
-----------------------------------------------
Release notes:
- Added a function to make strings XML-safe by removing unacceptable Unicode characters
Update steps:
Update steps:
1. Deploy new code
Version 7.x-2.0-beta22 -> 7.x-2.0-beta23
-----------------------------------------------
Release notes:
- Removed the Users resource from the petitions_api Features module
Update steps:
Update steps:
1. Deploy new code
2. Run update.php
3. Clear caches
Version 7.x-2.0-beta21 -> 7.x-2.0-beta22
-----------------------------------------------
Release notes:
- Added elements and styles to pages generated by Services Documentation
- Added configurable method verbs to Services Documentation
- Fixed a bug causing inaccurate execution time in API responses
Update steps:
Update steps:
1. Deploy new code
2. Run update.php
3. Clear caches
4. Grant 'view services documentation' to all roles.
Version 7.x-2.0-beta20 -> 7.x-2.0-beta21
-----------------------------------------------
Release notes:
- Several changes to the textCAPTCHA module:
- Make it more accessible
- Store and manage challenge questions locally in textcaptcha tables (rather than cache table)
- Give site admin option to disable fetching/processing questions on cron
- Add Drush command for requesting and storing questions/answers
Update steps:
Update steps:
1. Deploy new code
2. Run update.php
3. Clear caches
4. Set up Text CAPTCHA by geting an API key at http://textcaptcha.com/.
Then go to the admin configuration page (admin/config/people/captcha/textcaptcha)
to save your key and retrieve some challenge questions.
Version 7.x-2.0-beta19 -> 7.x-2.0-beta20
-----------------------------------------------
Release notes:
- Install patched version of textcaptcha module for improved accessibility
- Replace all instances of reCaptcha challenge with Text Captcha
- Fixed the createdAt, createdBefore, and createdAfter parameters for the Signatures resource
- Removed case sensitivity from title and body parameters
- Added city, state, zip, and country parameters to the Signatures resource
Update steps:
Update steps:
1. Deploy new code
2. Run update.php
3. Clear caches
Version 7.x-2.0-beta18 -> 7.x-2.0-beta19
-----------------------------------------------
Release notes:
- Updated api_users resource to display the total users count returned from a
set variable instead of querying the database for each API call.
Update steps:
Update steps:
1. Deploy new code
2. Run the update script.
drush updb -y
Version 7.x-2.0-beta17 -> 7.x-2.0-beta18
-----------------------------------------------
Release notes:
- Updated petitions_data to implement petitions_signatures_display settings and formatting
Update steps:
Update steps:
1. Deploy new code
2. Run the update script.
drush updb -y
Version 7.x-2.0-beta16 -> 7.x-2.0-beta17
-----------------------------------------------
Release notes:
- Updated petitions_data to filter flagged petitions
Update steps:
Deploy new code
Version 7.x-2.0-beta11 -> 7.x-2.0-beta16
-----------------------------------------------
Release notes:
- Move shunt module into contrib
- Updated petitions.info to include newer dependencies on install
- Added api_errors module for API error responses
- Added new parameters to make data API more flexible
- Convert API properties and params to camelCase
- Make API obey site administrator defined public petition thresholds
- Includes new Services Documentation config settings form
Update steps:
Uninstall shunt:
drush dis shunt
drush pm-uninstall shunt
Deploy new code
Re-install shunt:
drush en shunt
Version 7.x-2.0-beta9 -> 7.x-2.0-beta11
-----------------------------------------------
Release notes:
- Bug fix: Filter unsupported non-latin characters out from API results
- Minor CSS change: Added styles for the new API Gallery Page (White House
pecific,
this will be moved somewhere else in the future)
- Bug fix: Filter for 'zip' field, limit to 31 characters
- Moved services_documentation module into contrib
Update steps:
Uninstall services_documentation:
drush dis services_documentation
drush pm-uninstall services_documentation
Deploy new code. Clear cache. Re-install services_documentation module.
drush en services_documentation
Version 7.x-2.0-beta8 -> 7.x-2.0-beta9
-----------------------------------------------
Release notes:
- Added count, offset, and limit to the metadata for the petitions index method
Update steps:
1. Deploy new code. There are no additional update steps.
Version 7.x-2.0-beta7 -> 7.x-2.0-beta8
-----------------------------------------------
Release notes:
- Updated Drupal core to 7.21
- Removed clean_mongo, clean_mongo() calls, and added requirement for Mongo 2.2.4
- Fixed a bug that caused the API to produce links with the wrong $base_url
when the API is exposed on a different domain by adding a settings field
- Updated shunt module to implement shunt_enable() and shunt_disable() as
described in README roadmap, enable a drush interface, and update the
configuration path.
- Updated shunt_api module to prevent memcache problems when shunt is tripped.
Update steps:
1. Prior to deployment, disable and uninstall clean_mongo:
drush dis clean_mongo -y
drush pm-uninstall clean_mongo
2. Run the update script.
drush updb -y
drush cc all
Version 7.x-2.0-beta6 -> 7.x-2.0-beta7
-----------------------------------------------
Release notes:
- Updated the path to the Petitions API endpoint
- Added the Shunt module
Update steps:
1. Clear caches.
drush cc all
Version 7.x-2.0-beta5 -> 7.x-2.0-beta6
-----------------------------------------------
The only change in beta6 is UPDATE.txt instructions. 2.0-beta5, will break your site if
you don't manually enable the new Clean Mongo module. To update safely, enable
the Clean Mongo module.
Do this via the GUI here:
Administer -> Modules -> Clean Mongo
Or via Drush like this:
drush en clean_mongo -y
Version 7.x-2.0-beta4 -> 7.x-2.0-beta5
-----------------------------------------------
Release notes:
- Fixed a bug producing links to non-existent URLs via Short URLs for Responses
- Updated services_documentation to support example implementations of API resources
- Added framework for a Response resource to the Petitions API
- Added a comment to the Services module patch included with drupal-org.make
- Patched a security vulnerability in MongoDB (equivalent of a SQL injection)
Update steps:
1. Run the update script to enable new modules.
drush updb -y
Version 7.x-2.0-beta1 -> 7.x-2.0-beta4 (skipping beta2 and beta3)
-----------------------------------------------
Release notes:
- Update Petitions Data and Petitions Resource modules to return signature data and minor fixes
Update steps:
1. Deploy the latest code. No other steps are necessary.
Version 7.x-1.0 -> 7.x-2.0-beta1
-----------------------------------------------
Release notes:
- Add custom Petitions Data, Petitions Resource, and Petitions API Authentication modules
- Rename custom Users Resource module
- Update custom Services Documentation and Petitions Statistics - Users modules and Petitions API feature
Update steps:
0. Prior to deploying the updated profile, disable and uninstall api_resource_users (optional but suggested)
drush dis -y api_resource_users
1. Run the update script to enable new modules.
drush updb -y
2. Flush caches.
drush cc all
Version 7.x-1.0-alpha31 -> 7.x-1.0-alpha32
-----------------------------------------------
Release notes:
- Add custom Petitions Profanity and Is Profane modules
- Update user registration form to disable user input for city/state
- Update user registration and user profile forms to disable user input for city/state/country
- Add options to define the display of fields on the user registration and user profile forms
- Add options to define the display of fields on the user profile page
- Update Colorbox contrib module
- Important: When updating to this version of the Colorbox module you need to
update the Colorbox plugin to v1.3.21.1 or later as well.
- Replaced hardcoded references to wethepeople@whitehouse.gov with site_mail.
Update steps:
1. Run the update script.
drush updb -y
2. Enable new modules.
drush en petitions_profanity is_profane -y
3. Flush caches.
drush cc all
Version 7.x-1.0-alpha30 -> 7.x-1.0-alpha31
-----------------------------------------------
Release notes:
- Add custom Petitions Signatures Display module
- Updated signatures location display to use stored values associated with zip code
Update steps:
1. Enable new modules.
drush en petitions_signatures_display -y
Version 7.x-1.0-alpha29 -> 7.x-1.0-alpha30
-----------------------------------------------
Release notes:
- Add Services module
- Add custom Services Documentation, Users Resource, and Petitions
Statistics - Users modules
- Add Petitions API feature
Update steps:
1. Enable new modules.
drush en services rest_server services_documentation api_resource_users petitions_stats_users petitions_api -y
2. Configure the Request URL to use the site's URL and define the Starting Year at /admin/config/services/stats/users
Version 7.x-1.0-alpha28 -> 7.x-1.0-alpha29
-----------------------------------------------
Release notes:
- Update petitions signature reports
Update steps:
1. Clear Drupal Caches
drush cc all
Version 7.x-1.0-alpha25 -> 7.x-1.0-alpha28
-----------------------------------------------
Release notes:
- Add Colorbox and Libraries modules
- Add Colobox plugin
- Add a custom module to alert users upon exiting the domain
- Update various theme elements
Update steps:
1. Enable new contrib modules.
drush en colorbox libraries gatekeeper -y
2. Clear Drupal Caches
drush cc all
3. Update Databases
drush updb
Version 7.x-1.0-alpha24 -> 7.x-1.0-alpha25
-----------------------------------------------
Release notes:
- Add the Global Redirect module
- Update the shortenurl service consumption method
Update steps:
1. Enable new contrib modules.
drush en globalredirect -y
Version 7.x-1.0-alpha22 -> 7.x-1.0-alpha23
-----------------------------------------------
Release notes:
- Rename petition install profile to petitions
- Remove legacy petitions theme
- Remove duplicate buttom from deleted petitions
- Remove MongoDB patch that no longer needs to be maintained
Update steps:
Before you update your code base:
1. Log in and put your site into maintenace mode
2. In a few minutes, the legacy "petitions" theme will be removed from the
code base. Disable it before running the update (we assume you are using
petitions44 or something other then petitions as your default theme. If
that is not true, you will need to enable another theme):
drush dis petitions
3. Disable contrib modules that may cause issues when the directory is
reorganized.
drush dis entity -y
drush dis entitycache -y
drush dis context -y
drush dis feeds -y
4. Clear ALL caches.
drush eval "cache_clear_all('*', NULL, TRUE)"
5. Change file paths in the database. Update.php and registry rebuild normally
do this, but sometimes they need a little help.
drush sqlq 'UPDATE system SET filename = replace (filename, "profiles/petition", "profiles/petitions");'
drush sqlq 'UPDATE registry SET filename = replace (filename, "profiles/petition", "profiles/petitions");'
drush sqlq 'UPDATE registry_file SET filename = replace (filename, "profiles/petition", "profiles/petitions");'
6. Add this line to your settings.php
$conf['install_profile'] = 'petitions';
NOTE: If you have anything in your settings.php or anywhere else in you Petitions installation hardcoded to
profiles/petition (for example the path to a memcache module include file), replace that with 'profile/petitions'
too.
Now you are ready to update:
7. Deploy 7.x-1.0-alpha23 in your environment.
8. Clear your cache, run update.php, and then run registry rebuild.
drush cc all
drush updb
drush rr
9. Re-enable modules previously disabled (and the dependencies disabled with them).
drush en entity entity_token rules logintoboggan_rules profile2 petitions_user_registration rules_admin wh_user_profile wh_petitions wh_contexts wh_zipcodelookup wh_core wh_misc wh_petition_reporting wh_petition_tool wh_profile_migrate wh_response -y
drush en entitycache context feeds feeds_ui taxonomy_sync -y
10. Clear your cache, run update.php, and then run registry rebuild.
drush cc all
drush updb
drush rr
11. Put your site back online.