? ? ? ? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
21 Jul 2016

Pull Request for Issue #10954 .

Summary of Changes

enable article ordering by votes or by rating on backend & frontend when content vote plugin is enabled

  • added articles order options (vote asc, voted desc, rating asc, rating desc)

votes0

  • added rating and vote columns

votes1

  • added articles Lists Layout options (show vote, show ratings)

vote2

  • added articles order option in shared ( vote, rating)

votes3

  • added column vote , rating on frontend list layout

votes4

  • module articles category - added option to sort article by vote, rating

votes5

history see #10989

avatar alikon alikon - open - 21 Jul 2016
avatar alikon alikon - change - 21 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2016
Category SQL Administration Components Postgresql MS SQL Language & Strings Modules Front End Installation Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2016
Labels Added: ? ?
avatar conconnl
conconnl - comment - 22 Jul 2016

@alikon is this One ready to be retested by me and @brianteeman


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

avatar csthomas
csthomas - comment - 23 Jul 2016

JPluginHelper::isEnabled

What about using class ContentModelArticles in others modules / extensions?
Do we have always load votes if the plugin is enabled?

avatar alikon alikon - change - 24 Jul 2016
The description was changed
avatar alikon
alikon - comment - 24 Jul 2016

@conconnl yes it is

avatar brianteeman
brianteeman - comment - 28 Jul 2016

Retested and found a few small issues

  1. Please reorder the dropdown select so that it matches the column order ie move ID to the end
    screen shot 2016-07-28 at 07 33 33

  2. The visual indicator of the sort direction is being displayed on the ID column and not the rating or votes column
    screen shot 2016-07-28 at 07 37 12


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

avatar brianteeman brianteeman - test_item - 28 Jul 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 28 Jul 2016

I have tested this item 🔴 unsuccessfully on 4dca61f


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

avatar csthomas
csthomas - comment - 28 Jul 2016

For greater flexibility I suggest to add something like:

        if ($params->get('list_show_votes', 0) || $params->get('list_show_ratings', 0))
        {
            $this->setState('load_votes', JPluginHelper::isEnabled('content', 'vote'));
        }

at populateState https://github.com/joomla/joomla-cms/pull/11225/files#diff-e5b3effc5f60b387662db42517e31654L129

This way modules won't need to load votes, better performance.
IMHO If some category does not like to show votes then sql for votes should not be added.

and at getListQuery method then you can use if ($this->getState('load_votes', false)).

avatar alikon
alikon - comment - 30 Jul 2016

@csthomas my branch is public feel free to submit a PR
@brianteeman fixed your reported issues

avatar brianteeman brianteeman - test_item - 3 Aug 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 3 Aug 2016

I have tested this item ✅ successfully on fc073ff


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

avatar conconnl conconnl - test_item - 14 Aug 2016 - Tested successfully
avatar conconnl
conconnl - comment - 14 Aug 2016

I have tested this item ✅ successfully on fc073ff


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

avatar brianteeman brianteeman - change - 14 Aug 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 14 Aug 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 14 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 16 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 16 Aug 2016
Milestone Added:
avatar wilsonge
wilsonge - comment - 3 Sep 2016

Are these database queries compatible with postgres and mssql?

avatar alikon
alikon - comment - 4 Sep 2016

@wilsonge if your concern are about COALESCE() and NULLIF() :

  • for postgresql my answer is yes
  • for mssql i'm unable to test but looking at msdn documentation (yes)

https://msdn.microsoft.com/it-it/library/ms190349.aspx
https://msdn.microsoft.com/it-it/library/ms177562.aspx

avatar wilsonge wilsonge - reference | 0d708ec - 18 Sep 16
avatar wilsonge wilsonge - merge - 18 Sep 2016
avatar wilsonge wilsonge - close - 18 Sep 2016
avatar wilsonge wilsonge - change - 18 Sep 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-09-18 15:43:29
Closed_By wilsonge
avatar joomla-cms-bot joomla-cms-bot - change - 18 Sep 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 18 Sep 2016
Labels Removed: ?
avatar alikon alikon - head_ref_deleted - 19 Sep 2016
avatar infograf768
infograf768 - comment - 20 Sep 2016

This gives a fatal error:
#12095

avatar laoneo laoneo - reference | 7382e89 - 20 Sep 16
avatar alikon alikon - reference | bf9f1fd - 20 Sep 16
avatar infograf768 infograf768 - reference | d51697b - 1 Oct 16
avatar infograf768 infograf768 - reference | b21a9a4 - 1 Oct 16
avatar rdeutz rdeutz - reference | cb86b89 - 2 Oct 16
avatar wilsonge wilsonge - reference | 2839667 - 2 Oct 16
avatar rdeutz rdeutz - reference | 2570285 - 29 Oct 16
avatar wilsonge wilsonge - reference | 27c090e - 29 Oct 16
avatar PhilETaylor PhilETaylor - reference | 7ea3a7b - 6 Nov 16
avatar sanderpotjer
sanderpotjer - comment - 30 Nov 2016

@alikon while testing an other pull request I noticed that the new columns in the article manager haven't been implemented in the Hathor backend template. Is that on purpose?

avatar alikon
alikon - comment - 1 Dec 2016

I hoped that hathor would be removed from 3.7

avatar wilsonge
wilsonge - comment - 1 Dec 2016

No chance. Off you go do a PR :P

Add a Comment

Login with GitHub to post a comment