Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
sunbird-lms-service
Commits
1eafb35e
Unverified
Commit
1eafb35e
authored
3 years ago
by
Reshmi V Nair
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
Merge4.6fixes (#1051)
Merge release-4.6.0 fixes to master
parent
35cdfb61
release-5.1.0-student-login-endpoint
dependabot/maven/controller/com.fasterxml.jackson.core-jackson-databind-2.12.7.1
dependabot/maven/core/actor-core/com.fasterxml.jackson.core-jackson-databind-2.12.7.1
dependabot/maven/core/cassandra-utils/com.fasterxml.jackson.core-jackson-databind-2.12.7.1
dependabot/maven/core/notification-utils/com.fasterxml.jackson.core-jackson-databind-2.12.7.1
dependabot/maven/core/platform-common/com.fasterxml.jackson.core-jackson-databind-2.12.7.1
dependabot/maven/core/platform-common/org.apache.kafka-kafka-clients-0.10.2.2
dependabot/maven/core/platform-common/org.jboss.resteasy-resteasy-client-3.14.0.Final
helmchart
master
patch-1
patch-2
release-4.10.0
release-4.10.1
release-4.9.0
release-5.0.0
release-5.0.1
release-5.0.2
release-5.1.0
release-5.0.1_RC1
release-5.0.0_RC5
release-5.0.0_RC4
release-5.0.0_RC3
release-5.0.0_RC2
release-5.0.0_RC1
release-4.10.1_RC1
release-4.10.0_RC5
release-4.10.0_RC4
release-4.10.0_RC3
release-4.10.0_RC2
release-4.10.0_RC1
release-4.9.0_RC3
release-4.9.0_RC2
release-4.9.0_RC1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/platform-common/src/main/java/org/sunbird/keys/JsonKey.java
+2
-0
...atform-common/src/main/java/org/sunbird/keys/JsonKey.java
service/src/main/java/org/sunbird/actor/user/TenantMigrationActor.java
+1
-1
...ain/java/org/sunbird/actor/user/TenantMigrationActor.java
service/src/main/java/org/sunbird/actor/userconsent/UserConsentActor.java
+2
-2
.../java/org/sunbird/actor/userconsent/UserConsentActor.java
with
5 additions
and
3 deletions
+5
-3
core/platform-common/src/main/java/org/sunbird/keys/JsonKey.java
+
2
−
0
View file @
1eafb35e
...
...
@@ -540,6 +540,8 @@ public final class JsonKey {
public
static
final
String
CONSENT_OBJECTTYPE
=
"objectType"
;
public
static
final
String
CONSENT_OBJECTTYPE_ORG
=
"Organisation"
;
public
static
final
String
CONSENT_STATUS_REVOKED
=
"REVOKED"
;
public
static
final
String
CONSENT_STATUS_DELETED
=
"DELETED"
;
// user consent req-response attributes listing - ended
// user consent table columns listing - started
public
static
final
String
CONSENT_CONSUMER_ID
=
"consumer_id"
;
...
...
This diff is collapsed.
Click to expand it.
service/src/main/java/org/sunbird/actor/user/TenantMigrationActor.java
+
1
−
1
View file @
1eafb35e
...
...
@@ -183,7 +183,7 @@ public class TenantMigrationActor extends BaseActor {
consentReqMap
.
put
(
JsonKey
.
CONSENT_CONSUMERID
,
request
.
getRequest
().
get
(
JsonKey
.
ROOT_ORG_ID
));
consentReqMap
.
put
(
JsonKey
.
CONSENT_OBJECTID
,
request
.
getRequest
().
get
(
JsonKey
.
ROOT_ORG_ID
));
consentReqMap
.
put
(
JsonKey
.
CONSENT_OBJECTTYPE
,
JsonKey
.
CONSENT_OBJECTTYPE_ORG
);
consentReqMap
.
put
(
JsonKey
.
STATUS
,
JsonKey
.
CONSENT_STATUS_
REVOK
ED
);
consentReqMap
.
put
(
JsonKey
.
STATUS
,
JsonKey
.
CONSENT_STATUS_
DELET
ED
);
Response
consentRes
=
userConsentService
.
updateConsent
(
consentReqMap
,
request
.
getRequestContext
());
...
...
This diff is collapsed.
Click to expand it.
service/src/main/java/org/sunbird/actor/userconsent/UserConsentActor.java
+
2
−
2
View file @
1eafb35e
...
...
@@ -128,8 +128,8 @@ public class UserConsentActor extends BaseActor {
.
stream
()
.
filter
(
consents
->
((
String
)
consents
.
get
(
JsonKey
.
STATUS
)).
equalsIgnoreCase
(
JsonKey
.
ACTIVE
)
)
.
map
(
!
((
String
)
consents
.
get
(
JsonKey
.
STATUS
)).
equalsIgnoreCase
(
JsonKey
.
CONSENT_STATUS_DELETED
)
)
.
map
(
consent
->
{
Map
<
String
,
Object
>
consentRes
=
new
HashMap
<
String
,
Object
>();
consentRes
.
put
(
JsonKey
.
ID
,
consent
.
get
(
JsonKey
.
ID
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets