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

NXDRIVE-2889: Display system notification for document review #4878

Conversation

swetayadav1
Copy link
Contributor

@swetayadav1 swetayadav1 commented May 16, 2024

NXDRIVE-2889: Display system notification for document review

swetayadav1 and others added 30 commits February 9, 2024 10:54
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.

Comment on lines +22 to +31
"""Fetch document details"""
first_task = tasks_list[0]
doc_id = first_task.targetDocumentIds[0]["id"]
task_id = first_task.id

response = self.remote.documents.get(doc_id)
if response:
engine.send_task_notification(task_id, response.path)
else:
log.error("Failed to fetch document details.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): We've found these issues:

"""Get Tasks for document review"""
try:
options = {"userId": self.remote.user_id}
tasks = self.remote.tasks.get(options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use named expression to simplify assignment and conditional (use-named-expression)

@swetayadav1 swetayadav1 merged commit 74f5e9b into wip-NXDRIVE-2873-Handle-workflow-in-drive May 20, 2024
18 of 20 checks passed
@swetayadav1 swetayadav1 deleted the wip-NXDRIVE-2889-Display-system-notification-for-document-review branch May 20, 2024 06:29
gitofanindya pushed a commit that referenced this pull request Jul 25, 2024
* NXDRIVE-2889: Display system notification for document review (#4878)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mr-shekhar <[email protected]>
Co-authored-by: swetayadav1 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: poojadaine <[email protected]>
Co-authored-by: Sweta Yadav <[email protected]>
Co-authored-by: swetayadav1 <[email protected]>
Co-authored-by: GitHub-CI action (Release) <[email protected]>
Co-authored-by: Pooja Ramkrishna Daine <[email protected]>
Co-authored-by: Filip <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Crowdin Bot <[email protected]>
Co-authored-by: Sushil Chaudhary <[email protected]>
Co-authored-by: sushildeep <[email protected]>
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.

1 participant