Configuration#
Note
This section provides information on how and where to set up badge templates and organizations.
The Badges feature is configured in the Credentials admin panel.
Credly Organizations#
Multiple Credly Organizations can be configured.
All communication between Open edX Credentials and Credly service happens on behalf of a Credly Organization.
Go to the Credly Organization section in the admin panel and create a new item:
to set the UUID use your Credly Organization identifier;
to set the authorization token issue one in the Credly Organization’s dashboard.
Check: the system pulls the Organization’s details and updates its name.
In case of errors check the used credentials for the Organization.
Badge templates#
Credly badge templates (badge templates for short) are created in the Credly Organization’s dashboard and then, if published, they are retrieved by the Credentials via API.
Webhooks#
Note
Webhooks is a connection with Credly and external platform that allows your server to be notified about events occuring within Credly.
Webhooks are set up on Credly management dashboard as Credly is a main initiator of the syncronization.
You should be able to select an action from the list so that whenever this action happens internally, external platform will be alerted and updated.
Without the syncronization, actions such as:
Update of the badge template
Archivation of the badge template
external platform will not be aware of any changes so it might continue issuing outdated badges.
Synchronization#
To synchronize Credly badge templates for the Organization one should:
navigate “Credly badge templates” list page;
select the Organization;
use
Sync organization badge templates
action;
On success, the system will update the list of Credly badge templates for the Organization:
only badge templates with
active
state are pulled;Credly badge template records are created inactive (disabled);
For the usage a badge template must be configured and activated first.
Badge Requirements#
Requirements describe what and how must happen on the system to earn a badge.
Badge Requirement(s) specification is a crucial part of badge template configuration. At least one badge requirement must be associated with a badge template.
Badge Requirements are listed inline on a badge template detail page.
A badge template can can have multiple requirements. All badge requirements must be fulfilled to earn a badge.
Event type#
Describes what is expected to happen.
Available event type subset is pre-configured in the application settings.
Note
Technically, any public signal from the openedx-events library can be used for badge template requirements setup, if it includes user PII (UserData), so users can be identified.
Rules#
A list of configured data rules (if any), see “Data Rules”.
Description#
Description is an optional human-readable reminder that describes what the requirement is about.
Badge Requirement can be deeper specified via its Data Rules.
Group#
Optional configuration (by default each badge requirement is assigned a separate Group).
Allows putting 2 or more badge requirements as a Group. Requirements group is fulfilled if any of its requirements is fulfilled.
“OR” logic is applied inside a Group.
Data Rules#
Describes how it is expected to happen
Data Rules detail their parent Badge Requirement based on the expected event payload.
To edit/update a Data Rule:
navigate to the Badge Requirement detail page (use
Change
inline link);find the “Data Rules” section and add a new item;
Each data rule describes a single expected payload value:
All key paths are generated based on the event type specified for the parent Badge Requirement.
- Key path - payload path to the target attribute
dot-separated string;
each event type has its unique pre-defined set of key paths;
- Operator - comparison operation to apply between expected and actual values;
- available operators: (payload)
"="
(equals);"!="
(not equals);
- Expected value - an expected value for the target attribute
payload boolean positive values allowed:
"true", "True", "yes", "Yes", "+"
;payload boolean negative values allowed:
"false", "False", "no", "No", "-"
;
Please, see configuration examples for clarity.
Badge Penalties#
Penalties allow badge progress resetting based on user activity.
Badge penalties are optional. There could be 0 or more badge penalties configured for a badge template.
Each badge penalty is targeted to 1 or more badge requirements. A penalty setup is similar to a badge requirement, but has different effect: it decreases badge progress for a user.
When a penalty has worked all linked badge requirements are “rolled back” (user’s progress for such requirements is reset).
Activation#
Configured badge template can be activated:
navigate to the badge template detail page;
check
Is active
checkbox;Activated badge template starts “working” immediately.
Credly badge template record includes:
Core credential attributes;
Badge template credential attributes;
Credly service attributes (state, dashboard link);
Configured requirements;