? Pending

User tests: Successful: Unsuccessful:

avatar rjharishabh
rjharishabh
21 Aug 2021

Summary of Changes

This PR includes a component and a plugin.
The component has 4 parts:

  • Adding cookies
  • Adding categories
  • Adding scripts
  • View consents

The plugin handles all the scripts and updating consent details to the database using JavaScript.

CSS file for handling different cookie banner positions and preview button.

Testing Instructions

Installation

  1. Apply patch OR checkout final-cookie-manager branch
  2. Update database structure
  3. Discover and install cookie manager component and plugin
  4. Build assets - do npm run build:css and npm run build:js
install.mp4

Add categories and cookies

  1. Install blog sample data (but not necessary)
  2. Activate (or enable) the plugin
  3. Add categories and cookies associated with it
cookies.mp4

Add scripts

scripts.mp4

Add iframes

iframe.mp4

Same for links, objects, images and embeds.

View consents

consents

To Do

  • Merge all cookies that the Cookie Manager generates to control consents per categories of cookies and the modal (pop up) visibility into a single cookie.
  • Add a parameter to let the Webmaster choose which of the cookie categories will be activated on the first visit, but the user will still be able to opt-out and Additionally, we need a parameter to set one of the cookie categories as a necessary cookie category, meaning that this category should be activated by default and the user will not be able to opt-out.

Documentation Changes Required

Yes, have to add pages for the cookie manager component and plugin.

Thanks to all the people involved in this project

@apapageorgiou , @bembelimen , @chmst , @wilsonge ,
@jeckodevelopment , @nibra , @softforge , @richard67 and @shivamdiehard

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
1.00

45ba46f 18 Jun 2021 avatar rjharishabh space
2caba83 20 Jun 2021 avatar rjharishabh phpcs
avatar rjharishabh rjharishabh - open - 21 Aug 2021
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2021
Category Unit Tests SQL Administration com_admin Postgresql
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2021
Category Unit Tests SQL Administration com_admin Postgresql SQL Administration com_admin Postgresql
avatar PhilETaylor
PhilETaylor - comment - 21 Aug 2021

This would be best Git Squashed before committing :)
https://www.git-tower.com/learn/git/faq/git-squash/

avatar richard67
richard67 - comment - 21 Aug 2021

This would be best Git Squashed before committing :)
https://www.git-tower.com/learn/git/faq/git-squash/

@PhilETaylor It will be merged with a squash at the end (if nobody makes a mistake).

avatar rjharishabh rjharishabh - change - 21 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 21 Aug 2021
avatar rjharishabh rjharishabh - change - 21 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 21 Aug 2021
avatar rjharishabh rjharishabh - change - 21 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 21 Aug 2021
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
Removed: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2021
Category SQL Administration com_admin Postgresql Unit Tests SQL Administration com_admin Postgresql
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2021
Category SQL Administration com_admin Postgresql Unit Tests SQL Administration com_admin Postgresql
avatar rjharishabh rjharishabh - change - 21 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 21 Aug 2021
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
Removed: ? ?
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
Removed: ?
avatar PhilETaylor
PhilETaylor - comment - 21 Aug 2021

Drone is moaning about Code Style https://ci.joomla.org/joomla/joomla-cms/46950/1/6

FILE: /********/src/plugins/system/cookiemanager/cookiemanager.php
57s
48	----------------------------------------------------------------------
57s
49	FOUND 4 ERRORS AFFECTING 4 LINES
57s
50	----------------------------------------------------------------------
57s
51	 37 | ERROR | Missing @var tag in member variable comment
57s
52	    |       | (Squiz.Commenting.VariableComment.MissingVar)
57s
53	 44 | ERROR | Missing @var tag in member variable comment
57s
54	    |       | (Squiz.Commenting.VariableComment.MissingVar)
57s
55	 59 | ERROR | Missing @var tag in member variable comment
57s
56	    |       | (Squiz.Commenting.VariableComment.MissingVar)
57s
57	 66 | ERROR | Missing @var tag in member variable comment
57s
58	    |       | (Squiz.Commenting.VariableComment.MissingVar)
57s
59	----------------------------------------------------------------------
avatar rjharishabh
rjharishabh - comment - 21 Aug 2021

@PhilETaylor Thank you so much for the review ?

avatar rjharishabh rjharishabh - change - 21 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 21 Aug 2021
avatar bembelimen
bembelimen - comment - 21 Aug 2021

This would be best Git Squashed before committing :)
https://www.git-tower.com/learn/git/faq/git-squash/

That's normally what we do, so yes agree ?

avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
Removed: ?
avatar rjharishabh rjharishabh - change - 21 Aug 2021
Labels Added: ?
Removed: ?
avatar rjharishabh rjharishabh - change - 22 Aug 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 22 Aug 2021
avatar rjharishabh rjharishabh - change - 23 Aug 2021
Labels Added: ?
Removed: ?
avatar coolcat-creations
coolcat-creations - comment - 9 Dec 2021

