znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
333 stars 82 forks source link

Bug - [Dashboard and Widget Filters] #510

Open peralta00 opened 8 months ago

peralta00 commented 8 months ago

Environment

Expected behaviour

Drop down with all queues to filter:

image

Actual behaviour

Infinite loading:

image

How to reproduce

Steps to reproduce the behavior:

  1. Go to 'Dashboard'
  2. Click on 'Queue Filter'
  3. Go to Developer tools
  4. See error

Additional information

Developer tools console error:

Uncaught TypeError: Cannot convert undefined or null to object
    at parse_nest (5c6d3d10-9c90-42c3-b5b5-7080262ed04f:34:1)
    at self.onmessage (5c6d3d10-9c90-42c3-b5b5-7080262ed04f:43:40)
parse_nest @ 5c6d3d10-9c90-42c3-b5b5-7080262ed04f:34
self.onmessage @ 5c6d3d10-9c90-42c3-b5b5-7080262ed04f:43

/var/log doesn't have any errors related from what I can see.

hanneshal commented 7 months ago

Hi @peralta00, is this the same behaviour as: https://github.com/znuny/Znuny/issues/503 ?

Regards Johannes

peralta00 commented 7 months ago

Hi @peralta00, is this the same behaviour as: #503 ?

Regards Johannes

Hi,

No not the same, and it only happens when the system needs to gather data from queues with a large amount of tickets. Eg: +5000 open tickets

peralta00 commented 7 months ago

Ups, misclicked

rkaldung commented 7 months ago

@peralta00 We created a test system with 10+k open ticket and can't reproduce this problem. Have you ever tried to upgrade to 7.0.13?

peralta00 commented 7 months ago

@rkaldung yes have the system on 7.0.13, migrated from OTOBO.

hanneshal commented 7 months ago

Hi @peralta00 please check this comment: https://github.com/znuny/Znuny/issues/503#issuecomment-1772181329 and post your output please. thanks

mo-azfar commented 7 months ago

saw this via discord github updates, and had a spare time to simulated this. perhaps due to sub-queue filtering as video below.

update 1: also happen to filtering Service if it is a sub-services.

update 2: also happening at Ticket Status View, ServiceView, Escalation View. Basically everywhere where queue filter / service filter is being used (contains sub-queue / sub-services).

https://github.com/znuny/Znuny/assets/62957738/512c630b-183c-4465-9f64-c52779d06a8d

peralta00 commented 7 months ago

@mo-azfar looks like that's the problem.

I've found another bug regarding the queue filters i'll open a new issue and reference this one. (maybe its related)

hanneshal commented 7 months ago

Hi @peralta00 please check this comment: #503 (comment) and post your output please. thanks

mo-azfar commented 7 months ago

Hi, Upon disabled Loader::Enabled::JS, result still same as 1st post.

image

attached is js detected from console

app.wsl.my-1701543262368.log

peralta00 commented 5 months ago

Remains in 7.0.14