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] Top 5 tags in Case -> Stats aren't correctly ordered #1372

Closed
crackytsi opened this issue May 28, 2020 · 8 comments
Closed

[Bug] Top 5 tags in Case -> Stats aren't correctly ordered #1372

crackytsi opened this issue May 28, 2020 · 8 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@crackytsi
Copy link

Bug

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
TheHive version / git hash 4 RC3
Package Type DEB

Problem Description

The Top 5 Tags in Case list -> Stats aren't ordered.
See screenshot here:
image

As I just noticed that also applies to TH3, but it would be nice to have them in any order. e.g. highest number first.

Possible Solutions

Apply an order-by if possible.

@crackytsi crackytsi added TheHive4 TheHive4 related issues bug labels May 28, 2020
@To-om
Copy link
Contributor

To-om commented May 28, 2020

@nadouani the result of the field aggregation API returns an JSON object and its fields can't be ordered. Frontend must do a sort.

@To-om To-om added this to the 4.0.0-RC4 milestone May 28, 2020
@crackytsi
Copy link
Author

There are much more responses than just 5 delivered, see screenshot here (on latest snapshot of developTH4 source):
image

@To-om
Copy link
Contributor

To-om commented Jun 3, 2020

@crackytsi which version of TheHive do you use ?

@crackytsi
Copy link
Author

crackytsi commented Jun 3, 2020

I use nearly latest dev branch: 4f2a9bc

@To-om
Copy link
Contributor

To-om commented Jun 3, 2020

Have you updated scalligraph repo (git submodule update) ?

@crackytsi
Copy link
Author

I used a complete new directory to build everything, so it should be the latest version.

@crackytsi
Copy link
Author

@To-om Sorry, you are right. It was my fault in using the right compile-folder. I see now only the top 5 (unordered) :)
Thanks for your patience with me... :)

nadouani added a commit that referenced this issue Jun 22, 2020
@nadouani
Copy link
Contributor

This should be fixed. If anyone can tested and confirm the fix.

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

No branches or pull requests

3 participants