Closed (fixed)
Project:
Modal
Version:
4.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2022 at 17:43 UTC
Updated:
22 Sep 2022 at 19:39 UTC
Jump to comment: Most recent
Add option to customize ' do not show again' cookies.
Add global setting to set days of expiration for a 'do not show again' cookie. Value 0 generates a session cookie.
Add fields to customize each modal, taking priority over the global setting.
Fall back to a high number (current) if none of the above can be found.
Added cookies details on modal, under 'enable do not show again' option.
Added cookies settings to module config page.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
luiscarvalho commentedComment #4
victorml commentedI tested and reviewed the code.
Everything worked fine. The cookies were created according to the settings applied.
The automated tests are passing too.
Seems fine to me.
Comment #5
paulocsMR needs rebase and we should DI as @RenatoG pointed.
Comment #6
sophiavs commentedI'll do the rebase
Comment #7
sophiavs commentedComment #8
vitorbs commentedI'll review this one.
Comment #9
vitorbs commentedComment #10
mpauloReassigning for review ;)
Comment #11
mpauloMerged 4.1.x from upstream into the MR branch.
LGTM. Didn't find CS errors, either.
Comment #12
mpauloComment #13
jsricardo commentedComment #14
jsricardo commentedComment #15
mpauloAs I've commited a merge from origin, I really shouldn't have RTBCed this one.
Comment #16
jsricardo commentedComment #17
jsricardo commentedTested in modal.
I enabled the option to customize cookie expiration date, disabled modal customization and modified the global expiration date.
All successful tests
Comment #18
paulocsMR needs another rebase.
Comment #19
paulocsComment #20
mpauloI'll try rebasing this one.
Comment #21
mpauloComment #22
mpauloNew tests miss new parameters added to some service classes on the DI refactoring of this issue.
I'll try to fix them.
Comment #23
mpauloComment #24
paulocsComment #25
mpauloI've resolved the MR issues.
Comment #26
diegorsI will review it.
Comment #27
diegorsThe patch works as expected, changing the expiration time of the cookie
please_do_not_show_again_modal_idis set according to the settings.Comment #29
paulocsThanks!
Comment #30
paulocs