docbrown/lib/tasks
Alex cc6249beff
[deploy] Update whitelisted params on Fastly on deployments (#7279)
* Add Fastly whitelisted params

* Create FastlyVCL::WhitelistedParams.update service

* Add specs

* Create rake task to call new service

* Add rake task to setup script

* Add documentatoin

* Move sort inside params_to_array method

* Rename VCL_REGEX to VCL_DELIMITER

* Add PR URL to docs

* Move snippet name to SNIPPET_NAME constant

* Refactor setting content

* Rename params_to_array to params_to_sorted_array

* Change guard and log success on update

- Return early if params are equal
- Log success message to Rails.logger on update
- Log params diff to Datadog

* Return true explicitly

* Move rake task execution from to release-tasks

* Remove unnecessary environment guard in task

* Remove duplicate code param

* Refactor string from build_content

* Remove reliance on sort

* Reorder logging to implicitly return true

* Update docs to reference release-script.sh

* Update docs

* Update whitelisted params

* Fix params_updated? bug and add more specs

* Remove duplicate param...oopsie!
2020-04-16 15:11:57 -04:00
..
temporary [deploy] Introduce ClassifiedListingCategory model (#7172) 2020-04-13 09:01:58 -04:00
badges.rake Organize rake tasks (#7005) 2020-04-01 12:39:40 -04:00
broadcasts.rake Create Broadcasts.rake (#7010) 2020-04-02 17:24:39 -04:00
cache.rake Organize rake tasks (#7005) 2020-04-01 12:39:40 -04:00
counters.rake Have counters:update_users use a transaction per user and customizable batch size (#5912) [deploy] 2020-02-05 12:26:03 -05:00
data_updates.rake Set Up Framework For Running Data Update Scripts (#6025) [deploy] 2020-02-13 10:48:23 -05:00
fastly.rake [deploy] Update whitelisted params on Fastly on deployments (#7279) 2020-04-16 15:11:57 -04:00
fetch.rake Organize rake tasks (#7005) 2020-04-01 12:39:40 -04:00
metrics.rake Organize rake tasks (#7005) 2020-04-01 12:39:40 -04:00
notifications.rake Organize rake tasks (#7005) 2020-04-01 12:39:40 -04:00
pro_memberships.rake Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
search.rake Refactor Elasticsearch client access (#6307) [deploy] 2020-02-28 11:38:37 -05:00
twitch.rake Move Twitch webhook registration from ActiveJob to Sidekiq (#5414) 2020-01-14 11:55:35 -05:00