Drag-and-drop functionality in Kanban board is inconsistent and counters are not updating correctly.

Created on 28 January 2025, 3 days ago

Problem/Motivation

The drag-and-drop functionality in the Kanban board is not working as expected. Specifically:
Counters for items and points are not updating correctly when items are moved between columns.
The draggableInit function is not properly handling the state changes, leading to inconsistent behavior.
The AJAX call to update the backend state is not always triggered, causing discrepancies between the frontend and backend states.
This issue affects the usability of the Kanban board, as users cannot reliably track the status of items or points.

Steps to reproduce

  1. Install and configure the Kanban module.
  2. Create a Kanban view with multiple columns and items.
  3. Drag an item from one column without dropping it in another column.
  4. Observe the following issues:
    Counters for the source and target columns do not update correctly.
    The backend state is not always updated, leading to inconsistencies.

Proposed resolution

Review and fix the logic in the draggableInit function to ensure counters (countTotal and countPoint) are updated correctly when items are dragged and dropped.
Ensure the AJAX call to update the backend state is consistently triggered and handles errors appropriately.
Add validation to prevent unnecessary AJAX calls when an item is dropped in the same column.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain cesarmsfelipe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024