Problem/Motivation
Migrate EU cookie compliance settings and categories from D7 to D9.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | interdiff_10-12.txt | 13.08 KB | srishtiiee |
| #12 | eu_cookie_compliance_migration_3264116-12.patch | 22.93 KB | srishtiiee |
| #10 | interdiff_8-10.txt | 1.54 KB | srishtiiee |
| #10 | eu_cookie_compliance_migration_3264116-10.patch | 22.21 KB | srishtiiee |
Comments
Comment #2
srishtiiee commentedComment #3
srishtiiee commentedComment #4
narendrarTested manually and verified that all permissions/settings/categories are migrated properly except one setting (Consent storage method not migrated)
Small Nit:
Update this.
Comment #5
srishtiiee commentedComment #6
srishtiiee commentedUpdated source plugin to migrate all the configuration in a single yml file.
Comment #7
srishtiiee commentedComment #8
srishtiiee commentedComment #9
narendrarMigration works for me.
Last nits from my side:
Reforms eu_cookie_compliance exclude paths acc to D9. => Transforms EU cookie compliance exclude paths according to D9 guideline.
eu_cookie_compliance => EU cookie compliance
Unnecessary
eu_cookie_compliance => EU cookie compliance
Comment #10
srishtiiee commentedComment #11
huzookaI would prefer a singular ID. That is the common practice in core (except of d7_views_modes)
Could you please change these to refer to the module settings more clearly? I mean change the migration's and the source plugin's ID to
eu_cookie_compliance_settings?👍 Most of these Drupal 7 values are always available: https://git.drupalcode.org/project/eu-cookie-compliance/-/blob/7.x-2.x/e..., except of
eu_cookie_compliance_cookie_lifetime(this is100),eu_cookie_compliance_domainoreu_cookie_compliance_domain_all_sites(this is0).Maybe we don't have to take care of the default value of
eu_cookie_compliance_domain, but the others might be important.Please prefix the plugin ID with the module's name. This
exclude_pathsseems very generic to me.Why don't you add
eu_cookie_complianceto thevariablesconfiguration, just like you did with the other variables?Please merge these two test methods.
You should use Entity API:
Comment #12
srishtiiee commentedAddressed issues mentioned in #11.
Comment #13
srishtiiee commentedComment #14
huzookaReview of #13:
In Drupal 9.3+, you should override only
SqlBase::doCount(), but if you do so, it means that the patch won't support core 9.2 or lower. So this is 👍I would override the whole
$configurationarray, not just itsvariablesconfiguration key, but this solution also works well! 👍The most recent patch addresses every concern we raised before, it deserves the RTBC status.
@srishti.bankar, great work, thank you!
Comment #16
svenryen commentedI'll take your word that it works. Committed to the dev branch. Thanks for the contribution!