Sirdata CMP is a Consent Management Platform made to reply to privacy regulations such like GDPR, ePrivacy, CCPA and already used by thousands of websites.
Sirdata provides a CMP certified (IAB Transparency & Consent Framework V2.1) and compatible with all players in the programmatic and eCommerce markets.

This module (fully compatible with D8 and D9) provide a simple way to insert CMP SirData call to every page of a Drupal website.
Here are the included features :

  1. Enable / Disable feature
  2. Custom configuration page where we can set the two expected variable to connect with CMP SirData (/admin/config/system/cmp-sirdata)
    1. app_key
    2. customer_key
    3. Those keys can be obtenained by registering on https://cmp.sirdata.io/
  3. Include permissions management
  4. Once configuration is done, the module call the following url
    1. https://cache.consentframework.com/js/pa/' . $settings->get('app_key') . '/c/' . $settings->get('customer_key') . '/stub
    2. https://choices.consentframework.com/js/pa/' . $settings->get('app_key') . '/c/' . $settings->get('customer_key') . '/cmp

Project link

https://www.drupal.org/project/cmp_sirdata

Git instructions

git clone --branch 1.0.x https://git.drupalcode.org/project/cmp_sirdata.git

CommentFileSizeAuthor
TzBsF5xuX0UctFWl.png42.99 KBtemlife

Comments

temlife created an issue. See original summary.

temlife’s picture

Issue summary: View changes
rajveergangwar’s picture

Status: Needs review » Needs work
rajveergangwar’s picture

HI,
I cloned project and found that README text file dont follow drupal standards

https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

temlife’s picture

Hello,

Thank you for the review. Fixed mssing readme.txt

temlife’s picture

Status: Needs work » Needs review
rajveergangwar’s picture

Hi,
It would great if you can add

MAINTAINERS
-----------

section too.

rajveergangwar’s picture

Status: Needs review » Needs work
temlife’s picture

Status: Needs work » Needs review

Added maintainers section to README file

cmlara’s picture

Status: Needs review » Needs work

I do not believe this application can be processed as submitted.

There appear to be no code submissions by the applicant @temlife with the only commits from the applicant being the readme changes requested in #4 and #7. The majority of the repository (including all code) appears to have been written by a different committer.

Additionally the project appears to me to be below the 120 lines code minimum (the form and the .module file) for consideration. Even if the correct applicant applies I am concerned this module may be too short/too simple for review.

temlife’s picture

Status: Needs work » Needs review

I've added some lines of code about help and added descriptions to fit minimum lines requirement.
About who published the module and who update it, i don't see what's the problem since jzucco and I are co-maintainers of this project.

Could you pls review the new module version please ?

avpaderno’s picture

Status: Needs review » Needs work

I agree with cmlara: The project doesn't contain much PHP code, and all the code has been written by other users. There isn't much to be changed in the PHP code, which means that temlife cannot show what knows about writing secure code that follows the Drupal coding standards and that correctly uses the Drupal API.

@temlife You need to use a different project, if you want to get the vetted role these applications give.
These applications are per users, so we expect users to apply using a project for which they wrote code for at least a branch. They aren't applications for projects, for which the collective work done from more users is considered to change the project status.

andypost’s picture

The module missing tests at all, so only after that I think it viable to continue discussion

temlife’s picture

Status: Needs work » Needs review

Hello,

After a long discussion with @andypost, i pushed the following changes :

1. The scripts are added as assets in hook page attachments. To properly support advagg module as well.
2. The tests were updated and added check for anonymous users, authorized users with big pipe cache and only default single flash cache.
3. Added D10 support and removed D8 (since it's EOL)
4. Added composer.json file

Note : min php version should be 7.2.5

Hope it will be ok now

avpaderno’s picture

Status: Needs review » Needs work
Issue tags: +PAreview: security
  • What follows is a quick review of the project; it doesn't mean to be complete
  • For every point, the review doesn't make a complete list of lines that should be fixed, but an example of what is wrong in the code
  • A review is about code that doesn't follow the coding standards, contains possible security issue, or doesn't correctly use the Drupal API; if a point isn't about that, it makes it clear
function cmp_sirdata_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.cmp_sirdata':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('
        Sirdata CMP is a Consent Management Platform made to reply to privacy regulations such like GDPR, ePrivacy, CCPA and already used by thousands of websites.
      ') . '</p>';
      $output .= '<p>' . t('See more at <a href="@sirdata_cmp_docs">Sirdata CMP documentation page</a>.', ['@sirdata_cmp_docs' => 'https://cmp.docs.sirdata.net/']) . '</p>';

      return $output;
  }
}

The correct placeholder for URLs is :sirdata_cmp_docs, as described in FormattableMarkup::placeholderFormat().

vacho’s picture

I will make a review and resume of the observations.

Firstly Thanks All for the code review!!

#4, #7 About README with standards
Was fixed.

#10, #12 About code lines
Was Fixed

#10, #12 About several code committers
There is not a problem IMHO
The code is simple but is made by a team, and contributors are welcome. I think it is normal in an Open Source project.
The coding standards are already in revision.

phpcs \
    --standard="Drupal,DrupalPractice" -n \
    --extensions="*.*.yml,php,module,inc,install,test,profile,theme,md,js" \
    --ignore="*.features.*,*.pages*.inc,node_modules/*,css/*" \

Works without issues.

#12 About to get the "vetted role" for @temlife
Without comments.

#13 About to get tests
Was Fixed

#15 Is a good catch.

temlife’s picture

Status: Needs work » Needs review

Thank you everyone for your feedbacks !

I've published a new release including the fix for the comment #15
I'm putting the issue back to "Needs review" status

Let me know if there any other feedback

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

temlife’s picture

Thank you @apaderno and everyone !

I'm gonna take a look on all those links

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.