Can iframes from a specific domain be actually blocked in general so you don't need to copy the exact iframe code into the cookie Manager Settings?
For Germany, you need a link to imprint, privacy policy, and cookie policy in the cookie modal itself.
Is it possible to scan the site for used cookies and external scripts and add them automatically as a draft to the manager?
It would be really exciting to have this feature on Board, thank you so much!!!

avatar rjharishabh rjharishabh - change - 2 Jan 2022
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2022
Category SQL Administration com_admin Postgresql Unit Tests Repository Administration com_admin SQL Postgresql
avatar rjharishabh rjharishabh - change - 2 Jan 2022
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2022
Category SQL Administration com_admin Postgresql Unit Tests Repository SQL Administration com_admin Postgresql
avatar richard67
richard67 - comment - 2 Jan 2022

@rjharishabh There are very likely conflicts in base.sql for the assets table, too, a nested one … you rememberer sure. Best is you go through them again.

avatar rjharishabh rjharishabh - change - 2 Jan 2022
Labels Removed: ?
avatar roland-d
roland-d - comment - 30 Jan 2022

@rjharishabh Could you update this PR and rebase it to 4.2-dev so we can include it in the Joomla 4.2 release?

avatar roland-d
roland-d - comment - 16 Feb 2022

Hello @rjharishabh I noticed you updated this PR with the 4.1-dev branch. As this is a new feature it needs to be based on the 4.2-dev branch. so I rebased the PR against the 4.2-dev branch.

Could you please look at the last todo items so this can be completed?

avatar brianteeman
brianteeman - comment - 16 Feb 2022

Please check and correct all the xml files so that you are only indenting with tabs and not a mix of tabs and spaces.
Please remove all the size= from the xml as they dont do anything

avatar rjharishabh rjharishabh - change - 1 Mar 2022
Title
[4.1] [GSoC 21] Cookie Manager
[4.2] [GSoC 21] Cookie Manager
avatar rjharishabh rjharishabh - edited - 1 Mar 2022
avatar roland-d roland-d - change - 2 May 2022
Labels Added: ?
Removed: ?
avatar brianteeman
brianteeman - comment - 14 Jun 2022

This should be closed as its never going to be merged

avatar coolcat-creations
coolcat-creations - comment - 14 Jun 2022

This should be closed as its never going to be merged

Why?

avatar brianteeman
brianteeman - comment - 14 Jun 2022

because sadly it is unusable. sorry I should have linked to my longer report joomla-projects/gsoc21_cookie-manager#48 (comment)

avatar coolcat-creations
coolcat-creations - comment - 15 Jun 2022

Ok but that's not motivating for the creator of this project to just say "it will be never merged". I also don't understand why you say something like "On what planet were the gsoc mentors living" The mentors are there to support the student and not to write everything themselves. I think your long report is helpful but in my opinion it's also mean. Give people a chance. I was not able to test it because I have issues with getting composer to run. :-( Hope I can test it soon and also help the student to fix problems.

avatar brianteeman
brianteeman - comment - 15 Jun 2022

It should be part of the mentors role to ensure that the student is spending their time producing code that fits the purpose. I am not talking about quality of code but the actual functionality. If you read exactly what I wrote you will see that I spent two days writing 20 pull requests to address code quality before I even realised that the code itself doesnt and can not satisfy its aims. That should have been addressed a long long time ago by the mentors. 4.2 is in beta which means it is feature complete so this cannot go into 4.2 which gives enough time for it to be written correctly for 4.3. If you read exactly what I wrote you will see that the approach to solving the task will not be usable - it is that which the mentors should have spotted and addressed before enoucraging the student to carry on.

PS if you do manage to resolve your technical issues then you should test the code from https://github.com/joomla-projects/gsoc21_cookie-manager/tree/final-cookie-manager as it is more upto date than the code here in this PR

PPS fairly certain that when you try the code you will see it doesnt try to do what you think it will and that your clients would never be able to use it

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar brianteeman
brianteeman - comment - 9 Sep 2022

There reaally is no point in this outdated pr staying open

avatar HLeithner
HLeithner - comment - 2 May 2023

This pull request has been automatically rebased to 5.0-dev.

avatar Magnytu2
Magnytu2 - comment - 26 Aug 2023

Successful installation, but incorrect operation with automatic category creation each time you click (Save and Close).
screen shot 2023-08-26 at 09 35 26


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35278.

avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 5.1-dev.

avatar HLeithner
HLeithner - comment - 24 Apr 2024

This pull request has been automatically rebased to 5.2-dev.

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
[4.2] [GSoC 21] Cookie Manager
[5.2] [GSoC 21] Cookie Manager
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar HLeithner
HLeithner - comment - 2 Sep 2024

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
[5.2] [GSoC 21] Cookie Manager
[5.3] [GSoC 21] Cookie Manager
avatar HLeithner HLeithner - edited - 2 Sep 2024

Add a Comment

Login with GitHub to post a comment