Skip to content

Ad-hoc Event Tracking#649

Open
Jumana-K wants to merge 5 commits into
version-15from
evnt_timr
Open

Ad-hoc Event Tracking#649
Jumana-K wants to merge 5 commits into
version-15from
evnt_timr

Conversation

@Jumana-K

@Jumana-K Jumana-K commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Feature description

Task:TASK-2026-00549
Ad-hoc Event Logging feature with timer support, Event creation and Timesheet integration across Task and Project Management Tools.

Output screenshots (optional)

Screen Recording 2026-06-09 at 11.04.40 AM.zip

Was this feature tested on these browsers?

  • Chrome

@Jumana-K Jumana-K requested a review from SherinKR June 6, 2026 19:04
@SherinKR

SherinKR commented Jun 8, 2026

Copy link
Copy Markdown
Member

@Jumana-K Add output screenshots/recording

@SherinKR SherinKR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use is_event flag for identifying event tasks?

Comment thread one_compliance/one_compliance/page/task_management_tool/task_management_tool.js Outdated
Comment thread one_compliance/one_compliance/page/task_management_tool/task_management_tool.py Outdated
Comment thread one_compliance/one_compliance/page/task_management_tool/task_management_tool.py Outdated
Comment thread one_compliance/one_compliance/page/task_management_tool/task_management_tool.py Outdated
@Jumana-K Jumana-K requested a review from SherinKR June 9, 2026 05:42
"""
user = frappe.session.user
settings = frappe.db.get_value("Projects Settings", "Projects Settings", ["ignore_employee_time_overlap", "ignore_user_time_overlap"], as_dict=True) or {}
ignore_overlap = (int(settings.get("ignore_employee_time_overlap") or 0) == 1) or (int(settings.get("ignore_user_time_overlap") or 0) == 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make these checks optimised

val2 = frappe.db.get_value("Projects Settings", "Projects Settings", "ignore_user_time_overlap")
ignore_overlap = (int(val1 or 0) == 1) or (int(val2 or 0) == 1)
settings = frappe.db.get_value("Projects Settings", "Projects Settings", ["ignore_employee_time_overlap", "ignore_user_time_overlap"], as_dict=True) or {}
ignore_overlap = (int(settings.get("ignore_employee_time_overlap") or 0) == 1) or (int(settings.get("ignore_user_time_overlap") or 0) == 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make these checks optimised

@Jumana-K Jumana-K requested a review from SherinKR June 10, 2026 11:57
Comment on lines +411 to +412
return (int(settings.get("ignore_employee_time_overlap") or 0) == 1) or \
(int(settings.get("ignore_user_time_overlap") or 0) == 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As it's the custom doctype, the fields should exists there, So it can be refactored to return bool(settings.ignore_employee_time_overlap or settings.ignore_user_time_overlap)

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