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

patch(ticket): first response from communication #1606

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

ssiyad
Copy link
Contributor

@ssiyad ssiyad commented Oct 23, 2023

This used to be set from Replied status. The logic is then changed to fetch first response from communication instead

This used to be set from `Replied` status. The logic is then changed to
fetch first response from communication instead
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Files Coverage Δ
helpdesk/utils.py 0.00% <0.00%> (ø)
helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py 0.00% <0.00%> (ø)
helpdesk/helpdesk/doctype/hd_ticket/api.py 0.00% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

def execute():
for t in frappe.get_all("HD Ticket"):
try:
c = frappe.get_last_doc(
Copy link
Member

@ankush ankush Oct 23, 2023

Choose a reason for hiding this comment

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

Why fetch entire doc? Just do frappe.db.get_value?

Patch will run much faster 😄

@ssiyad ssiyad merged commit e3989fa into frappe:main Oct 23, 2023
@ssiyad ssiyad deleted the patch/ticket/first_responded_on branch October 23, 2023 15:58
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.

2 participants