-
Notifications
You must be signed in to change notification settings - Fork 53
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
NXDRIVE-2889: Display system notification for document review #4878
Conversation
…NXDRIVE-2889-Display-notification-for-document-review
…ew' of https://github.com/nuxeo/nuxeo-drive into wip-NXDRIVE-2889-Display-notification-for-document-review
…NXDRIVE-2889-Display-notification-for-document-review
…NXDRIVE-2889-Display-notification-for-document-review
…NXDRIVE-2889-Display-notification-for-document-review
* NXDRIVE-2899: Display new workflow feature on Features tab
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.
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.
"""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.") |
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.
issue (code-quality): We've found these issues:
- Use named expression to simplify assignment and conditional (
use-named-expression
) - Move assignments closer to their usage (
move-assign
)
"""Get Tasks for document review""" | ||
try: | ||
options = {"userId": self.remote.user_id} | ||
tasks = self.remote.tasks.get(options) |
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.
issue (code-quality): Use named expression to simplify assignment and conditional (use-named-expression
)
74f5e9b
into
wip-NXDRIVE-2873-Handle-workflow-in-drive
* 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]>
NXDRIVE-2889: Display system notification for document review