Problem/Motivation

Currently consentGiven and consentDenied never knows itself, which services it should handle and unblock technically, once consent was given or denied.

Based on the general concept from the parent issue, we should pass the module settings and the consented / denied services to "consentGiven" and "consentDenied" functions in JavaScript.

We can already implement this in 1.1.x as it won't do any harm and clean up things already.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork cookies-3323526

Command icon Show commands

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

Anybody created an issue. See original summary.

anybody’s picture

Title: JS: Call consentGiven / consentDenied with Service ID (and settings) » [2.x] JS: Call consentGiven / consentDenied with Service ID (and settings)
Assigned: anybody » Unassigned
Status: Active » Needs review

Okay, here we go. I think there's still a bit of copied boilerplate code, which we have to decide, if it's more useful or not. But that should be done later in #3225233: [2.x] Remove jQuery dependency and use ES6, I guess.

This has to be reviewed carefully to ensure we don't break anything.

anybody’s picture

Status: Needs review » Needs work

Nice, the tests tell us that unblocking seems to fail now with these changes, I'll have to test that manually.

anybody’s picture

Title: [2.x] JS: Call consentGiven / consentDenied with Service ID (and settings) » [PP-2.x] JS: Call consentGiven / consentDenied with Service ID (and settings)
Status: Needs work » Patch (to be ported)
Issue tags: +Breaking Change (BC)
anybody’s picture

Version: 1.1.x-dev » 1.2.x-dev
Assigned: Unassigned » grevil
Status: Patch (to be ported) » Needs work
grevil’s picture

Assigned: grevil » Unassigned
anybody’s picture

@Grevil whenever you have the time, you can already rebase (copy manually?) and merge this, just a step towards 2.x - no high priority, just code improvements.

anybody’s picture

Version: 1.2.x-dev » 2.x-dev
Assigned: Unassigned » grevil

Hey ho, let's go! 2.x branch was recently created. Please help to implement this or if you're not a developer, please sponsor some development hours.

@Grevil, see #8 so this can already be done in 2.x

grevil’s picture

Assigned: grevil » Unassigned