Skip to content
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

Merged
merged 9 commits into from
Apr 15, 2024

Conversation

antsand
Copy link
Collaborator

@antsand antsand commented Apr 15, 2024

No description provided.

@antsand antsand changed the base branch from main to dev-marshal April 15, 2024 21:55
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@antsand antsand changed the title Dev marshal shiva 2965 rrt Added RTT tag and notification for RTT attachments Apr 15, 2024
@antsand antsand merged commit 12ee340 into dev-marshal Apr 15, 2024
5 of 6 checks passed
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)
Copy link
Contributor

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"
Copy link
Contributor

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.

Copy link
Contributor

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)
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants