Skip to content
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

[Bug] Slow UI performance when closing a case #1506

Closed
DrJohn1 opened this issue Sep 1, 2020 · 2 comments
Closed

[Bug] Slow UI performance when closing a case #1506

DrJohn1 opened this issue Sep 1, 2020 · 2 comments
Assignees
Labels

Comments

@DrJohn1
Copy link

DrJohn1 commented Sep 1, 2020

When closing a case, the list of open/in progress tasks takes too long to load, causing issues if pressing "Close tasks and case" before it completely loads (bug)

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 18.04
OS version (client) Ubuntu 18.04
TheHive version / git hash 4.0.0-1
Package Type DEB

Problem Description

When selecting "Close" case button, the first dialog listing open/in progress tasks will appear empty and take a long time (>10 seconds) to appear. If you select "Close tasks and case" before the list appears, the close dialog will appear twice, losing any changes you enter and not closing the case when pressing "Close case":
Close_case_001
Example shows no tasks, however this case still has three tasks open.

The logs show it takes, in this test case, 7 seconds to populate the list (but it increases exponentially as more cases and tasks are created on the TheHive instance):
Close_case_003

Steps to Reproduce

  1. Create a new instance and add multiple cases and tasks to the cases.
  2. Load a high number of cases and tasks (100 cases, 2000 tasks).
  3. Press Close in a case and on the next dialog press "Close tasks and case" before the list appears.
  4. Changes made to the close dialog will not be saved as the dialog resets.
@DrJohn1 DrJohn1 added TheHive4 TheHive4 related issues bug labels Sep 1, 2020
@DrJohn1 DrJohn1 changed the title [Bug] Slow loading open task reminder when closing a case [Bug] Slow UI performance when closing a case Sep 5, 2020
@rriclet
Copy link
Contributor

rriclet commented Mar 19, 2021

This issue has been fixed with #1731, included in release 4.1.0.
Feel free to re-open this issue if you still notice slow performance.

@rriclet rriclet closed this as completed Mar 19, 2021
@scottbrazil
Copy link

I'm using release 4.1.24 and it takes 60s just to open the popup for closing the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants