-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Reverse ordering #11475
Reverse ordering #11475
Conversation
Corrected typo in the title ;) |
@brianteeman starting to hate a word :-) |
Have you seen this PR ?
|
but arguably this PR is independent of #11139 |
2 objectives
the JTable::reorder() running on new article creation and executing hundrends or thousands or queries and this was the reason to create new article with highest ordering but the slow new article saving is only 1 of the problems JTable::reorder causes: |
@ggppdk thanks for the summery, but I don't think it makes sense to fix a B/C break after a lot of versions. Someone could argue to change it back now is also a B/C break. I will look into the issue at hand |
Please forgive me for annoying you, but you are wrong The B/C break is here and it effects 100% of the records in all web-sites that want to use order by ordering number for listing articles at frontend
but they do not try to make them reverse (instead some try to use creation date, some other suffer dragging from the bottom up through many records) Why they have not tried to make them reverse ?
so noone is yet trying to use reverse ordering, they will start after you merge this and after it is released and lets say that we merge this , and people want to use it, they will have to manually re-order hundrends or thousands of articles and then use it |
continuing the above Lets say that i have 200 records, now order normally,
Now lets say i want to avoid the above
how am i going to reverse these records ? what if i have 2000 records ? |
and then if you use ordering numbers in more than 1 place,
at minimum we would need a button to make the "Revese all records" task automatic then we can keep the B/C break
to update their site configuration to use the new reverse ordering and reverse all their existing records via the new button |
But this affects only new items, if I got it right then the change was that new item got max(ordering) as value and not 0 as it was before, correct me if I am wrong |
correct, so now sites that continue to use ordering numbers
|
it is not too much of a problem for sites with e.g. 200 items in featured view, and if you do not create articles often, so people have adjusted to doing this extra work, it takes less than a minute to do if you have a few hundrend records this PR is a solution, |
Let me test the other issue, we are having a discussion at the wrong spot, this PR here is a simple add of an option to the sorting. Tester will run away when they see all the back and force discussion :-) |
Joomla 3.6.0 broke B/C for article/featured ordering column. @rdeutz I also created a similar PR #11134 to yours but without enthusiasm from others then I closed it. To understand #11139 please read the comment from #11103 (comment) |
about benefits of PR #11139 |
I have tested this item ✅ successfully on This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11475. |
I have tested this item ✅ successfully on 2cd6afb but: String like JGLOBAL_VOTES , JGLOBAL_FIELD_GROUPS or show like Global Option (Hide) isn't shown.This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11475. |
@rdeutz can you look at the conflicts please? |
What's the status here? |
I still think this makes sense, will fix the conflicts later |
@@ -478,6 +479,7 @@ JGLOBAL_ORDER_DESCENDING="Descending" | |||
JGLOBAL_ORDER_DIRECTION_LABEL="Direction" | |||
JGLOBAL_ORDER_DIRECTION_DESC="Sort order. Descending is highest to lowest. Ascending is lowest to highest." | |||
JGLOBAL_ORDERING="Article Order" | |||
JGLOBAL_REVERSE_ORDERING="Article Reverse Order" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetize/reorder string.
@Quy thanks, fixed |
Executive summary
This adds a additional ordering option to the category ordering.
Background information
A while ago we changed the default for the ordering field, before that change a new article got „0“ as ordering so that article was the first one in a blog view when ordered by ordering. The change was that a new article now gets max(ordering) as default value and that will show an article as the last when ordered by ordering. The change was good because we had some performance problems when the ordering value was updated on a site with many articles. So no complaining about the change itself. The problem now is that you have to reorder articles because your article is now the last one in the category. If you do not have this manual step then you need to switch the ordering and use reverse ordering.
Backwards compatibility
Because it is a new option nothing should change
Translation impact
Two new language tags added.
Core changes
Addition to ContentHelperQuery::orderbySecondary
Testing instruction
Should be the same ordering in front and backend