8000 fix: use communication date in timeline by barredterra · Pull Request #24884 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: use communication date in timeline #24884

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

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

barredterra
Copy link
Collaborator
@barredterra barredterra commented Feb 13, 2024

Before, we used the database creation date, which may coincidentally corresponds to the real communication date (email sent and synced today) but not always (email sent three years ago, synced to the database today).

As per the few thousand communications in our system, the communication date is always available. Since it's more accurate, we should use it.

Before

before

(The communication record was apparently created two weeks ago, but the email is three years old. Displaying the creation date is misleading.)

After

after

Before, we used the database creation date, which coincidentally corresponds to the real communication date in many cases.
@barredterra barredterra requested review from a team and akhilnarang and removed request for a team February 13, 2024 14:37
@barredterra barredterra added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Feb 13, 2024
@akhilnarang akhilnarang merged commit ec8500e into frappe:develop Feb 19, 2024
@barredterra barredterra deleted the timeline-communication-date branch February 19, 2024 09:02
akhilnarang added a commit that referenced this pull request Feb 19, 2024
…-24884

fix: use communication date in timeline (backport #24884)
akhilnarang added a commit that referenced this pull request Feb 19, 2024
…-24884

fix: use communication date in timeline (backport #24884)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2024
@@ -23,7 +23,7 @@
{% } %}

<div class="text-muted">
{{ comment_when(doc.creation) }}
{{ comment_when(doc.communication_date) }}
Copy link
Member

Choose a reason for hiding this comment

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

Comments and other timeline items don't use this, need to still use creation as fallback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0