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

ADMINISTRATOR Categories | Sort by Number of Articles #21970

Closed
hytsch opened this issue Sep 3, 2018 · 8 comments
Closed

ADMINISTRATOR Categories | Sort by Number of Articles #21970

hytsch opened this issue Sep 3, 2018 · 8 comments

Comments

@hytsch
Copy link

hytsch commented Sep 3, 2018

On the Category list in the Administrator we can sort by ID, Title, Status, Access Leve, Language..., but not by Number of Articles (published, depublished, archived, deleted). It was fine to hav the sort functionality to.

screen shot 2018-09-03 at 06 21 46### Expected result

Actual result

System information (as much as possible)

Additional comments

@ghost
Copy link

ghost commented Sep 10, 2018

can one please answer this Feature Request as its open for a Week having Status "New"?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21970.

@infograf768
Copy link
Member

Looking at the existing code to get these values, not sure we can sort these.

@ghost
Copy link

ghost commented Sep 10, 2018

@infograf768 thanks for answer @hytsch

@hytsch
Copy link
Author

hytsch commented Sep 10, 2018

OK, thank You.

@ghost
Copy link

ghost commented Sep 10, 2018

@infograf768 Issue close or do you look on the Code?

@HLeithner
Copy link
Member

The current implementation doesn't allow us to sort for these counts, it would need a rewrite of the SQL queries to support this, this could have a bigger performance impacted.

Additionally it get more complex with J4 and the new workflow. I would suggest to close this, if someone contribute code we can reopen it.

@hytsch
Copy link
Author

hytsch commented Sep 10, 2018

Thats's ok, thank You.

@hytsch hytsch closed this as completed Sep 10, 2018
@ggppdk
Copy link
Contributor

ggppdk commented Sep 10, 2018

  • Currently these columns are calculated only for the categories of the current page

if you would want to sort by them then you would have to move their calculation inside the main query
and calculate these for all website categories.

On website with a few thousands of categories this would be a considerable performance
a slowdown not only when sort by them but also when you do no sort by them

(or to avoid performance loss, you would have to keep old way when not sorting and do an alternative a little different and slower SQL main query when sorting by one of these columns)

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

No branches or pull requests

6 participants