Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
4 Aug 2016 at 15:03 UTC
Updated:
21 Mar 2018 at 16:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cgmonroe commentedHere's the patch file based on Dev branch. Will apply to Beta6.
Comment #4
naveenvalechaThanks for the patch that would be great addition.
Also define the schema of cookie in eu_cookie_compliance.schema.yml
we need hook_post_update_NAME
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...
use single quotes instead of double quotes.
Comment #5
naveenvalechaNeeds tests for hook_post_update_NAME path
Comment #6
cgmonroe commentedHere's a modified version with missing schema changes, update_n moved to post_update, and a quick and dirty test to check the schema was created and the default value updated.
Comment #8
naveenvalechaThis should be in another Test class and fixtures should be updated.
Comment #9
naveenvalechaHere are the steps that needs to follow to write the update path test:
php ./core/scripts/dump-database-d8-mysql.php --no-ansi|gzip > modules/contrib/eu-cookie-compliance/tests/fixtures/update/drupal-8.eu-cookie-compliance-beta6.standard.php.gzEuCookieComplianceUpdateCookieTestextendingUpdatePathTestBase.Comment #10
naveenvalechaThe patch also needs a reroll
Comment #11
svenryen commentedBeta10 brings this feature to 8.x. This was committed in #2900092: Port 7.x javascript code and bug fixes
Comment #12
svenryen commented