-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added RTT tag and notification for RTT attachments #5148
Conversation
Changes to handle the observations of 3090, 3092, 3093, 3085.
Quality Gate failedFailed conditions |
eventservice().attachmentevent(ministryrequestid, document, userid, "add", message) | ||
#if 'rrt' in documentschema['documents']['category']: | ||
#Create notification event for RRT document | ||
# eventservice().posteventforextension(ministryrequestid, '', userid, '' , "add") | ||
return FOIMinistryRequestDocument.createdocuments(ministryrequestid, version, documentschema['documents'], userid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the RRT related changes to events/attatment.py
Also, call the attachmentevent from the resource level(POST)
return "Attachment Upload Event" | ||
|
||
def __defaultuserid(self): | ||
return "System" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unnecessary codes or functions.
prepare the notification and comments message here.
include createcomment() also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, make sure to include scanning team members as discussed. The changes should be done in services\notifications\notificationuser.py
if attachmenteventresponse.success == False: | ||
current_app.logger.error("FOI Notification failed for event for attachment= %s" % (document['category'])) | ||
except BusinessException as exception: | ||
self.__logbusinessexception(exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update it as async event.
No description provided.