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
73559981
Unverified
Commit
73559981
authored
3 years ago
by
sknirmalkar89
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
SB-27940:Soft delete to the notification in-app notification feed (#1028)
* SB-28268:Old delete api from is not working
parent
8652b9fa
release-4.6.0
release-4.6.0_RC9
release-4.6.0_RC8
release-4.6.0_RC7
release-4.6.0_RC6
release-4.6.0_RC5
release-4.6.0_RC4
release-4.6.0_RC3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/src/main/java/org/sunbird/client/NotificationServiceClient.java
+5
-5
...in/java/org/sunbird/client/NotificationServiceClient.java
with
5 additions
and
5 deletions
+5
-5
service/src/main/java/org/sunbird/client/NotificationServiceClient.java
+
5
−
5
View file @
73559981
...
...
@@ -105,7 +105,7 @@ public class NotificationServiceClient {
Response
response
=
mapper
.
readValue
(
responseStr
,
Response
.
class
);
return
response
;
}
catch
(
Exception
ex
)
{
logger
.
error
(
context
,
"FeedServiceImpl:
insert
Exception occurred while mapping."
,
ex
);
logger
.
error
(
context
,
"FeedServiceImpl:
readV1Notification
Exception occurred while mapping."
,
ex
);
ProjectCommonException
.
throwServerErrorException
(
ResponseCode
.
SERVER_ERROR
);
}
...
...
@@ -119,17 +119,17 @@ public class NotificationServiceClient {
* @return
*/
public
Response
deleteV1Notification
(
Request
reqObj
,
RequestContext
context
)
{
logger
.
debug
(
context
,
"NotificationServiceClient:
read
V1Notification method called : "
);
logger
.
debug
(
context
,
"NotificationServiceClient:
delete
V1Notification method called : "
);
String
serviceUrl
=
getServiceApiUrl
(
JsonKey
.
NOTIFICATION_SERVICE_V1_
READ
_URL
);
String
serviceUrl
=
getServiceApiUrl
(
JsonKey
.
NOTIFICATION_SERVICE_V1_
DELETE
_URL
);
logger
.
debug
(
context
,
"NotificationServiceClient:
read
V1Notification :: calling notification service URL :"
+
serviceUrl
);
"NotificationServiceClient:
delete
V1Notification :: calling notification service URL :"
+
serviceUrl
);
try
{
Response
response
=
callCreateOrDeleteNotificationService
(
reqObj
,
context
,
serviceUrl
);
return
response
;
}
catch
(
Exception
ex
)
{
logger
.
error
(
context
,
"FeedServiceImpl:
insert
Exception occurred while mapping."
,
ex
);
logger
.
error
(
context
,
"FeedServiceImpl:
deleteV1Notification
Exception occurred while mapping."
,
ex
);
ProjectCommonException
.
throwServerErrorException
(
ResponseCode
.
SERVER_ERROR
);
}
...
...
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