Skip to content

[OU-FIX] im_livechat: backfill livechat_end_dt for closed sessions#59

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-im-livechat-chatbot-condition
Open

[OU-FIX] im_livechat: backfill livechat_end_dt for closed sessions#59
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-im-livechat-chatbot-condition

Conversation

@dnplkndll

@dnplkndll dnplkndll commented May 29, 2026

Copy link
Copy Markdown

Slimmed to the genuine delta on top of upstream's now-landed im_livechat/19.0.1.0 migration (reconciliation vs OCA/19.0).

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). This sets livechat_end_dt from write_date and clears livechat_status for 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, chatbot message→html, and chatbot_enabled_condition='only_if_no_operator' — all now in upstream's scripts.
  • our chatbot_enabled_condition='always' WHERE NULL — redundant: the field is NEW required with a literal default, so no NULLs exist.

@dnplkndll
dnplkndll force-pushed the 19.0-mig-im-livechat-chatbot-condition branch 3 times, most recently from 2c8f031 to 5058f28 Compare May 30, 2026 03:17
@dnplkndll
dnplkndll force-pushed the 19.0-mig-im-livechat-chatbot-condition branch 7 times, most recently from 7a681c4 to 917dede Compare June 5, 2026 19:53
@dnplkndll
dnplkndll force-pushed the 19.0-mig-im-livechat-chatbot-condition branch 4 times, most recently from 558a7e4 to dc8fe07 Compare June 19, 2026 11:59
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
dnplkndll force-pushed the 19.0-mig-im-livechat-chatbot-condition branch from dc8fe07 to b682e9a Compare July 16, 2026 20:40
@dnplkndll dnplkndll changed the title [OU-ADD] im_livechat: chatbot condition boolean→selection [OU-FIX] im_livechat: backfill livechat_end_dt for closed sessions Jul 16, 2026
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.

1 participant