Unverified Commit 60c00ba7 authored by Reshmi V Nair's avatar Reshmi V Nair Committed by GitHub
Browse files

SB-26474 Support for multiple Consent Statuses (#974)

* SB-26474 Support for multiple Consent Statuses
Showing with 4 additions and 2 deletions
+4 -2
......@@ -12,7 +12,8 @@ public class UserConsentRequestValidator extends BaseRequestValidator {
enum CONSENT_STATUS {
ACTIVE,
REVOKED;
REVOKED,
DELETED;
}
/**
* This method will validate the mandatory param in the read request.
......
......@@ -36,7 +36,7 @@ sunbird_otp_allowed_attempt=2
#Telemetry producer related info
telemetry_pdata_id=local.sunbird.learning.service
telemetry_pdata_pid=learning-service
telemetry_pdata_ver=4.1.0
telemetry_pdata_ver=4.4.0
#elastic search top n result count for telemetry
searchTopN=5
ekstep.channel.update.api.url=/channel/v3/update
......
......@@ -117,6 +117,7 @@ public class UserConsentActor extends BaseActor {
List<Map<String, Object>> consentResponseList =
consentDBList
.stream()
.filter(consents->((String)consents.get(JsonKey.STATUS)).equalsIgnoreCase(JsonKey.ACTIVE))
.map(
consent -> {
Map<String, Object> consentRes = new HashMap<String, Object>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment