Needs work
Project:
Like!
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2022 at 15:43 UTC
Updated:
13 Jan 2023 at 07:07 UTC
Jump to comment: Most recent
There's a lot of code in the LikeForm.php that gets/sets a cookie for anon. users, we should have all that part on a tested service.
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 #2
hardikpandya commentedComment #4
hardikpandya commentedComment #5
pcambraThis is a good first step, now it needs to be moved to a service :)
Comment #6
hardikpandya commentedIt is already added under
like.helperservice. Do you mean a separate service only for cookie operations?Comment #7
pcambraYes, a dedicated, and tested service that takes care of the cookies through the module.
Comment #8
hardikpandya commentedI have added cookie operations in a separate service file. Keeping this `Needs Work` for anyone to add tests.