[OU-FIX] im_livechat: backfill livechat_end_dt for closed sessions#59
Open
dnplkndll wants to merge 1 commit into
Open
[OU-FIX] im_livechat: backfill livechat_end_dt for closed sessions#59dnplkndll wants to merge 1 commit into
dnplkndll wants to merge 1 commit into
Conversation
dnplkndll
force-pushed
the
19.0-mig-im-livechat-chatbot-condition
branch
3 times, most recently
from
May 30, 2026 03:17
2c8f031 to
5058f28
Compare
dnplkndll
force-pushed
the
19.0-mig-im-livechat-chatbot-condition
branch
7 times, most recently
from
June 5, 2026 19:53
7a681c4 to
917dede
Compare
dnplkndll
force-pushed
the
19.0-mig-im-livechat-chatbot-condition
branch
4 times, most recently
from
June 19, 2026 11:59
558a7e4 to
dc8fe07
Compare
19.0 replaces discuss_channel.livechat_active (boolean) with livechat_end_dt. Upstream's im_livechat migration doesn't backfill it, so every historically closed livechat session migrates as still-open (multi-year durations, live status in the new dashboards). Set livechat_end_dt from write_date and clear livechat_status for non-active sessions.
dnplkndll
force-pushed
the
19.0-mig-im-livechat-chatbot-condition
branch
from
July 16, 2026 20:40
dc8fe07 to
b682e9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slimmed to the genuine delta on top of upstream's now-landed
im_livechat/19.0.1.0migration (reconciliation vs OCA/19.0).19.0 replaces
discuss_channel.livechat_active(boolean) withlivechat_end_dt. Upstream's im_livechat migration doesn't backfill it, so every historically closed livechat session migrates as still-open (multi-year durations, live status in the new dashboards). This setslivechat_end_dtfromwrite_dateand clearslivechat_statusfor non-active sessions.Dropped from the earlier version of this branch (covered upstream):
copy_columns(chatbot_message ...), obsolete-rule deletes,DROP VIEW im_livechat_report_operator, chatbotmessage→html, andchatbot_enabled_condition='only_if_no_operator'— all now in upstream's scripts.chatbot_enabled_condition='always' WHERE NULL— redundant: the field isNEW requiredwith a literal default, so no NULLs exist.